Re: [pjsip] Using SIP user agent behind NAT

Лухнов Андрей Олегович
Fri, Sep 22, 2017 5:36 AM

Bogdan,

in general, cliend behind nat does not know its public address.
To my knowledge, common case for sip behind nat is to use STUN server.

Andrey

От: "Bogdan Cristea" cristeab@gmail.com
Кому: "pjsip" pjsip@lists.pjsip.org
Отправленные: Четверг, 21 Сентябрь 2017 г 18:41:32
Тема: [pjsip] Using SIP user agent behind NAT

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

Bogdan, in general, cliend behind nat does not know its public address. To my knowledge, common case for sip behind nat is to use STUN server. Andrey От: "Bogdan Cristea" <cristeab@gmail.com> Кому: "pjsip" <pjsip@lists.pjsip.org> Отправленные: Четверг, 21 Сентябрь 2017 г 18:41:32 Тема: [pjsip] Using SIP user agent behind NAT 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