Philip Mullis wrote: > make iax0 conf look like this > > device /dev/ttyIAX0 > port 4581 > refresh 60 > server localhost > peername iaxmodem > secret 1234 > cidname Modem1 > cidnumber 31 > codec ulaw > > and your iax.conf have an entry like this > > [iaxmodem] > type=friend > username=iaxmodem > context=from-pstn > secret=1234 > host=dynamic > qualify=250 ; Make sure this peer is alive > disallow=all > allow=ulaw > trunk=no > > this should get you up and running > > Phil > >
Thanks Phil. Unfortunately, that one works even worse with my freePBX admisitered system. I've been banging my head against a wall for hours just trying to perform the simple act of registering a IAX2 device with asterisk. Arrrrrrrrrrrg It is very strange. Asterisk readily admits that the iaxmodem is there. macaw*CLI> iax2 show peer 21 macaw*CLI> * Name : 21 Secret : <Not set> Context : default Parking lot : Mailbox : 2...@device Dynamic : No Callnum limit: 0 Calltoken req: No Trunk : No Encryption : No Callerid : "device" <21> Expire : -1 ACL : Yes Addr->IP : 127.0.0.1 Port 4581 Defaddr->IP : 0.0.0.0 Port 0 Username : Codecs : 0x40 (slin) Codec Order : (slin) Status : OK (2 ms) Qualify : every 60000ms when OK, every 10000ms when UNREACHABLE (sample smoothing Off) Yet it does not register. Running iaxmodem with debugging enabled yield this: r...@macaw:~# nano /etc/iaxmodem/tty* r...@macaw:~# iaxmodem ttyIAX0 [2009-11-28 08:27:36] Modem started [2009-11-28 08:27:36] Setting device = '/dev/ttyIAX0' [2009-11-28 08:27:36] Setting owner = 'uucp:uucp' [2009-11-28 08:27:36] Setting mode = '660' [2009-11-28 08:27:36] Setting port = 4581 [2009-11-28 08:27:36] Setting refresh = 5 [2009-11-28 08:27:36] Setting server = 'localhost' [2009-11-28 08:27:36] Setting peername = '21' [2009-11-28 08:27:36] Setting cidname = 'Modem1' [2009-11-28 08:27:36] Setting cidnumber = '21' [2009-11-28 08:27:36] Setting codec = slinear [2009-11-28 08:27:36] Enabling IAX2 debugging [2009-11-28 08:27:36] Setting secret = '1234' [2009-11-28 08:27:36] Opened pty, slave device: /dev/pts/1 [2009-11-28 08:27:36] Created /dev/ttyIAX0 symbolic link Tx-Frame Retry[010] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: REGREQ Timestamp: 00003ms SCall: 10133 DCall: 00000 [127.0.0.1:4569] USERNAME : 21 REFRESH : 5 Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REGREJ Timestamp: 00003ms SCall: 00001 DCall: 10133 [127.0.0.1:4569] iax.c line 2617 in iax_header_to_event: Cancelling transmission of packet 0 Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK Timestamp: 00003ms SCall: 10133 DCall: 00001 [127.0.0.1:4569] [2009-11-28 08:27:36] Registration failed. Which certainly tells me that registration has been rejected. I've even removed the secret in this case. I get the exact same result with or without a password. At the same time I can dial extension 21 from another extension on the network and with minicom running on /dev/ttyIAX0 I will in fact get a RING signal. When I hang up the extension, the RING doesn't ever stop, and I have to forcefully terminate both minicom and iaxmodem. How does "iax2 show peer 21" work and how can I call the modem from another extension, if it isn't actually registered? I can't dial out from the modem though. I get a NO DIALTONE error when I try. Why can't I register it? I can't get asterisk to give me any message that explains why it is not being registered. I'm running the following versions of software r...@macaw:~# iaxmodem -V iaxmodem-1.2.0 spandsp-0.0.5-snapshot-20080725 libiax2-0.2.3-SVN-20071223+ r...@macaw:/etc/asterisk# asterisk -V Asterisk 1.6.2.0~rc2-0ubuntu1 Any help or suggestions would be most gratefully received. Thanks, darryl --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
