Using SIP user agent behind NAT

BC
Bogdan Cristea
Thu, Sep 21, 2017 3:41 PM

Hi

I am using simpleua.c sample in order to implement an audio recorder. This works well when the server and the client are in the same network, but when the server is on the Internet I am able to receive the audio stream, but not when the server closes the communication. The client in this case has 2 address: 1 is internal and the other one is public. My question is how to change simpleua.c in order to publish the external, public address to the server.

thanks
Bogdan Cristea

Hi I am using simpleua.c sample in order to implement an audio recorder. This works well when the server and the client are in the same network, but when the server is on the Internet I am able to receive the audio stream, but not when the server closes the communication. The client in this case has 2 address: 1 is internal and the other one is public. My question is how to change simpleua.c in order to publish the external, public address to the server. thanks Bogdan Cristea
GL
Gang Liu
Fri, Sep 22, 2017 7:37 AM

use server side far-end NAT Traversal if not building peer 2 peer solution,
for example kamailio + rtpproxy, or asterisk/freeswitch

otherwise need to use ICE.

regards,
Gang

On Thu, Sep 21, 2017 at 11:41 PM, Bogdan Cristea cristeab@gmail.com wrote:

Hi

I am using simpleua.c sample in order to implement an audio recorder. This
works well when the server and the client are in the same network, but when
the server is on the Internet I am able to receive the audio stream, but
not when the server closes the communication. The client in this case has 2
address: 1 is internal and the other one is public. My question is how to
change simpleua.c in order to publish the external, public address to the
server.

thanks
Bogdan Cristea


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

use server side far-end NAT Traversal if not building peer 2 peer solution, for example kamailio + rtpproxy, or asterisk/freeswitch otherwise need to use ICE. regards, Gang On Thu, Sep 21, 2017 at 11:41 PM, Bogdan Cristea <cristeab@gmail.com> wrote: > Hi > > I am using simpleua.c sample in order to implement an audio recorder. This > works well when the server and the client are in the same network, but when > the server is on the Internet I am able to receive the audio stream, but > not when the server closes the communication. The client in this case has 2 > address: 1 is internal and the other one is public. My question is how to > change simpleua.c in order to publish the external, public address to the > server. > > thanks > Bogdan Cristea > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >