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

John Lange john.lange at open-it.ca
Tue Feb 1 19:57:07 MST 2005


Perhaps someone can help me with a problem that has me thoroughly
stumped!

Given the below sip.conf file, why do calls that come in from server
123.456.789.012 NOT go into the "ext" context?

I've tried many variations of the below but no matter what I try calls
from that server are always in the "default" context.

Is it possible that Asterisk must first register to the server before it
will accept the "host" context? In this case the server in question is a
Cisco router hooked up to a PRI. It does not need or allow registrations
so I hope that is not the problem.

[general]
context=default
bindaddr=0.0.0.0
srvlookup=yes
disallow=all
allow=g729
allow=ulaw
allow=alaw

[gw]
type=peer
context=ext
host=123.456.789.012
canreinvite=no
disallow=all
allow=g729
allow=ulaw
allow=alaw

-- 
John Lange





More information about the asterisk-users mailing list