[Asterisk-Users] Dial timeouts and SIP 302 redirects

Mike Pollitt mike at limeboy.com
Mon Feb 20 22:03:02 MST 2006


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/20060220/4639ad1b/attachment.htm


More information about the asterisk-users mailing list