After reading some more documentation it appears that a type peer needs to have a host directive to match the context properly.  I am assuming the dynamic is throwing it off.  I have to try this next.
 
http://www.voip-info.org/wiki-Asterisk+config+sip.conf
 
The problem is that the request could come from 3 separate servers but I was trying to limit the amount of usernames needed in sip.conf.  I guess I could make 3 separate usernames and passwords...
 
Does anyone know a way to avoid this?
 
Thanks for your replies!

 
On 11/3/06, Alex Robar <[EMAIL PROTECTED]> wrote:
I would think that if the call isn't using the information you've setup under username1, then the call probably isn't coming into your system using username1. Try to verify which username the call is being sent to.

Alex

Hi All,
 
I am trying to configure asterisk to receive an inbound SIP connection and send it to a specified context.  Instead of sending the call the specified context, asterisk is using the context default from [general]?  Any thoughts?  I am sure that it is something simple I am missing.
 
To recap, it is sending calls to the context default, not thecontext...
 
[general]
context=default
srvlookup=yes
 
[username1]
type=peer
username=username1
secret=test1234
host=dynamic
dtmfmode=rfc2833
context=thecontext
nat=no
deny= 0.0.0.0/0.0.0.0
permit=XXX.XXX.XXX.XXX /255.255.255.255
permit=XXX.XXX.XXX.XXX/255.255.255.255
permit=XXX.XXX.XXX.XXX/255.255.255.255
permit=XXX.XXX.XXX.XXX/255.255.255.0
permit=XXX.XXX.XXX.XXX/255.255.255.255
 
Thanks

 

_______________________________________________
--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





--
Alex Robar
[EMAIL PROTECTED]
_______________________________________________
--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



_______________________________________________
--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