<div dir="ltr">Hello,<div><br></div><div style>I found my mistake, the loose route caught all the packets and the b2bua was never triggered :-/</div><div style>Now the sipp Call flow is working with the b2bua module and the topology Hiding scenario :), => (You don't have to forgot to <span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">pass </span>Route header <span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"> from the dialog of one side to the other side</span> with Custom header modparam)</div>
<div style><br></div><div style>Thanks </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/7/8 Mehdi BOUDOU <span dir="ltr"><<a href="mailto:mehdi.boudou@gmail.com" target="_blank">mehdi.boudou@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div><br></div><div>I'm already testing the b2bua module with the simple topology Hiding test, with a sipp scenario of a simple call.</div>
<div>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><br></div><div>Thanks in advance</div><div><br></div><div><br></div><div>Here my config file :<br></div><div><br></div><div><br></div><div><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" target="_blank">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" target="_blank">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" target="_blank">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>
</blockquote></div><br></div>