Module: kamailio
Branch: master
Commit: 3d6fecc6bc6d52f56d0fdd4e075a15032da91421
URL: https://github.com/kamailio/kamailio/commit/3d6fecc6bc6d52f56d0fdd4e075a150…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-29T09:55:33+01:00
siputils: docs for tel2sip2() function
---
Modified: src/modules/siputils/doc/siputils_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/3d6fecc6bc6d52f56d0fdd4e075a150…
Patch: https://github.com/kamailio/kamailio/commit/3d6fecc6bc6d52f56d0fdd4e075a150…
---
diff --git a/src/modules/siputils/doc/siputils_admin.xml b/src/modules/siputils/doc/siputils_admin.xml
index 63984c60c67..d2197b1c3f4 100644
--- a/src/modules/siputils/doc/siputils_admin.xml
+++ b/src/modules/siputils/doc/siputils_admin.xml
@@ -539,13 +539,15 @@ if (uri_param_rm("param1")) {
<para>
The conversion follows the rules in RFC 3261 section 19.1.6:
<itemizedlist>
- <listitem>
- <para>Visual separators ( "-", ".", "(", ")" ) are removed from tel URI number before converting it to SIP URI userinfo.</para>
+ <listitem>
+ <para>Visual separators ( "-", ".", "(", ")" ) are removed
+ from tel URI number before converting it to SIP URI userinfo.</para>
</listitem>
<listitem>
- <para>tel URI parameters are downcased before appending them to SIP URI userinfo</para>
- </listitem>
- </itemizedlist>
+ <para>tel URI parameters are downcased before appending them
+ to SIP URI userinfo</para>
+ </listitem>
+ </itemizedlist>
</para>
<para>
The SIP URI hostpart is taken from second param
@@ -569,6 +571,36 @@ tel2sip("$ru", $fd", "$ru");
tel2sip("$ru", $fd", "$ru");
# $ru: sip:+12345678;ext=200;isub=+123-456@foo.com;user=phone
...
+</programlisting>
+ </example>
+ </section>
+ <section id="siputils.f.tel2sip2">
+ <title>
+ <function moreinfo="none">tel2sip2(uri, hostpart, result)</function>
+ </title>
+ <para>
+ Alternative to sip2tel() function that tries to follow closer the RFC
+ requrements (e.g., sort tel: uri parameters copied to the sip: uri in
+ the manner defined in the standard; deletes the phone-context parameter
+ if it is a domain, and, takes visual separators from the phone-context
+ parameter if it is a telephone number).
+ </para>
+ <para>
+ Its parameters have the same meaning as for tel2sip().
+ </para>
+ <para>
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
+ BRANCH_ROUTE, or ONREPLY_ROUTE.
+ </para>
+ <example>
+ <title><function>tel2sip2</function> usage</title>
+ <programlisting format="linespecific">
+...
+# $ru: tel:+(34)-999-888-777
+# $fu: sip:test@foo.com
+tel2sip2("$ru", $fd", "$ru");
+# $ru: sip:+34999888777@foo.com;user=phone
+...
</programlisting>
</example>
</section>
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
This PR fixes duplicate "Destination-Realm" AVP being added to Session Termination Request Diameter message sent over Rx interface
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3692
-- Commit Summary --
* cdp: add destination realm avp only if not present
-- File Changes --
M src/modules/cdp/authstatemachine.c (32)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3692.patchhttps://github.com/kamailio/kamailio/pull/3692.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3692
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3692(a)github.com>