[Asterisk-Users] Why is host= being ignored in sip.conf ?

Rich Adamson radamson at routers.com
Wed Feb 2 03:26:23 MST 2005


> > Given the below sip.conf file, why do calls that come in from server
> > 123.456.789.012 NOT go into the "ext" context?
> 
> "peers" do not place calls to your server, "users" do. There are 
> situations in Asterisk where a host defined as a "peer" can place calls, 
> but for it to work you will either have to define a secret for the peer 
> (and use authentication) or add "insecure=very" to your peer definition 
> (to avoid authentication all together).
> 
> Alternatively (and much more logically) just change it to "type=user" or 
> "type=friend" (if you need to send calls there as well) and define a 
> secret on both ends, so they can authenticate each other, using a common 
> username. This can get tricky when you want to send CLID/CNAM 
> information across the link though... you'll have to experiment and find 
> out what works best for your application.

Also, be carefull with the 123.456.789.012 address. Some machines will
interpret 012 as an octal number; not sure if asterisk does or not.
Drop the zero.





More information about the asterisk-users mailing list