[Asterisk-Users] Calling IAX client behind NAT

Benjamin on Asterisk Mailing Lists benjk.on.asterisk.ml at gmail.com
Thu Oct 21 10:37:42 MST 2004


On Thu, 21 Oct 2004 13:22:31 -0200, alexandre::aldeia digital
<alepaes at ad2.com.br> wrote:
> 
> But this is not my problem.
> Asterisk have a public IP.
> The NAT occurs on "road" clients. I don't have control in this to make a
> port forward. If anyone have connect to me, I simply give a URL like:
> 
> iax://user:pass@domain
> 
> And the user connects and talk perfectly. But after this, I want to call
> this user from my asterisk and this is not possible.


if your Firefly client is configured as type=user, then temporarily,
for the purpose of testing, change that to type=friend.

next, on the asterisk console ...

what does iax2 show peers tell you about that Firefly client?

does it show up as a registered client?

next, again on the asterisk console ...

enable IAX2 debugging, like so ...

*CLI> iax2 debug

and watch the messages for anything that looks like it came from your
Firefly client.

Something like this ...

Rx-Frame Retry[No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: PONG   
   Timestamp: 00017ms  SCall: 00101  DCall: 00016 [65.39.205.121:4569]

will tell you that there was some IAX traffic coming in (Rx means
"Received") from the ip address listed in the output.

Something like this ...

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: POKE
   Timestamp: 00017ms  SCall: 00007  DCall: 00000 [65.39.205.121:4569]

will tell you that Asterisk is sending IAX traffic out (Tx means
"Transmitted") to the ip address listed in the output.

Look at these messages carefully, they should give you a good clue at
what is happening. For example, if you don't get any Rx messages from
the ip address of the NAT router behind which your Firefly client is
located, then that means there you are not getting any traffic in from
the Firefly client. The reason could be a problem at the remote NAT
router.

And BTW, this is how you turn off IAX debugging again ...

*CLI> iax2 no debug

hope this helps
rgds
benjk

-- 
Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya,
Tokyo, Japan.

NB: Spam filters in place. Messages unrelated to the * mailing lists
may get trashed.



More information about the asterisk-users mailing list