<div dir="ltr">Hello,<div><br></div><div><br></div><div style>I'm already testing the b2bua module with the simple topology Hiding test, with a sipp scenario of a simple call.</div><div style>The Call is OK but I set the modparam("b2b_entities", "replication_mode", 0) and the call id of new leg is the same for the new INVITE ?</div>
<div style><br></div><div style>Thanks in advance</div><div style><br></div><div style><br></div><div style>Here my config file :<br></div><div style><br></div><div style><br></div><div style><div># $Id: opensips-b2b.cfg $</div>
<div><br></div><div># Debugging mode:</div><div>debug=6</div><div>memlog= 6</div><div>fork=yes</div><div>auto_aliases=no</div><div>log_stderror=no</div><div><br></div><div>disable_dns_blacklist=yes</div><div><br></div><div>
listen=udp:<a href="http://172.17.1.251:5060">172.17.1.251:5060</a> # CUSTOMIZE ME</div><div><br></div><div>disable_tcp=no</div><div>listen=tcp:<a href="http://172.17.1.251:5060">172.17.1.251:5060</a> # CUSTOMIZE ME </div>
<div><br></div><div>disable_tls=yes</div><div># alias=OSIPS_REALM</div><div>#port=OSIPS_PORT</div><div><br></div><div><br></div><div>sip_warning=0</div><div>#server_header="SRV_SIGNATURE"</div><div>#user_agent_header="PP_USER_AGENT"</div>
<div><br></div><div>#mhomed=yes</div><div>#memlog=2</div><div>check_via=no</div><div>dns=off</div><div>rev_dns=off</div><div>children=8</div><div>disable_tcp=yes</div><div>log_facility=LOG_LOCAL1</div><div># for more info: opensips -h</div>
<div><br></div><div># ------------------ module loading ----------------------------------</div><div><br></div><div>mpath="/usr/local/src/1.9/modules/"</div><div><br></div><div>loadmodule "db_mysql.so"</div>
<div>#loadmodule "xlog.so"</div><div>loadmodule "sipmsgops.so"</div><div>loadmodule "textops.so"</div><div>loadmodule "maxfwd.so"</div><div>loadmodule "rr.so"</div><div>loadmodule "sl.so"</div>
<div>loadmodule "tm.so"</div><div>loadmodule "signaling.so"</div><div>loadmodule "b2b_entities.so"</div><div>loadmodule "b2b_logic.so"</div><div>loadmodule "usrloc.so"</div>
<div>loadmodule "registrar.so"</div><div>loadmodule "mi_fifo.so"</div><div>loadmodule "uac.so"</div><div>loadmodule "uac_auth.so"</div><div><br></div><div><br></div><div># ----------------- setting module-specific parameters ---------------</div>
<div>modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")</div><div><br></div><div><br></div><div>modparam("usrloc|b2b_entities|b2b_logic", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")</div>
<div>modparam("usrloc", "db_mode", 2)</div><div><br></div><div>modparam("tm", "pass_provisional_replies", 1)</div><div>modparam("tm", "fr_timer", 5)</div><div>modparam("tm", "fr_inv_timer", 30)</div>
<div>modparam("tm", "restart_fr_on_each_reply", 0)</div><div>modparam("tm", "onreply_avp_mode", 1)</div><div><br></div><div>#modparam("b2b_entities", "server_address", "<a href="http://sip:sa@pro1ras01.ims.sfr.net:5060">sip:sa@pro1ras01.ims.sfr.net:5060</a>")</div>
<div>#modparam("b2b_logic", "script_scenario", "/usr/local/etc/opensips/scenario_script.xml")</div><div>#modparam("b2b_logic", "extern_scenario", "/usr/local/etc/opensips/scenario_extern.xml")</div>
<div>modparam("b2b_entities", "script_req_route", "b2b_request")</div><div>modparam("b2b_entities", "script_reply_route", "b2b_reply")</div><div>modparam("b2b_entities", "replication_mode", 0)</div>
<div><br></div><div>route[b2b_request] {</div><div> xlog("b2b_request ($ci)\n");</div><div>}</div><div><br></div><div><br></div><div>route[b2b_reply] {</div><div> xlog("b2b_reply ($ci)\n");</div><div>
}</div><div><br></div><div><br></div><div>route {</div><div> if (!mf_process_maxfwd_header("10")) {</div><div> sl_send_reply("483","Too Many Hops");</div><div> exit;</div><div> };</div>
<div><br></div><div> if (msg:len >= 2380 ) {</div><div> sl_send_reply("513", "Message too big");</div><div> exit;</div><div> };</div><div><br></div><div> #if (!method=="REGISTER")</div>
<div> # record_route();</div><div><br></div><div> # subsequent messages withing a dialog should take the</div><div> # path determined by record-routing</div><div> if (loose_route()) {</div><div> # mark routing logic in request</div>
<div> append_hf("P-hint: rr-enforced\r\n"); </div><div> route(1);</div><div> };</div><div><br></div><div> if(is_method("INVITE")) /* skip Invite messages generated by the server*/</div><div> {</div>
<div> # DO NOT call t_newtran() on this request -> it will result in the transaction never being deleted</div><div> b2b_init_request("top hiding");</div><div> exit; # do not forward this request, another one will be generated</div>
<div> };</div><div><br></div><div> if (!uri==myself) {</div><div> # mark routing logic in request</div><div> append_hf("P-hint: outbound\r\n"); </div><div> route(1);</div><div> };</div><div><br></div>
<div><br></div><div> if (uri==myself) {</div><div><br></div><div> if (method=="REGISTER") {</div><div> save("location");</div><div> exit;</div><div> };</div><div><br></div><div> # native SIP destinations are handled using our USRLOC DB</div>
<div> if (!lookup("location")) {</div><div> sl_send_reply("404", "Not Found");</div><div> exit;</div><div> };</div><div> append_hf("P-hint: usrloc applied\r\n"); </div>
<div> };</div><div><br></div><div> route(1);</div><div>}</div><div><br></div><div><br></div><div>route[1] {</div><div> # send it out now; use stateful forwarding as it works reliably</div><div> # even for UDP2TCP</div>
<div><br></div><div> if (!t_relay()) {</div><div> sl_reply_error();</div><div> };</div><div> exit;</div><div>}</div><div><br></div></div></div>