[Asterisk-Users] Dial timeouts and SIP 302 redirects

Mike Pollitt mike at limeboy.com
Wed Feb 22 15:38:13 MST 2006


Hi List -

 

Well, not getting anywhere, I stumped up for Digium support, and the answer
is, unfortunately, that there is currently no way of resetting the timer
when the Dial application gets a 302 message back from the SIP handset. In
other words, the behaviour exhibited below is standard (even though in my
opinion it is undesirable).

 

I've decided to have a crack at a patch for this myself. Will keep you
posted, since I know there are at least a couple of other people out there
who have been having this problem.

 

Mike.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mike Pollitt
Sent: Tuesday, 21 February 2006 4:03 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: [Asterisk-Users] Dial timeouts and SIP 302 redirects

 

I have SIP handsets which allow the user to forward a call to another number
after a specified interval of ringing time. On the SwissVoice this is
refered to as CFNR (Call Forward on No Response). What actually happens is
that after a specified period of time (default 15 seconds), the handset
sends back a "302 Moved Temporarily" response to Asterisk.

 

The problem is that when Asterisk receives the 302 message, it doesn't reset
the ringing timer in the Dial command. Let's say I've issued a Dial command
such as:

 

exten => _34XX,1,Dial(SIP/fred|20)

exten => _34XX,n,Voicemail(fred)

 

What happens is that the SIP handset rings for the default time of 15
seconds, then sends back the 302 message with the new number to forward to.
Asterisk faithfully drops into the Local context with this number, but after
a further 5 seconds of ringing the new number, the original Dial command
exits and proceeds to the next priority, namely the Voicemail command. 

 

The problem with this is that the forwarded number only rings for 5 seconds
(or not at all if it takes a few seconds to actually make the new outgoing
call, as can happen often with cellphones), which is not enough time for
them to answer it.

 

Has anyone else had this problem, and is there a solution?

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060222/29bede81/attachment.htm


More information about the asterisk-users mailing list