[asterisk-bugs] [Asterisk 0013629]: IAX2 peer does not show trunk

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 14 14:17:52 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13629 
====================================================================== 
Reported By:                pananix
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13629
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.1-beta1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-06 11:02 CDT
Last Modified:              2008-10-14 14:17 CDT
====================================================================== 
Summary:                    IAX2 peer does not show trunk
Description: 
The following IAX2 peer connected to a 1.4.22 system has trunk=yes.  The
1.4.22 system is identical but in reverse and it shows the (T).

office/office    190.33.255.69   (S)  255.255.255.255  4569          OK
(16 ms)


====================================================================== 

---------------------------------------------------------------------- 
 (0093636) pananix (reporter) - 2008-10-14 14:17
 http://bugs.digium.com/view.php?id=13629#c93636 
---------------------------------------------------------------------- 
First from the 1.4.22 host:
pbx*CLI> iax2 show peers
Name/Username    Host                 Mask             Port         
Status    
voipstreet/pana  64.136.174.24   (S)  255.255.255.255  4569 (T)      OK
(255 ms)
bagala/bagala    172.16.12.101   (S)  255.255.255.255  4569 (T)      OK
(16 ms)
1084             (Unspecified)   (D)  255.255.255.255  0            
UNKNOWN   
1083             (Unspecified)   (D)  255.255.255.255  0            
UNKNOWN   
1082             (Unspecified)   (D)  255.255.255.255  0            
UNKNOWN   
1081             172.16.15.99    (D)  255.255.255.255  4569          OK
(15 ms)
1080             (Unspecified)   (D)  255.255.255.255  0            
UNKNOWN   
zuckerfeather/z  207.14.218.36   (S)  255.255.255.255  4569 (T)      OK
(252 ms)
pan1/pan1        190.33.255.70   (S)  255.255.255.255  4569 (T)      OK (7
ms) 
lasolas/lasolas  201.224.73.100  (S)  255.255.255.255  4569 (T)      OK
(15 ms)
10 iax2 peers [6 online, 4 offline, 0 unmonitored]

pbx*CLI> iax2 show peer bagala
pbx*CLI> 

  * Name       : bagala
  Secret       : <Set>
  Context      : 
  Mailbox      : 
  Dynamic      : No
  Callerid     : "" <>
  Expire       : -1
  ACL          : No
  Addr->IP     : 172.16.12.101 Port 4569
  Defaddr->IP  : 0.0.0.0 Port 0
  Username     : bagala
  Codecs       : 0xe004 (ulaw)
  Codec Order  : (ulaw)
  Status       : OK (16 ms)
  Qualify      : every 60000ms when OK, every 10000ms when UNREACHABLE
(sample smoothing Off)

Now from the 1.6.1-beta1 host:
Name/Username    Host                 Mask             Port         
Status    
office/office    190.33.255.69   (S)  255.255.255.255  4569          OK
(16 ms)
1 iax2 peers [1 online, 0 offline, 0 unmonitored]

guaca*CLI> iax2 show peer office
guaca*CLI> 

  * Name       : office
  Secret       : <Set>
  Context      : 
  Parking lot  : 
  Mailbox      : 
  Dynamic      : No
  Callerid     : "" <>
  Expire       : -1
  ACL          : No
  Addr->IP     : 190.33.255.69 Port 4569
  Defaddr->IP  : 0.0.0.0 Port 0
  Username     : office
  Codecs       : 0x6004 (ulaw)
  Codec Order  : (ulaw)
  Status       : OK (16 ms)
  Qualify      : every 60000ms when OK, every 10000ms when UNREACHABLE
(sample smoothing Off)

I can't determine in either where the trunk is except in the summary (iax2
show peers), but that goes for SIP as well as I looked there for trunking
info and it wasn't present.

configuration stanzas for bagala/office link, first from 1.4.22 system,
then from 1.6.1-beta1 system:

[bagala]
type=peer
host=172.16.12.101
secret=xxxxxxxxxx
username=bagala
trunk=yes
qualify=yes
disallow=all
allow=ulaw

[office]
type=peer
host=pbx.pananix.com
secret=xxxxxxxxxx
username=office
trunk=yes
qualify=yes
disallow=all
allow=ulaw

So they are identical except for the host= part.
But only the 1.4.22 system shows (T). 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-14 14:17 pananix        Note Added: 0093636                          
======================================================================




More information about the asterisk-bugs mailing list