SIP IAX Interop

In our setup, Cisco 7940 phones talk to Asterisk using SIP. Now, I am trying to add some IAX soft phones.

It turns out setting up IAX was relatively easy. A few entries in iax.conf, and you are good to go:

[151]
type=friend
username=151
secret=thepassword
context=fromiaxtrusted
host=dynamic
callerid=Tom
auth=md5

With this setup, our IAX client (we are using IdeFisk) is able to call all other sip clients using just the extension number. This is as expected.

However, when a SIP client calls extension 151, it does not ring the IAX client. Instead, it simply goes to the standard voicemail greeting.

I tried putting the following line in extension.conf but it did not work:

exten => 151,1,Macro(stdexten,IAX2/151)

The error I see in the log file is:

chan_sip.c:1966 create_addr: No such host: 151
app_dial.c:1010 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 3 - No route to destination)

Can someone please tell me what is it that I am missing?

Thank you in advance for your help.

Pradeep

seems like your stdexten Macro is ignoring the technology in your dial plan might try adding a new macro for IAX extensions or post the stdexten macro so we can see it.

[macro-iaxstdext]
exten => s,1,dial(IAX/${ARG1},15)
exten => s,2,voicemail(…

you get the Idea Anyways.

HTH
Jag5x5