[Asterisk-Users] sip ignores context definition?

Ohad.Levy at infineon.com Ohad.Levy at infineon.com
Fri Nov 11 03:48:28 MST 2005


Hi All, 

I've a very strange error. 
I've configured a Cisco gw with * and when an incoming call is arriving
from the Cisco to * asterisk will always put the call in the default
context (ignoring the part in the [Cisco]) 

I'm attaching my conf files: 

[general] 
port = 5060           ; Port to bind to (SIP is 5060) 
bindaddr = 0.0.0.0    ; Address to bind to (all addresses on machine) 
disallow=all 
allow=alaw 
allow=gsm 
allow=ulaw 
context = from-trunk ; Send unknown SIP callers to this context 
callerid = Unknown 

[Cisco] 
type=user/friend/peer (tried all options) 
port=5060 
host=myip 
context=from-Cisco 
disallow=all 
allow=alaw 
allow=ulaw 
qualify=yes 
autocreatepeer=yes (with and without this option, in here and in the 
general setting) 
nat=no 
canreinvite=no 

on Asterisk Console I see (with Verbose 9): 
Executing AbsoluteTimeout("SIP/myip-b6895f10", "15") in new stack 
    -- Set Absolute Timeout to 15 
    -- Executing Congestion("SIP/myip-b6895f10", "") in new stack 
    -- Executing AbsoluteTimeout("SIP/myip-b6895f10", "15") in new 
stack 
    -- Set Absolute Timeout to 15 
    -- Executing Congestion("SIP/myip-b6895f10", "") in new stack 

which is my default context: 
[from-trunk] 
exten => _.,1,AbsoluteTimeout(15) 
exten => _.,2,Congestion 
exten => _.,3,Hangup 

[from-Cisco] 
exten => s,1,Answer 
exten => s,2,Dial($bla) 
exten => s,3,Hangup 

Thanks! 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051111/767c1e6d/attachment.htm


More information about the asterisk-users mailing list