I have a major problem with SIP redirects, or maybe just do not understand
how they are supposed to work. We are using Cisco 7940s and 7960s with SIP
version 6.3. Asterisk 1.2.5.

A call come in to extension 944 over the IAX trunk. Extension 944 has
forward all to extension 904 set on the phone. According to the dialplan.
extension 904 should ring for 90 seconds, then ring another extension, and
then finally go to voicemail. But for some reason, Asterisk still honors the
ring time of extension 944 which is 22 seconds, and then goes to the
voicemail of extension 944.

Here is the call flow:

AST-Sanset*CLI> 
    -- Accepting AUTHENTICATED call from 195.27.242.8:
       > requested format = g729,
       > requested prefs = (),
       > actual format = g729,
       > host prefs = (g729),
       > priority = mine
    -- Executing Goto("IAX2/comcentrixs-uplink-6", "sanset|944|1") in new
stack
    -- Goto (sanset,944,1)
    -- Executing Macro("IAX2/comcentrixs-uplink-6", "stdexten") in new stack
    -- Executing Set("IAX2/comcentrixs-uplink-6", "LANGUAGE()=de") in new
stack
    -- Executing SetMusicOnHold("IAX2/comcentrixs-uplink-6", "default") in
new stack
    -- Executing Dial("IAX2/comcentrixs-uplink-6", "SIP/944|22|t") in new
stack
    -- Called 944
    -- Got SIP response 302 "Moved Temporarily" back from 192.168.0.32
    -- Now forwarding IAX2/comcentrixs-uplink-6 to
'SIP/[EMAIL PROTECTED]:5060' (thanks to SIP/944-657d)
    -- Now forwarding IAX2/comcentrixs-uplink-6 to 'Local/[EMAIL PROTECTED]'
(thanks to SIP/192.168.0.2:5060-7b9b)
    -- Executing Set("Local/[EMAIL PROTECTED],2", "LANGUAGE()=de") in new
stack
    -- Executing SetMusicOnHold("Local/[EMAIL PROTECTED],2", "default") in new
stack
    -- Executing Dial("Local/[EMAIL PROTECTED],2", "SIP/904|90|t") in new
stack
    -- Called 904
    -- SIP/904-3622 is ringing
    -- Local/[EMAIL PROTECTED],1 is ringing
    -- Nobody picked up in 22000 ms
    -- Executing VoiceMail("IAX2/comcentrixs-uplink-6", "[EMAIL PROTECTED]") in
new stack
    -- Playing 'vm-theperson' (language 'de')
  == Spawn extension (sanset, 904, 3) exited non-zero on
'Local/[EMAIL PROTECTED],2'
Mar 28 21:55:06 WARNING[4187]: channel.c:787 channel_find_locked: Avoided
initial deadlock for '0x819ea38', 10 retries!
    -- Playing 'digits/9' (language 'de')
    -- Playing 'digits/4' (language 'de')
    -- Playing 'digits/4' (language 'de')
    -- Playing 'vm-isunavail' (language 'de')
  == Spawn extension (macro-stdexten, s, 4) exited non-zero on
'IAX2/comcentrixs-uplink-6' in macro 'stdexten'
  == Spawn extension (macro-stdexten, s, 4) exited non-zero on
'IAX2/comcentrixs-uplink-6'
    -- Hungup 'IAX2/comcentrixs-uplink-6'

Is this the way this is supposed to work? Seems like if the call if
forwarded to 904, then the timers, voicemail, etc. of 904 should be used
instead of that of 944.

Also, can anyone explain this:

Mar 28 21:55:06 WARNING[4187]: channel.c:787 channel_find_locked: Avoided
initial deadlock for '0x819ea38', 10 retries!

Regards to all,
Joe





_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to