[OpenSIPS-Users] How to check B2BUA Refer work?

Tấn Phát Ngô phat.wu at gmail.com
Thu Oct 17 03:51:14 CEST 2013


Hi all,

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!

And this is my OpenSIPs (v1.9) configuration:
+ Load module:

#### USeR LOCation & B2B module
loadmodule "usrloc.so"
loadmodule "b2b_entities.so"
loadmodule "b2b_logic.so"
loadmodule "uac_auth.so"
modparam("usrloc", "nat_bflag", "NAT")
modparam("usrloc", "db_mode",   2)
modparam("usrloc|b2b_entities|b2b_logic", "db_url",
"mysql://opensips:opensipsrw@localhost/opensips") # CUSTOMIZE ME
modparam("b2b_logic", "script_scenario",
"/usr/local/opensips/etc/b2b/refer_script.xml")
modparam("b2b_entities", "script_req_route", "b2b_request")
modparam("b2b_entities", "script_reply_route", "b2b_reply")



+ Main routing:

if (has_totag()) {
if (loose_route()) {
 if ( $DLG_status!=NULL && !validate_dialog() ) {
xlog("In-Dialog $rm from $si (callid=$ci) is not valid according to
dialog\n");
 ## exit;
}
if (is_method("BYE")) {
 setflag(ACC_DO);
setflag(ACC_FAILED);
} else if (is_method("INVITE")) {
 b2b_init_request("refer");
record_route();
}
 route(relay);
} else {
                          ................
                }

Thank you very much!

Regards,
Ngô Tấn Phát

-------------------------------------
Ngô Tấn Phát
Mobile: (+84)0932624499
Skype: phat.wu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20131017/78838768/attachment.htm>


More information about the Users mailing list