Hi,<br><br>I&#39;m creating a B2B scnarios to handle Refer request and
execute the transfer process, I&#39;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>&lt;?xml version=&quot;1.0&quot;?&gt;<br>&lt;scenario id=&quot;b2b-refer&quot; name=&quot;Handle refer at server&quot; param=&quot;0&quot; type=&quot;script&quot;&gt;<br>  &lt;init&gt;<br>    &lt;bridge&gt;<br>


      &lt;server&gt;<br>        &lt;id&gt;server1&lt;/id&gt;<br>      &lt;/server&gt;<br>      &lt;client&gt;<br>        &lt;id&gt;client1&lt;/id&gt;<br>        &lt;type&gt;message&lt;/type&gt;<br>        &lt;destination&gt;<br>


          &lt;value type=&quot;header&quot;&gt;Refer-To&lt;/value&gt;<br>        &lt;/destination&gt;<br>      &lt;/client&gt;<br>    &lt;/bridge&gt;<br>  &lt;/init&gt;<br><br>  &lt;rules&gt;<br>     &lt;request&gt;<br>       &lt;refer&gt;<br>


         &lt;rule id=&quot;1&quot;&gt;<br>           &lt;action&gt;<br>             &lt;send_reply&gt;<br>               &lt;code&gt;202&lt;/code&gt;<br>               &lt;reason&gt;Accepted&lt;/reason&gt;<br>             &lt;/send_reply&gt;<br>


             &lt;end_dialog_leg/&gt;<br>             &lt;bridge&gt;<br>               &lt;client&gt;<br>                 &lt;peer/&gt;<br>               &lt;/client&gt;<br>               &lt;client&gt;<br>                 &lt;id&gt;client2&lt;/id&gt;<br>


                 &lt;destination&gt;<br>                   &lt;value type=&quot;header&quot;&gt;Refer-To&lt;/value&gt;<br>                 &lt;/destination&gt;<br>               &lt;/client&gt;<br>             &lt;/bridge&gt;<br>


           &lt;/action&gt;<br>         &lt;/rule&gt;<br>       &lt;/refer&gt;<br>    &lt;/request&gt;<br>  &lt;/rules&gt;<br>&lt;/scenario&gt;<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(&quot;BYE&quot;)) {<br>                              <div id=":8sh" class="ii gt">

  setflag(1); # do accounting ...<br>
                                setflag(3); # ... even if the transaction fails<br>                        } else if (is_method(&quot;INVITE&quot;)) {<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(&quot;REFER&quot;)) {<br>


                                xlog(&quot;L_ERR&quot;,<br>                                        &quot;Refer received the b2b scenario will be triggered [$fu/$tu/$ru/$ci]&quot;);<br>                                # Start B2B Script to handle the transference<br>


                                <b>b2b_init_request(&quot;b2b-refer&quot;);</b><br>                                xlog(&quot;L_ERR&quot;,<br>                                        &quot;Refer processed by the b2b scenario [$fu/$tu/$ru/$ci]&quot;);<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>