SIP-Based IVR on LAN, no matching peer found

Hi All,

I put Asterisk as a SIP-Based IVR server on LAN (10.1.80.0/24), softphone users (likes X-Lite) will make call into my IVR. This LAN is trusted, I wish all users on this LAN could use this IVR service, but these users SIP account name (Caller ID) are all dynamic. Is there anybody could tell me how to configure this in sip.conf ? this will be very helpful for me. Many thanks!

By the following sample, only “1234” user could register to Asterisk, and use my IVR service. Could [1234] tag be dynamic ? for example [*] to accept all uses on LAN.

[general]
type=friend
host=dynamic
context=default
dtmfmode=rfc2833
allowguest=yes
allowoverlap=no
bindport=5060
bindaddr=0.0.0.0
tcpenable=no
tcpbindaddr=0.0.0.0
srvlookup=yes
language=tw

[1234]
type=friend
context=default
host=dynamic

Mate,
I don’t really get your question. Your SIP users are not dynamic, there is a set number of them?!

Your softphones are presumably registered to another server?

If thats the case, set your asterisk IVR box to register to that server too, as say as SIP user 1235.

Then diall 1235 from your other softphones and you get your IVR.

An example implementation would be:

in sip.conf
[sip-server]
type=peer
host=ip-address-of-your-server
username=1235
fromuser=yourusername
secret=yourpassword
insecure=invite
context=ivr-menu

extensions.conf

[ivr-menu]
exten=1235,1,NoOp(ivr-menu)
exten=1235,2,Answer()
exten=1235,3,Background(IVR1)
etc…