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/[EMAIL PROTECTED] , 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/[EMAIL PROTECTED]' (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/[EMAIL PROTECTED]' (thanks to
SIP/10027-91c8)
-- Executing Macro("Local/[EMAIL PROTECTED],2", "call|10011") in new
stack
-- Executing Set("Local/[EMAIL PROTECTED],2", "ext=10011") in new stack
-- Executing Dial("Local/[EMAIL PROTECTED],2", "SIP/10011|20|o") in
new stack
-- Called 10011
-- SIP/10011-5cff is ringing
-- Local/[EMAIL PROTECTED],1 is ringing
_______________________________________________
Asterisk-BSD mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-bsd