<div dir="ltr"><div>Hi all,</div><div><br></div><div>I&#39;m implementing B2BUA Refer but I don&#39;t know how to check if it works or not. I use UA (Linphone) calls UA (Zoiper) then Zoiper transfer to another UA (Linphone) but it don&#39;t use B2BUA. How can I check B2BUA Refer work well? Please help me with it!</div>

<div><br></div><div>And this is my OpenSIPs (v1.9) configuration:</div><div><div>+ Load module:</div><div><br></div><div>#### USeR LOCation &amp; B2B module</div><div>loadmodule &quot;usrloc.so&quot;</div><div>loadmodule &quot;b2b_entities.so&quot;</div>

<div>loadmodule &quot;b2b_logic.so&quot;</div><div>loadmodule &quot;uac_auth.so&quot;</div><div>modparam(&quot;usrloc&quot;, &quot;nat_bflag&quot;, &quot;NAT&quot;)</div><div>modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,   2)</div>

<div>modparam(&quot;usrloc|b2b_entities|b2b_logic&quot;, &quot;db_url&quot;,</div><div><span style="white-space:pre-wrap">        </span>&quot;mysql://opensips:opensipsrw@localhost/opensips&quot;) # CUSTOMIZE ME</div><div>modparam(&quot;b2b_logic&quot;, &quot;script_scenario&quot;, &quot;/usr/local/opensips/etc/b2b/refer_script.xml&quot;)</div>

<div>modparam(&quot;b2b_entities&quot;, &quot;script_req_route&quot;, &quot;b2b_request&quot;)</div><div>modparam(&quot;b2b_entities&quot;, &quot;script_reply_route&quot;, &quot;b2b_reply&quot;)</div></div><div><br></div>

<div><br></div><div><br></div><div>+ Main routing:</div><div><br></div><div><div>if (has_totag()) {</div><div><span style="white-space:pre-wrap">                </span>if (loose_route()) {<span style="white-space:pre-wrap">                        </span></div>

<div><span style="white-space:pre-wrap">                        </span>if ( $DLG_status!=NULL &amp;&amp; !validate_dialog() ) {</div><div><span style="white-space:pre-wrap">                                </span>xlog(&quot;In-Dialog $rm from $si (callid=$ci) is not valid according to dialog\n&quot;);</div>

<div><span style="white-space:pre-wrap">                                </span>## exit;</div><div><span style="white-space:pre-wrap">                        </span>}<span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>if (is_method(&quot;BYE&quot;)) {</div>

<div><span style="white-space:pre-wrap">                                </span>setflag(ACC_DO);</div><div><span style="white-space:pre-wrap">                                </span>setflag(ACC_FAILED);</div><div><span style="white-space:pre-wrap">                        </span>} else if (is_method(&quot;INVITE&quot;)) {</div>

<div><span style="white-space:pre-wrap">                                </span>b2b_init_request(&quot;refer&quot;);</div><div><span style="white-space:pre-wrap">                                </span>record_route();</div><div><span style="white-space:pre-wrap">                        </span>}</div>

<div><span style="white-space:pre-wrap">                        </span>route(relay);</div><div><span style="white-space:pre-wrap">                </span>} else {</div></div>                          ................<div>                }</div><div>
<br></div><div>Thank you very much!</div><div><br clear="all"><div><div dir="ltr"><div>Regards,</div><div>Ngô Tấn Phát</div><div><br></div><div><font face="courier new, monospace" size="4">-------------------------------------<br>
</font></div><font face="courier new, monospace" size="4">Ngô Tấn Phát</font><div>
<font face="courier new, monospace" size="4">Mobile: (+84)0932624499</font></div><div><font face="courier new, monospace" size="4">Skype: phat.wu</font></div></div></div>
</div></div>