[asterisk-users] 11.4.0: iax packets lost by amazon ec2

Sean Darcy seandarcy2 at gmail.com
Fri Sep 6 16:45:42 CDT 2013


I have 11.4.0 on an Amazon EC2 instance. SIP works fine, but I can't get 
iax to work.

I've opened 4569 in the EC2 Security Group.

I'm using the zoiper client. Using tcpdump I can see the zoiper packets 
coming in on 4569, but nothing shows on the asterisk cli.

Frame 33: 79 bytes on wire (632 bits), 79 bytes captured (632 bits) on 
interface 0

0000   12 31 3b 12 40 84 fe ff ff ff ff ff 08 00 45 00  .1;. at .........E.
0010   00 41 00 00 40 00 2f 11 37 f1 44 c7 80 b8 0a ca  .A.. at ./.7.D.....
0020   43 72 11 d9 11 d9 00 2d fd 22 80 04 80 00 00 00  Cr.....-."......
0030   00 02 00 00 06 0d 06 02 67 6e 13 02 00 3c 36 00  ........gn...<6.
0040   24 0d 5a 6f 69 70 65 72 20 72 31 38 39 37 36     $.Zoiper r18976

iptables is flushed.


I'm not sure asterisk is even listening for the packets:

[root at asterisk ~]# netstat -apnt | grep 5060
tcp        0      0 0.0.0.0:5060            0.0.0.0:* 
LISTEN      1706/asterisk
[root at asterisk ~]# netstat -apnt | grep 4569
[root at asterisk ~]#

But it should be:

ip-10-202-67-114*CLI> iax2 show peer gn


   * Name       : gn
   Description  :
   Secret       : <Set>
   Context      : nexus-in
   Parking lot  :
   Mailbox      :
   Dynamic      : Yes
   Callnum limit: 0
   Calltoken req: No
   Trunk        : No
   Encryption   : No
   Callerid     : "" <>
   Expire       : -1
   ACL          : No
   Addr->IP     : (Unspecified) Port 0
   Defaddr->IP  : 0.0.0.0 Port 4569
   Username     :
   Codecs       : (gsm|ulaw|g722)
   Codec Order  : (silk16|ulaw|gsm|g722)
   Status       : UNKNOWN
   Qualify      : every 60000ms when OK, every 10000ms when UNREACHABLE 
(sample smoothing Off)

iax.conf:

[general]
bandwidth=medium

trunkmtu=1240
disallow=all
allow=silk16
allow=ulaw
allow=gsm
allow=g722
jitterbuffer=yes
forcejitterbuffer=no

authdebug=yes

tos=ef
cos=5
autokill=yes
codecpriority=caller

[gn]
type=friend
auth=md5
secret=mine
host=dynamic
context=nexus-in
qualify=yes

Thanks for any help.

sean




More information about the asterisk-users mailing list