Type: New Feature
Affects Version/s: None
Target Release Version/s: None
SVN Revision Number:27270
When dialing a group of phones it is often desirable to have Asterisk ignore any "302 Redirect" requests it might receive.
For example: after hours a business may want the general number to ring multiple extensions so that anyone thats still around can answer it. However, one of those people may have set their phone to call-forward to their voicemail or cell phone.
The following patch applies against 1.0.9 and adds another option to the Dial command.
"i" tells asterisk to ignore any 302 Redirects and continue on dialing the rest of the extensions.
Brief example: phone at 2000 is set to forward.
exten => 2000,1,Dial(SIP/2000&SIP/2002,20,i)
– Executing Dial("SIP/2001-eece", "SIP/2000&SIP/2002|20|i") in new stack
– Called 2000
– Called 2002
– SIP/2002-d46a is ringing
– Got SIP response 302 "Moved Temporarily" back from 192.168.1.101
– Now forwarding SIP/2001-eece to 'Local/8850872@from-sip' (thanks to SIP/2000-d08d)
– Forwarding SIP/2001-eece to 'Local/8850872@from-sip' prevented by dial option 'i'
Nov 8 11:34:19 NOTICE: app_dial.c:240 wait_for_answer: Unable to create local channel for call forward to 'Local/8850872@from-sip'
== Spawn extension (from-sip, 2000, 1) exited non-zero on 'SIP/2001-eece'