<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>Hello,<br>
<br>
You need a client to implement attended / un-attended transfer via
REFER method.<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 10/17/2013 04:51 AM, Tấn Phát Ngô wrote:
<blockquote
cite="mid:CAP9L+0hh5Gd95Cg5PmqsZptD5Zh2pEwYCKL3F-s0QAOzGttdQQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi all,</div>
<div><br>
</div>
<div>I'm implementing B2BUA Refer but I don'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'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 & B2B module</div>
<div>loadmodule "usrloc.so"</div>
<div>loadmodule "b2b_entities.so"</div>
<div>loadmodule "b2b_logic.so"</div>
<div>loadmodule "uac_auth.so"</div>
<div>modparam("usrloc", "nat_bflag", "NAT")</div>
<div>modparam("usrloc", "db_mode", 2)</div>
<div>modparam("usrloc|b2b_entities|b2b_logic", "db_url",</div>
<div><span style="white-space: pre-wrap;"> </span>"mysql://opensips:opensipsrw@localhost/opensips")
# CUSTOMIZE ME</div>
<div>modparam("b2b_logic", "script_scenario",
"/usr/local/opensips/etc/b2b/refer_script.xml")</div>
<div>modparam("b2b_entities", "script_req_route",
"b2b_request")</div>
<div>modparam("b2b_entities", "script_reply_route",
"b2b_reply")</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 && !validate_dialog() ) {</div>
<div><span style="white-space: pre-wrap;"> </span>xlog("In-Dialog
$rm from $si (callid=$ci) is not valid according to
dialog\n");</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("BYE")) {</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("INVITE")) {</div>
<div><span style="white-space: pre-wrap;"> </span>b2b_init_request("refer");</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 size="4" face="courier new, monospace">-------------------------------------<br>
</font></div>
<font size="4" face="courier new, monospace">Ngô Tấn Phát</font>
<div>
<font size="4" face="courier new, monospace">Mobile:
(+84)0932624499</font></div>
<div><font size="4" face="courier new, monospace">Skype:
phat.wu</font></div>
</div>
</div>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>