John Lange
2004-Dec-18 14:05 UTC
[Asterisk-Users] Problem with 302 "Moved Temporarily" Do not disturb
I have some Cisco 7905 phones with the SIP load 1.02.00(040406A). When the phone is off-hook but no call has been placed, or when the Do Not Disturb is activated, the phone returns a 302 "Moved Temporarily" message back to asterisk as follows: ----------- -- Executing Dial("SIP/5060-0811bb00", "SIP/9871234|20|Ttr") in new stack -- Called 9871234 -- Got SIP response 302 "Moved Temporarily" back from 24.xx.xxx.6 -- Now forwarding SIP/5060-0811bb00 to 'Local/8500@local' (thanks to SIP/9871234-b2ca) ----------- This forwarding doesn't work because the Voice mail system does not know which extension was originally dialed so I either get a "please enter the mail box number" or, if it is a local extension originating the call, a "You have no new messages" message. First, I need to know if it is the Cisco phone, or Asterisk that is automatically doing the forwarding? It certainly is not something I setup in the dialplan. Second, are their any ways to trap a 302 message in the dialplan so it does the right thing? Third, (if not), are there any work arounds or suggestions for this? Thanks, -- John Lange
Eric Wieling aka ManxPower
2004-Dec-18 14:07 UTC
[Asterisk-Users] Problem with 302 "Moved Temporarily" Do not disturb
John Lange wrote:> I have some Cisco 7905 phones with the SIP load 1.02.00(040406A). > > When the phone is off-hook but no call has been placed, or when the Do > Not Disturb is activated, the phone returns a 302 "Moved Temporarily" > message back to asterisk as follows: > > ----------- > > -- Executing Dial("SIP/5060-0811bb00", "SIP/9871234|20|Ttr") in new stack > -- Called 9871234 > -- Got SIP response 302 "Moved Temporarily" back from 24.xx.xxx.6 > -- Now forwarding SIP/5060-0811bb00 to 'Local/8500@local' (thanks to SIP/9871234-b2ca) > > ----------- > > This forwarding doesn't work because the Voice mail system does not know > which extension was originally dialed so I either get a "please enter > the mail box number" or, if it is a local extension originating the > call, a "You have no new messages" message. > > First, I need to know if it is the Cisco phone, or Asterisk that is > automatically doing the forwarding? It certainly is not something I > setup in the dialplan. > > Second, are their any ways to trap a 302 message in the dialplan so it > does the right thing? > > Third, (if not), are there any work arounds or suggestions for this?; ; Give Voicemail extension XX09 ; exten => _XX09,1,GoToIf($[X${RDNIS} != X]?${EXTEN},4) exten => _XX09,2,VoicemailMain() exten => _XX09,3,Hangup exten => _XX09,4,VoiceMail(u${RDNIS}) exten => _XX09,5,Hangup
John Lange
2004-Dec-23 11:03 UTC
[Asterisk-Users] Problem with 302 "Moved Temporarily" Do not disturb
On Sat, 2004-12-18 at 15:07, Eric Wieling aka ManxPower wrote:> John Lange wrote: > > I have some Cisco 7905 phones with the SIP load 1.02.00(040406A). > > > > When the phone is off-hook but no call has been placed, or when the Do > > Not Disturb is activated, the phone returns a 302 "Moved Temporarily" > > message back to asterisk as follows: > > > > Third, (if not), are there any work arounds or suggestions for this? > > ; > ; Give Voicemail extension XX09 > ; > exten => _XX09,1,GoToIf($[X${RDNIS} != X]?${EXTEN},4) > exten => _XX09,2,VoicemailMain() > exten => _XX09,3,Hangup > exten => _XX09,4,VoiceMail(u${RDNIS}) > exten => _XX09,5,HangupOk, it took me a while to figure out what this was doing but let me say this is a thing of beauty and it works perfectly. Here is the version I ultimately implemented with a couple of comments. ----- ; give voicemail at the traditional 8500 [voicemail] exten => 8500,1,GoToIf($[X${RDNIS} != X]?${EXTEN},4) ; this allows call forward to voice mail and therefore fixes the Cisco DND problem. exten => 8500,2,VoicemailMain(s${CALLERIDNUM}) ; by passing callerid it takes us directly to our own mailbox exten => 8500,3,Hangup exten => 8500,4,VoiceMail(u${RDNIS}) ; passing the original dialed number gives us the correct mailbox. exten => 8500,5,Hangup ----- Thanks greatly to Eric Wieling! -- John Lange