I am trying to figure out how to set up a SIP channel that will answer calls directed to asterisk as sip:1234@my.domain.com from any other service or server. Have looked everywhere but can’t seem to find instructions on how to do this.
In other words, I want to allow incoming calls from other servers.
This is pretty easy. You just have to create an authentication account similar to those for phones that register to your * server in sip.conf. It should look like:
[inboound-server]
type=friend [size=75]<–or peer[/size]
username=inboound-server
secret=xxxxxx
host=dynamic defaultip=XXX.XXX.XXX [size=75]<–enter remote server static IP or domain name here[/size]
context=yourcontext
nat=yes
canreinvite=no
And the remote server will have to use a register=username:password@your*serverdomainorIP.com string to register into your * server via SIP .
And if you want to be able to call to/through those remote servers you just have to do vice versa.
I think IronHelix is on to the right track. I want to accept calls from anyone without having to register them by IP. I will try what you suggest and let you know. Thanks.
I believe you need to add an “insecure=invite” line to your sip.conf file. This parameter is suppose to remove the requiriment of the initial INVITE to be authenticated. Since “random” users will not be registered with your system, you do not want the system to require them to authenticate.