The Outgoing and Reply port of STUN message?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I'm trying to implement something with STUN (with PJSIP) as following flow:

[IE] <--TCP/UDP trans.--> [agentC] <----STUN-----> [agentS] <--UDP/TCP
trans.--> [Apache]

And the [TCP/UDP trans.] part is ready.

The agentC might have the stun mapped address 1.1.1.1:11111

while agentS might have the stun mapped address 2.2.2.2:22222

Now agentC send a [HTTP GET] to agentS:

Question:
1. What will be the outgoing port of agentC? will it through NAT port
11111 or will be a random port[ex:37654]?

2.How should the agent reply the html tags? Reply to the 11111 or the
previous port[ex:37654]?

3.If the agentC is behind a symmetric NAT (while agentS behind a full
cone),could agentC connect to agentS and could agentS reply to agentC?

Sincerely,
Smith Lai



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux