<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>script : <br>
</p>
<p><br>
</p>
<p>local_route<br>
{<br>
xlog("callid=$ci: local_route: received message $mb");<br>
xlog("callid=$ci: local_route: what ever comes from local goes
to b2bua");<br>
$avp(b2bua)=1;<br>
xlog("callid=$ci: avp(b2bua)=$avp(b2bua)"); <br>
}</p>
<p><br>
</p>
<p>route[relay] <br>
{<br>
# for INVITEs enable some additional helper routes<br>
xlog("route realy ft [$ft] tt [$tt]");<br>
if (is_method("INVITE")) <br>
{<br>
t_on_branch("per_branch_ops");<br>
t_on_reply("handle_nat");<br>
t_on_failure("missed_call");<br>
route(rtpengine);<br>
}<br>
if ($avp(b2bua)==1)<br>
{<br>
xlog("route relay: avp(b2bua)=$avp(b2bua)==1; adding
record-route, reset avp and sending to b2bua"); <br>
$avp(b2bua)=0;<br>
record_route();<br>
if (!t_relay(,"udp:192.168.68.116:5060"))<br>
{<br>
send_reply(500,"Internal Error");<br>
xlog("route relay: routing to b2bua failed");<br>
}<br>
}<br>
else<br>
{<br>
xlog("route relay: avp(b2bua)=$avp(b2bua)!=1; normal call
flow "); <br>
if (!t_relay())<br>
{<br>
send_reply(500,"Internal Error");<br>
}<br>
}<br>
exit;<br>
}</p>
<p><br>
</p>
<p>expected behaviour :when local_route is entered the avp value
goes to 1. <br>
</p>
<p>I would expect it to be 1 in route[relay] also. <br>
</p>
<p><br>
</p>
<p>However : <br>
</p>
<p><br>
</p>
<p>May 28 06:31:02 debian10opensips31
/data/opensips/sbin/opensips[13548]:
callid=1976ffb3-6749-4920-b7ef-5ce56cef6c8a: local_route: what
ever comes from local goes to b2bua<br>
May 28 06:31:02 debian10opensips31
/data/opensips/sbin/opensips[13548]:
callid=1976ffb3-6749-4920-b7ef-5ce56cef6c8a: avp(b2bua)=1<br>
... <br>
</p>
<p>May 28 06:31:02 debian10opensips31
/data/opensips/sbin/opensips[13543]: route relay:
avp(b2bua)=<null>!=1; normal call flow <br>
</p>
<p>=> avp(b2bua) is not seen in route[relay]. Is this a bug or
is this intended behaviour ? <br>
<u></u></p>
<p><u><br>
</u></p>
<p><u>wkr, </u><br>
</p>
</body>
</html>