Good morning,
When I start opensips with the attached config file : I have the following
error
Oct 24 11:28:55 [29804] ERROR:core:fix_actions: called route 4 is not
defined
Oct 24 11:28:55 [29804] ERROR:core:fix_actions: fixing failed (code=-6) at
cfg line 125
Oct 24 11:28:55 [29804] ERROR:core:main: failed to fix configuration with
err code -6
The problem is that I have nowhere a route 4 defined ..
I do however manipulations on headers and I think I need to reroute then
through route(0)
if(is_method("REFER"))
{
#x contains the value of the Refer-To header==$rt
$var(x)=$rt;
#remove the Refer-To header
remove_hf("Refer-To");
#manipulate x : extract part before ; and add >
$var(x)=$(var(x){s.select,0,;});#{s.fill.right,>,1});
$var(x)=$var(x) + ">";
append_hf("Refer-To:$var(x)");
#re route through route[0]
route(0);
}
Can it be that the problem is route(0); ?
Please find config below, do you have an idea what is happening ? Secondly,
I also attached the b2bua scenario. If route(0) does not work, then how do
I need to change the refer-to header before the bridge action is done ?
BR, Johan.
opensips_problem.cfg
Description: Binary data
<?xml version="1.0"?>
<scenario id="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="initial">server1</value>
</destination>
</client>
</bridge>
</init>
<rules>
<request>
<refer>
<rule id="1">
<condition>
<state>2</state>
</condition>
<action>
<state>1</state>
<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>
<rule id="2">
<action>
<state>2</state>
</action>
</rule>
</refer>
</request>
</rules>
</scenario>
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
