[Asterisk-Users] IAX trunk monitoring

Steve Dolloff sdolloff at noc.dls.net
Thu Nov 13 15:58:38 MST 2003


I have modified the configuration for dynamic host and registered each
server with the other.  The iax show users now lists the other iax
device as registered vs unavailable, but I still don't know how to keep
it from calling if the device becomes unavailable.

I changed the extensions file to:

exten => 8475551212,3,Dial(IAX/voip1 at voip2/${EXTEN},,r)

also tried:

exten => 8475551212,3,Dial(IAX/voip2/${EXTEN},,r)

since voip2 is now a registered user, but it is not trying to call the
other server.

If I leave it as voip1 at voip2.me.net it works as long as the trunk is up
but it doesn't check to make sure before sending the call there.

Any suggestions?

------------------------------------------------------------------------
---

To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] IAX trunk monitoring

I have an issue where * tries to route a call over IAX to another server
even if the server is down.  I have included the relevant entries from
my iax.conf, extensions.conf, and some debug output.  If someone could
tell me what I have configured incorrectly, I would appreciate it.  

Thanks,

Stephen

-----------iax.conf on voip2----------
[voip1]
type=friend
username=voip1
host=x.x.x.x (ip address of voip1)
port=5036
mask=255.255.255.255
qualify=yes     ; Make sure this peer is alive
trunk=no
context=IAX

----------iax.conf on voip1-----------
[voip2]
type=friend
username=voip2
host=x.x.x.x (ip address of voip2)
port=5036
mask=255.255.255.255
qualify=yes     ; Make sure this peer is alive
trunk=no
context=IAX

---------extensions.conf on voip1--------
exten => 8475551212,3,Dial(IAX/voip2 at voip1.me.net/${EXTEN},,r)

---------extensions.conf on voip2--------
exten => 8475551212,3,Dial(IAX/voip1 at voip2.me.net/${EXTEN},,r)

voip1*CLI> iax show users
Username         Secret           Authen           Def.Context      A/C
voip2                             md5,plaintext    IAX              No

voip1*CLI> iax show peers
Name/Username    Host                 Mask             Port      Status
voip2/voip2      x.x.x.x   (S)  255.255.255.255  5036      UNREACHABLE

voip2*CLI> iax show users
Username         Secret           Authen           Def.Context      A/C
voip1                             md5,plaintext    IAX              No

voip2*CLI> iax show peers
Name/Username    Host                 Mask             Port      Status
voip1/voip1      x.x.x.x  (S)  255.255.255.255  5036      UNREACHABLE

voip1*CLI> iax debug
Rx-Frame Retry[N/A] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[-01] -- Seqno: 00  Type: IAX     Subclass: ACK
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: PONG
Rx-Frame Retry[N/A] -- Seqno: 01  Type: IAX     Subclass: ACK
Tx-Frame Retry[001] -- Seqno: 00  Type: IAX     Subclass: PONG
Rx-Frame Retry[N/A] -- Seqno: 00  Type: IAX     Subclass: INVAL
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[001] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[001] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[001] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[001] -- Seqno: 00  Type: IAX     Subclass: POKE
voip1*CLI>


voip2*CLI> iax debug
IAX Debugging Enabled
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: POKE
Rx-Frame Retry[N/A] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[-01] -- Seqno: 00  Type: IAX     Subclass: ACK
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: PONG
Rx-Frame Retry[N/A] -- Seqno: 01  Type: IAX     Subclass: ACK
Tx-Frame Retry[001] -- Seqno: 00  Type: IAX     Subclass: PONG
Rx-Frame Retry[N/A] -- Seqno: 00  Type: IAX     Subclass: INVAL
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[001] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[000] -- Seqno: 00  Type: IAX     Subclass: POKE
Tx-Frame Retry[001] -- Seqno: 00  Type: IAX     Subclass: POKE
voip2*CLI>



_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list