[OpenSIPS-Users] b2b refer scenario

Duane Larson duane.larson at gmail.com
Tue Dec 28 18:36:00 CET 2010


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() ) {
{
    location();
    b2b_init_request("refer");
    exit;
}

On Tue, Dec 28, 2010 at 11:20 AM, Anton Zagorskiy <
a.zagorskiy at oyster-telecom.ru> wrote:

> Hi.
>
> I'm trying to use b2b refer scenario
> http://www.opensips.org/Resources/B2buaTutorial#toc15
> 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
> instance
> 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");
>            }
>            else
>            {
>                if (is_method("REFER"))
>                  {
>                        xlog("*** route: REFER request, call B2B(refer)");
>                        b2b_init_request("refer");
>                        xlog("*** route: REFER request, B2B(refer) called,
> exit");
>                        exit;
>                    };
>
>                                        ...
>
>            };
>        };
> };
>
>
> 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
> www.oyster-telecom.ru
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
--
*--*--*--*--*--*
Duane
*--*--*--*--*--*
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20101228/e58b3a15/attachment.htm>


More information about the Users mailing list