Skip to content

Commit

Permalink
Merge pull request #3104 from purecloudlabs/hotfix/sipmsgops-allowed-…
Browse files Browse the repository at this point in the history
…routes

sipmsgops: fix allowed routes for exported functions
(cherry picked from commit 14e1eab)
  • Loading branch information
razvancrainea committed Jun 9, 2023
1 parent 59d4ff6 commit d14793b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
33 changes: 17 additions & 16 deletions modules/sipmsgops/doc/sipmsgops_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, ERROR_ROUTE.
BRANCH_ROUTE and ERROR_ROUTE.
</para>
<example>
<title><function>append_to_reply</function> usage</title>
Expand Down Expand Up @@ -110,7 +110,7 @@ append_to_reply("Foo: $rm at $Ts\r\n");
</para>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>append_hf</function> usage</title>
Expand Down Expand Up @@ -140,7 +140,7 @@ append_hf("From-username: $fU\r\n", "Call-ID");
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>insert_hf</function> usage</title>
Expand Down Expand Up @@ -175,7 +175,7 @@ insert_hf("To-username: $tU\r\n");
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>insert_hf</function> usage</title>
Expand Down Expand Up @@ -210,8 +210,8 @@ insert_hf("To-username: $tU\r\n", "Call-ID");
</listitem>
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE.
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE
and BRANCH_ROUTE.
</para>
<example>
<title><function>append_urihf</function> usage</title>
Expand Down Expand Up @@ -246,7 +246,7 @@ append_urihf("CC-Diversion: ", "\r\n");
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>is_present_hf</function> usage</title>
Expand Down Expand Up @@ -303,7 +303,7 @@ if (is_present_hf("From")) log(1, "From HF Present");
</para>
<para>
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE.
BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>append_time</function> usage</title>
Expand Down Expand Up @@ -349,7 +349,7 @@ append_time();
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE, and BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>is_method</function> usage</title>
Expand Down Expand Up @@ -387,7 +387,7 @@ if(is_method("OPTION|UPDATE"))
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE and BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>remove_hf</function> usage</title>
Expand Down Expand Up @@ -423,7 +423,7 @@ if(remove_hf("User-Agent"))
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE and BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>remove_hf_re</function> usage</title>
Expand Down Expand Up @@ -456,7 +456,7 @@ remove_hf_re("^X-g.+[0-9]");
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE and BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>remove_hf_glob</function> usage</title>
Expand Down Expand Up @@ -627,7 +627,8 @@ ruri_tel2sip();
</listitem>
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE
and LOCAL_ROUTE.
</para>
<example>
<title><function>is_uri_user_e164</function> usage</title>
Expand Down Expand Up @@ -659,7 +660,7 @@ if (is_uri_user_e164($avp(uri)) {
</para>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE and BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>has_body_part</function> usage</title>
Expand Down Expand Up @@ -698,7 +699,7 @@ if(has_body_part("application/sdp"))

<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE and BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>is_audio_on_hold</function> usage</title>
Expand Down Expand Up @@ -735,7 +736,7 @@ if(is_audio_on_hold())
</para>
<para>
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
FAILURE_ROUTE and BRANCH_ROUTE.
FAILURE_ROUTE, BRANCH_ROUTE and LOCAL_ROUTE.
</para>
<example>
<title><function>is_privacy</function> usage</title>
Expand Down
4 changes: 2 additions & 2 deletions modules/sipmsgops/sipmsgops.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,10 @@ static const cmd_export_t cmds[]={

{"ruri_del_param", (cmd_function)ruri_del_param, {
{CMD_PARAM_STR, 0, 0}, {0, 0, 0}},
REQUEST_ROUTE},
REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},

{"ruri_tel2sip", (cmd_function)ruri_tel2sip, {{0, 0, 0}},
REQUEST_ROUTE},
REQUEST_ROUTE|FAILURE_ROUTE|BRANCH_ROUTE|LOCAL_ROUTE},

{"is_uri_user_e164", (cmd_function)is_uri_user_e164, {
{CMD_PARAM_STR, 0, 0}, {0, 0, 0}},
Expand Down

0 comments on commit d14793b

Please sign in to comment.