[OpenSIPS-Users] B2B No TO TAG found
Antonio Anderson Souza
antonioams at gmail.com
Tue Apr 13 23:00:41 CEST 2010
Hi,
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:
*Apr 13 14:10:18 localhost opensips[8924]: ERROR:b2b_entities:b2b_tm_**cback:
No TO TAG found *
Follow bellow my b2b scenario [2], and the Cfg snippet [3].
[1] - http://www.opensips.org/Resources/B2buaTutorial#toc15
[2] - B2B Scenario:
<?xml version="1.0"?>
<scenario id="b2b-refer" name="Handle refer at server" param="0"
type="script">
<init>
<bridge>
<server>
<id>server1</id>
</server>
<client>
<id>client1</id>
<type>message</type>
<destination>
<value type="header">Refer-To</value>
</destination>
</client>
</bridge>
</init>
<rules>
<request>
<refer>
<rule id="1">
<action>
<send_reply>
<code>202</code>
<reason>Accepted</reason>
</send_reply>
<end_dialog_leg/>
<bridge>
<client>
<peer/>
</client>
<client>
<id>client2</id>
<destination>
<value type="header">Refer-To</value>
</destination>
</client>
</bridge>
</action>
</rule>
</refer>
</request>
</rules>
</scenario>
[3] - Cfg snippet
if (has_totag()) {
# sequential request withing a dialog should
# take the path determined by record-routing
if (loose_route()) {
if (is_method("BYE")) {
setflag(1); # do accounting ...
setflag(3); # ... even if the transaction
fails
} else if (is_method("INVITE")) {
# even if in most of the cases is useless,
do RR for
# re-INVITEs alos, as some buggy clients do
change route set
# during the dialog.
record_route();
} else if (is_method("REFER")) {
xlog("L_ERR",
"Refer received the b2b scenario
will be triggered [$fu/$tu/$ru/$ci]");
# Start B2B Script to handle the
transference
*b2b_init_request("b2b-refer");*
xlog("L_ERR",
"Refer processed by the b2b scenario
[$fu/$tu/$ru/$ci]");
exit;
Does anybody have some idea to help me?
Best regards,
Antonio Anderson Souza
Voice Technology
http://www.antonioams.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100413/4076d4b3/attachment.htm
More information about the Users
mailing list