[OpenSIPS-Users] OpenSips 1.7 with MediaProxy and Nat routing with LinPhone

giovanni.piccardi at agilex.it giovanni.piccardi at agilex.it
Thu Sep 8 14:00:13 CEST 2011


Hi to all, I'm trying to use Opensips with MediaProxy to setup a Sip Proxy. I've configurated in a Linux Debian machine, i've installed and configurated "correctly" OpenSips server with modules, their could communicate each other. My actual configuration of OpenSips doesn't include use of DB and authentication. If i use my 2 uacs (LinPhone) in Nat context (intranet), and routing messages inside proxy this scenario work great.
I have some problem when i use 1 or 2 uacs outside Nat, sip messages pass inside proxy, invite message arrive to client, client ringing but when i accept the call the 200->ok message doesn't arrive to proxy.
Probably i have missed something in routing or module configuration, someone could hel me in this tricky problem?This is my configuration of opensips
.... 
# ----- NAT traversal configuration -----#modparam("usrloc", "nat_bflag", 3)#modparam("tm", "onreply_avp_mode", 1) ##**loadmodule "mediaproxy.so"#--------------- Default Valuesmodparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/dispatcher.sock")modparam("mediaproxy", "mediaproxy_timeout", 500)#modparam("mediaproxy", "signaling_ip_avp", "$avp(nat_ip)")modparam("mediaproxy", "media_relay_avp", "$avp(media_relay)")modparam("mediaproxy", "ice_candidate", "low-priority")modparam("mediaproxy", "ice_candidate_avp", "$avp(ice_candidate)") ....complete routing and configuration in attachment...## --> dialog#**loadmodule "dialog.so"#**modparam("dialog", "db_mode", 0)
 
 
This is my MediaProxy configuration
 
[Relay]dispatchers = 192.168.1.181:25060port_range = 50000:50030log_level = DEBUG stream_timeout = 90on_hold_timeout = 1800dns_check_interval = 60reconnect_delay = 10[Dispatcher]socket_path = dispatcher.socklisten = 0.0.0.0log_level = DEBUGrelay_timeout = 5[OpenSIPS]socket_path = /var/run/opensips/socketmax_connections = 10
 
In attachment complete opensips config file, logs of opensips, mediaproxy and sip messages.Thank you for help.
Giovanni. 
 
 
 
 






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110908/e474d57d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testInsideOutsideNat.zip
Type: application/zip
Size: 10864 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20110908/e474d57d/attachment.zip>


More information about the Users mailing list