[OpenSIPS-Users] avp scope bug in 3.2 ?
johan
johan at democon.be
Fri May 28 10:39:48 EST 2021
script :
local_route
{
xlog("callid=$ci: local_route: received message $mb");
xlog("callid=$ci: local_route: what ever comes from local goes to
b2bua");
$avp(b2bua)=1;
xlog("callid=$ci: avp(b2bua)=$avp(b2bua)");
}
route[relay]
{
# for INVITEs enable some additional helper routes
xlog("route realy ft [$ft] tt [$tt]");
if (is_method("INVITE"))
{
t_on_branch("per_branch_ops");
t_on_reply("handle_nat");
t_on_failure("missed_call");
route(rtpengine);
}
if ($avp(b2bua)==1)
{
xlog("route relay: avp(b2bua)=$avp(b2bua)==1; adding
record-route, reset avp and sending to b2bua");
$avp(b2bua)=0;
record_route();
if (!t_relay(,"udp:192.168.68.116:5060"))
{
send_reply(500,"Internal Error");
xlog("route relay: routing to b2bua failed");
}
}
else
{
xlog("route relay: avp(b2bua)=$avp(b2bua)!=1; normal call flow ");
if (!t_relay())
{
send_reply(500,"Internal Error");
}
}
exit;
}
expected behaviour :when local_route is entered the avp value goes to 1.
I would expect it to be 1 in route[relay] also.
However :
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
May 28 06:31:02 debian10opensips31 /data/opensips/sbin/opensips[13548]:
callid=1976ffb3-6749-4920-b7ef-5ce56cef6c8a: avp(b2bua)=1
...
May 28 06:31:02 debian10opensips31 /data/opensips/sbin/opensips[13543]:
route relay: avp(b2bua)=<null>!=1; normal call flow
=> avp(b2bua) is not seen in route[relay]. Is this a bug or is this
intended behaviour ?
__
_
_
_wkr, _
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210528/7deb57c6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xD7D896F7DDA70EC3.asc
Type: application/pgp-keys
Size: 2450 bytes
Desc: OpenPGP public key
URL: <http://lists.opensips.org/pipermail/users/attachments/20210528/7deb57c6/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 665 bytes
Desc: OpenPGP digital signature
URL: <http://lists.opensips.org/pipermail/users/attachments/20210528/7deb57c6/attachment.sig>
More information about the Users
mailing list