<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
<br>
You made the classic error due to not reading the documentation
carefully - you need to call b2b_init_request on the initial Invite(
and only on it). Do not call it on REFER.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">-- 
Anca Vamanu
<a class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a></pre>
<br>
<br>
<br>
On 07/28/2010 04:35 PM, Premalatha Kuppan wrote:
<blockquote
 cite="mid:AANLkTikYfiJGhHUhPKSQ=BnReJjWZn6An-1v8xd_EHSG@mail.gmail.com"
 type="cite">Hi,<br>
  <br>
Iam using Opensips as proxy and B2BUA. But B2BUA doesn't seems to work.
Iam getting following error.<br>
  <br>
This is to Handle REFER request. From Asterisk Iam sending REFER
request to Opensips. But getting following error.<br>
  <br>
any insight ?<br>
  <br>
1. From Asterisk:<br>
  <br>
REFER <a class="moz-txt-link-freetext" href="sip:4081112222@xxxx:5060">sip:4081112222@xxxx:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP yyyyyy:5070;branch=z9hG4bK5a523824;rport<br>
Route: <a class="moz-txt-link-rfc2396E" href="sip:yyyyy;lr=on">&lt;sip:yyyyy;lr=on&gt;</a><br>
From: <a class="moz-txt-link-rfc2396E" href="sip:7081110000@xxxxxxx">&lt;sip:7081110000@xxxxxxx&gt;</a>;tag=as6ed72d65<br>
To: 4081112222 <a class="moz-txt-link-rfc2396E" href="sip:4081112222@yyyyyy">&lt;sip:4081112222@yyyyyy&gt;</a>;tag=1549130118<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:IVR_pickup@yyyyyy:5070">&lt;sip:IVR_pickup@yyyyyy:5070&gt;</a><br>
Call-ID: 0E1A436F-6A3A-7537-D2FF-B6D5FFF56619@xxxxxxx<br>
CSeq: 102 REFER<br>
User-Agent: Asterisk PBX<br>
Max-Forwards: 70<br>
Refer-To: <a class="moz-txt-link-rfc2396E" href="sip:999_44_1234@xxxxxx:41452;transport=tcp">&lt;sip:999_44_1234@xxxxxx:41452;transport=tcp&gt;</a><br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO<br>
Supported: replaces<br>
Referred-By: <a class="moz-txt-link-rfc2396E" href="sip:IVR_pickup@xxxxxx:5070">&lt;sip:IVR_pickup@xxxxxx:5070&gt;</a><br>
  <br>
2. Opensips.cfg<br>
  <br>
&nbsp;if (method=="REFER")<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("Call from Asterisk PROTOCOL=$pr PORT=$op PROTOCOL
PORT=$oP&nbsp; RQT=$oU \n");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; b2b_init_request("refer");<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
  <br>
3. Opensips Log:<br>
  <br>
Jul 28 09:17:40 204548-4 /usr/local/sbin/opensips[6199]:
ERROR:b2b_entities:b2b_new_dlg: no Content-Length header found!<br>
Jul 28 09:17:40 204548-4 /usr/local/sbin/opensips[6199]:
ERROR:b2b_entities:server_new: failed to create new dialog structure
entry<br>
Jul 28 09:17:40 204548-4 /usr/local/sbin/opensips[6199]:
ERROR:b2b_logic:b2b_process_scenario_init: failed to create new b2b
server instance<br>
Jul 28 09:17:41 204548-4 /usr/local/sbin/opensips[6199]:
ERROR:b2b_entities:b2b_new_dlg: no Content-Length header found!<br>
Jul 28 09:17:41 204548-4 /usr/local/sbin/opensips[6199]:
ERROR:b2b_entities:server_new: failed to create new dialog structure
entry<br>
Jul 28 09:17:41 204548-4 /usr/local/sbin/opensips[6199]:
ERROR:b2b_logic:b2b_process_scenario_init: failed to create new b2b
server instance<br>
  <br>
  <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>