Skip to content

Commit

Permalink
[docs] replace old avp functions in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed Feb 20, 2024
1 parent cca6f15 commit bcdffb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
14 changes: 6 additions & 8 deletions modules/h350/doc/h350_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -657,15 +657,13 @@ if (!h350_result_call_preferences("callee_pref_") && ($retcode == -1))

if ($avp(callee_pref_u) != NULL)
{
# replace R-URI with CFU URI, g will fetch all CFU URIs
# push CFU URI into R-URI and additional branches
# --> request can fork
if (avp_pushto("$ru", "$avp(callee_pref_u)/g"))
{
avp_delete("$avp(callee_pref_u)");
} else
{
sl_send_reply(500, "Internal server error");
exit;
$ru = $avp(callee_pref_u);
$avp(callee_pref_u) = NULL;
while ($avp(callee_pref_u)!=NULL) {
$branch = $avp(callee_pref_u);
$avp(callee_pref_u) = NULL;
}
sl_send_reply(181, "Call is being forwarded");
t_relay();
Expand Down
3 changes: 1 addition & 2 deletions modules/osp/etc/sample-osp-opensips.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1102,8 +1102,7 @@ route[6] {
# log(3, "Remove otg parameter\n");
#
# if ($(fu{param.exist, otg})) {
# $avp(from) = $fu;
# avp_subst("$avp(from)", "/(.*);otg=([^;]*)(.*)/\1\3/");
# $avp(from) = $(fu{re.subst,/(.*);otg=([^;]*)(.*)/\1\3/});
# xlog("L_INFO", "----ROUTE: New From URI = $avp(from)\n");
# uac_replace_from("$avp(from)");
# } else {
Expand Down

0 comments on commit bcdffb9

Please sign in to comment.