[Asterisk-Users] IAXphone -> ip address -> extension number.

Rich Adamson radamson at routers.com
Sat Jul 9 12:41:21 MST 2005


> Based on last nights breakthru & this mornings fiddling, I have
> minimised iax.conf & filled in "everything" on the phone itself.
> 
> Hallelujah! (I'm sure Rich & Carlos will agree) :-)
> 
> I'm still not ringing the other phone, but that is now surely a dialplan
> issue - extensions.conf has been totally ignored and that can be
> tomorrows fun as my wife & I have a nice dinner date tonight.
> 
> ************* iax.conf: ***************
> [general]
> port=4569
> bindaddr=0.0.0.0
> bandwidth=medium
> disallow=LPC10
> all0w=ulaw
> all0w=alaw
> all0w=gsm

Look closely at the above four lines. In the "allow" statement, that
appears to be a zero. Change that to "allow". Also, I don't know 
which codecs the phone supports, but you might start playing with
 disallow=all
 allow=ulaw
and go from there.

> [z1]
> type=friend
> user=z1
> secret=z1
> context=geograph
> host=dynamic
> dtmfmode=rfx2833

If you look at /usr/src/asterisk/configs/iax.conf.sample, you'll 
find that dtmfmode=rfx2833 is not a valid iax statement. Plus its
spelled wrong (its rfc2833). Remove it, but add it into your sip.conf
if you're going to play with sip.
 
> *************** asterisks response as I dial ************
> Asterisk Ready.
> *CLI> iax2 show p
> peers         provisioning
> *CLI> iax2 show peers
> Name/Username    Host                 Mask             Port      Status
> z2               192.168.0.202   (D)  255.255.255.255  4569      Unmonitored
> z1               192.168.0.201   (D)  255.255.255.255  4569      Unmonitored
> *CLI> iax2 show users
> Username         Secret                Authen           Def.Context
> A/C
> z2               z2                    000000000000003  geograph
> No
> z1               z1                    000000000000003  geograph
> No
> *CLI>     -- Accepting AUTHENTICATED call from 192.168.0.201, requested
> format = 4, actual format = 256

Here is the key:     ^^^^^^^^^^^^
That is telling you it can't find a compatible codec to allow the
call to complete. That's the basis for the comments above about the
allow=ulaw.

>      *-- Executing Dial("IAX2/z1 at z1/3", "IAX/z2|20|tr") in new stack*

Note the above "IAX". I think that should be IAX2, so look in your
extensions.conf for a dial statement that looks like "Dial(IAX/"
and change it to "Dial(IAX2/".





More information about the asterisk-users mailing list