Zoltan Szecsei
2005-Jul-07 09:09 UTC
[Asterisk-Users] IAXphone -> ip address -> extension number.
Hi, I'm trying to set up two ACT SIP/IAX capable phones to communicate with each other on the same internal network, using asterisk 1.0.9 on SuSE 9.3 (because I intend to grow the situation after this basic setup is functioning) The phone IPs are set to 192.168.0.201 and 202 respectively. I've had a look at iax.conf and extensions.conf but cannot see how to tie these IPs to an extension number, let alone how to dial that extension. The "Getting Started with Asterisk" and the "Asterisk Doc Proj - Vol 1" that I have been using just have far too much info to work out what can be ignored in order to get such a simple setup working. I'd be happy for any help or pointers to steps that I should have followed. TIA, Zoltan
Carlos Alperin
2005-Jul-07 09:57 UTC
[Asterisk-Users] IAXphone -> ip address -> extension number.
What about define those phones on the SIP.conf and use sip, instead of IAX. That protocol use be more used to communicate Asterisk servers more than phones. Regards, Carlos Alperin -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Zoltan Szecsei Sent: Thursday, July 07, 2005 12:09 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] IAXphone -> ip address -> extension number. Hi, I'm trying to set up two ACT SIP/IAX capable phones to communicate with each other on the same internal network, using asterisk 1.0.9 on SuSE 9.3 (because I intend to grow the situation after this basic setup is functioning) The phone IPs are set to 192.168.0.201 and 202 respectively. I've had a look at iax.conf and extensions.conf but cannot see how to tie these IPs to an extension number, let alone how to dial that extension. The "Getting Started with Asterisk" and the "Asterisk Doc Proj - Vol 1" that I have been using just have far too much info to work out what can be ignored in order to get such a simple setup working. I'd be happy for any help or pointers to steps that I should have followed. TIA, Zoltan _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Zoltan Szecsei
2005-Jul-08 09:09 UTC
[Asterisk-Users] IAXphone -> ip address -> extension number.
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@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