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

Kevin P. Fleming kpfleming at starnetworks.us
Tue Feb 1 21:09:41 MST 2005


John Lange wrote:

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



More information about the asterisk-users mailing list