[OpenSIPS-Users] b2b refer scenario

Anton Zagorskiy a.zagorskiy at oyster-telecom.ru
Wed Dec 29 08:43:18 CET 2010

Hi Duane.

I'm using 1.6.4 revision 7621.
I have Linksys SPA 921s. They send REFER request with To-Tag, but you said
B2B cann't be used with To-Tag. How to use B2B in my case?

From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Duane Larson
Sent: Tuesday, December 28, 2010 8:36 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] b2b refer scenario

One thing that might be asked of you is what version of OpenSIPS are you
running.  I think there have been some updates that fixed some b2b issues. 
Also I believe that  in order for you to use b2b the SIP message cannot have
a ToTag.
You have to use B2B like so
if(is_method("INVITE") && !(src_ip == "OPENSIPS_IP") && !has_totag() ) {
On Tue, Dec 28, 2010 at 11:20 AM, Anton Zagorskiy
<a.zagorskiy at oyster-telecom.ru> wrote:

I'm trying to use b2b refer scenario
But I've got errors in the log:

*** route: REFER request, call B2B(refer)
DBG:core:parse_headers: flags=ffffffffffffffff
DBG:b2b_logic:b2bl_insert_new: new tuple [0xb60c1238]->[468.0]
DBG:core:parse_headers: flags=ffffffffffffffff
ERROR:b2b_entities:b2b_new_dlg: Called b2b_init on a Cancel message
ERROR:b2b_entities:server_new: failed to create new dialog structure entry
ERROR:b2b_logic:b2b_process_scenario_init: failed to create new b2b server
DBG:b2b_logic:b2bl_delete: Delete record [0xb60c1238]->[468.0],
hash_index=[468], local_index=[0]
*** route: REFER request, B2B(refer) called, exit

I'm catching REFER in a loose_route section:

if (has_totag())
       if (loose_route())
       if ( ($DLG_status != NULL) && (!validate_dialog()) )
               xlog("*** !!! [ROUTE]: bad dialog");
               if (is_method("REFER"))
                       xlog("*** route: REFER request, call B2B(refer)");
                       xlog("*** route: REFER request, B2B(refer) called,



What I'm doing wrong?

WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagorskiy at oyster-telecom.ru

Users mailing list
Users at lists.opensips.org


More information about the Users mailing list