[OpenSIPS-Users] How to know that caller and callee talk from differente networks?
Rodrigo Pimenta Carvalho
pimenta at inatel.br
Thu Mar 3 21:03:09 CET 2016
Hi.
In my script OpenSIPS.cfg sometimes I do need to call "set_advertised_address" and sometimes I don't.
Basically, I want to call this function only for messages between caller and callee that is registered from different networks. Ex: caller is in the same network (LAN) as the sip proxy and the callee is somewhere on Internet.
So, how to know that, during a dialog, caller and callee are in 2 different networks?
When they are in different networks, I want to call set_advertised_address for SIP OK and SIP BYE messages.
Any hint will be very helpful!
Thanks a lot.
RODRIGO PIMENTA CARVALHO
Inatel Competence Center
Software
Ph: +55 35 3471 9200 RAMAL 979
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160303/8d01f534/attachment.htm>
More information about the Users
mailing list