[Asterisk-bsd] strange asterisk crash on calls forwarded
to Local/ext
Vahan Yerkanian
vahan at arminco.com
Thu Jul 20 09:28:43 MST 2006
Tim St. Pierre wrote:
> I'll hazard a guess.
>
> When a Sipura device does a "forward" it sends a SIP "temporarily moved"
> message back to the originator, with the URI that you are forwarding to. If
> this is another SIP device, this is pretty easy, as Asterisk just re-invites.
> The problem is when it tries to re-invite to itself, it gets a little
> confused. At least that's what I took from the documentation. Based on your
> debug output, it looks like it is trying to re-invite to a context called
> main. Does this context exist, and are the appropriate extensions in it?
>
> -Tim
Aye, the content does exist, and actually what happens is asterisk
forwards to a Local/111 at Main , that's the moment asterisk crashes:
-- Executing Macro("SIP/10040-4c43", "call|10027") in new stack
-- Executing Set("SIP/10040-4c43", "ext=10027") in new stack
-- Executing Dial("SIP/10040-4c43", "SIP/10027|20|o") in new stack
-- Called 10027
-- Got SIP response 302 "Moved Temporarily" back from 10.20.30.40
-- Now forwarding SIP/10040-4c43 to 'Local/111 at Main' (thanks to
SIP/10027-4f37)
sip*CLI>
Disconnected from Asterisk server
#
However, If I set forwarding to go to another phone registered to
asterisk, say 10011, everything works:
-- Executing Macro("SIP/10040-be47", "call|10027") in new stack
-- Executing Set("SIP/10040-be47", "ext=10027") in new stack
-- Executing Dial("SIP/10040-be47", "SIP/10027|20|o") in new stack
-- Called 10027
-- Got SIP response 302 "Moved Temporarily" back from 195.250.90.228
-- Now forwarding SIP/10040-be47 to 'Local/10011 at Main' (thanks to
SIP/10027-91c8)
-- Executing Macro("Local/10011 at Main-9305,2", "call|10011") in new
stack
-- Executing Set("Local/10011 at Main-9305,2", "ext=10011") in new stack
-- Executing Dial("Local/10011 at Main-9305,2", "SIP/10011|20|o") in
new stack
-- Called 10011
-- SIP/10011-5cff is ringing
-- Local/10011 at Main-9305,1 is ringing
More information about the Asterisk-BSD
mailing list