Hi,<br><br>I'm creating a B2B scnarios to handle Refer request and
execute the transfer process, I'm using the Refer scenario [1] as
reference, but when the UAC sends the Refer to Opensips and the Script
call the scenario and the following error is printed in the Log:<br>
<br><b>Apr 13 14:10:18 localhost opensips[8924]: ERROR:b2b_entities:b2b_tm_</b><b>cback: No TO TAG found </b><br><br>Follow bellow my b2b scenario [2], and the Cfg snippet [3].<br><br>[1] - <a href="http://www.opensips.org/Resources/B2buaTutorial#toc15" target="_blank">http://www.opensips.org/Resources/B2buaTutorial#toc15</a><br>
<br>[2] - B2B Scenario:<br><?xml version="1.0"?><br><scenario id="b2b-refer" name="Handle refer at server" param="0" type="script"><br>  <init><br>    <bridge><br>
      <server><br>        <id>server1</id><br>      </server><br>      <client><br>        <id>client1</id><br>        <type>message</type><br>        <destination><br>
          <value type="header">Refer-To</value><br>        </destination><br>      </client><br>    </bridge><br>  </init><br><br>  <rules><br>     <request><br>       <refer><br>
         <rule id="1"><br>           <action><br>             <send_reply><br>               <code>202</code><br>               <reason>Accepted</reason><br>             </send_reply><br>
             <end_dialog_leg/><br>             <bridge><br>               <client><br>                 <peer/><br>               </client><br>               <client><br>                 <id>client2</id><br>
                 <destination><br>                   <value type="header">Refer-To</value><br>                 </destination><br>               </client><br>             </bridge><br>
           </action><br>         </rule><br>       </refer><br>    </request><br>  </rules><br></scenario><br><br><br><br>[3] - Cfg snippet<br><br>        if (has_totag()) {<br>                # sequential request withing a dialog should<br>
                # take the path determined by record-routing<br>                if (loose_route()) {<br>                        if (is_method("BYE")) {<br>                              <div id=":8sh" class="ii gt">
  setflag(1); # do accounting ...<br>
                                setflag(3); # ... even if the transaction fails<br>                        } else if (is_method("INVITE")) {<br>                                # even if in most of the cases is useless, do RR for<br>
                                # re-INVITEs alos, as some buggy clients do change route set<br>                                # during the dialog.<br>                                record_route();<br>                        } else if (is_method("REFER")) {<br>
                                xlog("L_ERR",<br>                                        "Refer received the b2b scenario will be triggered [$fu/$tu/$ru/$ci]");<br>                                # Start B2B Script to handle the transference<br>
                                <b>b2b_init_request("b2b-refer");</b><br>                                xlog("L_ERR",<br>                                        "Refer processed by the b2b scenario [$fu/$tu/$ru/$ci]");<br>
                                exit;<br><br><br>Does anybody have some idea to help me?<br><br>Best regards,</div><br clear="all">Antonio Anderson Souza<br>Voice Technology<br><a href="http://www.antonioams.com">http://www.antonioams.com</a><br>