[OpenSIPS-Users] b2b refer scenario

Anca Vamanu anca at opensips.org
Mon Jan 3 14:19:42 CET 2011


On 12/30/2010 01:31 PM, Anton Zagorskiy wrote:
> Hi.
>
> Inspecting b2b_entities/dlg.c I've found that b2b_new_dlg() rejects all
> non-INVITE requests.
>
> Line 861:
> if(msg->first_line.u.request.method_value != METHOD_INVITE)
> {
> 	LM_ERR("Called b2b_init on a Cancel message\n");
>        return 0;
> }
>
>
> So, how to use B2B REFER scenario from b2b tutorail? In this case
> method_value is METHOD_REFER.
>
>

  "b2b_init_request" must be called on the initial INVITE. I will mark 
it in red in the tutorial.

Regards,

-- 
Anca Vamanu
www.voice-system.ro



> 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
>
>
>
>> -----Original Message-----
>> From: users-bounces at lists.opensips.org [mailto:users-
>> bounces at lists.opensips.org] On Behalf Of Anton Zagorskiy
>> Sent: Tuesday, December 28, 2010 8:20 PM
>> To: 'OpenSIPS users mailling list'
>> Subject: [OpenSIPS-Users] b2b refer scenario
>>
>> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>





More information about the Users mailing list