Hi,

 

Asterisk is 1.09, I've tried to change that like you suggested but no luck.

 

When I'm doing sip debug, its look like it always go to the default sip context.

I've a second sip host definition and that works, exactly the same configuration just different IP.

 

Could that be a bug? How can I make sure, and if it’s a bug, how do I submit it?

 

Thanks again,

Ohad

 

 

 

 

 

 

 

What version are you running, and is your [Cisco] definition the last one in

the file?  I have the same problem with 1.0.7, and the ugly fix I came up

with was to add a dummy entry as the last sip entry. 

 

B. J.

 

 

 

 

  _____ 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

Sent: Friday, November 11, 2005 4:48

To: [EMAIL PROTECTED]

Subject: [Asterisk-Users] sip ignores context definition?

 

 

 

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!

 

 

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

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

Reply via email to