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

Zoltan Szecsei zoltans at geograph.co.za
Fri Jul 8 09:09:35 MST 2005


Time Bandit wrote:

>>*CLI> iax2 show peers
>>Name/Username    Host                 Mask             Port      Status
>>z2               (Unspecified)   (D)  255.255.255.255  0         Unmonitored
>>z1               (Unspecified)   (D)  255.255.255.255  0         Unmonitored
>>    
>>
>
>>From this, you can see that none of the IAX phones are registered.
>  
>
OK, my iax.conf now has:

[general]
port=4569
bindaddr=0.0.0.0
bandwidth=medium
disallow=LPC10
;deny=all
;all0w=ulaw
;all0w=alaw
;all0w=gsm
jitterbuffer=yes

;   register => zoltan:geograph at iaxtel.com


[z1]
type=friend
host=192.168.0.201
mailbox=1201
context=geograph
callerid="Zoltan1" <201>

[z2]
type=friend
host=192.168.0.202
mailbox=1202
context=geograph
callerid="Zoltan2" <202>

**********Then I load asterisk -vvvvvvvvvvvvvvvc:
Asterisk Ready.
*CLI>
*CLI> iax2 show peers
Name/Username    Host                 Mask             Port      Status   
z2               192.168.0.202   (S)  255.255.255.255  4569      Unmonitored
z1               192.168.0.201   (S)  255.255.255.255  4569      Unmonitored
*CLI>
*CLI>
*CLI> iax2 show users
Username         Secret                Authen           Def.Context      
A/C 
z2               -no secret-           000000000000003  geograph         
No  
z1               -no secret-           000000000000003  geograph         
No  
*CLI>
*CLI> stop now
Beginning asterisk shutdown....
Executing last minute cleanups
  == Destroying any remaining musiconhold processes
Asterisk cleanly ending (0).
gl0:/home/zls #

********** Dialing from one phone **********************
on phone z1 I go offhook (hear dialtone); dial 202 and get enagaged 
tone. Similar if I dial 1, or 2, or 201, or 202 or anything in fact. If 
I go through the menu on the handset, these are the correct IP addresses 
of the phones. I can ping these phone IP addresses from any other PC on 
the network.

*************My extensions.conf is:***************
[general]
static=yes
writeprotect=no

[globals]
CONSOLE=Console/dsp                             ; Console interface for demo
IAXINFO=guest                                   ; IAXtel username/password
TRUNK=Zap/g2                                    ; Trunk interface
TRUNKMSD=1                                      ; MSD digits to strip 
(usually 1 or 0)

[geograph]
exten => s,1,Answer()
exten => s,2,Playback(goodbye)
exten => s,3,Hangup()
exten =>  201,1,Dial(IAX/z1,20,tr)
exten =>  202,1,Dial(IAX/z2,20,tr)
exten => 1201,1,Dial(IAX/z1,20,tr)
exten => 1202,1,Dial(IAX/z2,20,tr)

************ The last 4 entries in /var/log/asterisk/messages is: 
*************
Jul  8 17:57:32 WARNING[5219]: Unable to open pseudo channel for 
timing...  Sound may be choppy.
Jul  8 17:57:32 WARNING[5219]: Unable to open IAX timing interface: No 
such file or directory
Jul  8 17:57:32 NOTICE[5219]: Unable to load config sip.conf, SIP disabled
Jul  8 17:57:32 WARNING[5219]: Unable to get our IP address, Skinny disabled
Jul  8 17:57:32 WARNING[5219]: Read error on sound device: Resource 
temporarily unavailable

**************** My head is: ************

Bald!!!!
please help.

TIA,
Zoltan




More information about the asterisk-users mailing list