Module: sip-router
Branch: master
Commit: 6f06566ab7f48162a01725e07c72649aeb4b5ecc
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6f06566…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 5 10:51:56 2012 +0100
auth: documented realm_prefix parameter
---
modules/auth/README | 27 +++++++++++++++++++++------
modules/auth/doc/params.xml | 21 +++++++++++++++++++++
2 files changed, 42 insertions(+), 6 deletions(-)
diff --git a/modules/auth/README b/modules/auth/README
index a29bcf5..692c6d8 100644
--- a/modules/auth/README
+++ b/modules/auth/README
@@ -37,6 +37,7 @@ Daniel-Constantin Mierla
1.3.11. nonce_expire (integer)
1.3.12. nonce_auth_max_drift (integer)
1.3.13. force_stateless_reply (boolean)
+ 1.3.14. realm_prefix (string)
1.4. Functions
@@ -496,6 +497,20 @@ modparam("auth", "nonce_auth_max_drift", 1) # set max drift to 1 s
modparam("auth", "force_stateless_reply", 1)
...
+1.3.14. realm_prefix (string)
+
+ Prefix to be automatically strip from realm. As an alternative to SRV
+ records (not all SIP clients support SRV lookup), a subdomain of the
+ master domain can be defined for SIP purposes (like sip.mydomain.net
+ pointing to same IP address as the SRV record for mydomain.net). By
+ ignoring the realm_prefix "sip.", at authentication, sip.mydomain.net
+ will be equivalent to mydomain.net .
+
+ Default value is empty string.
+
+ Example 14. realm_prefix parameter example
+modparam("auth", "realm_prefix", "sip.")
+
1.4. Functions
1.4.1. consume_credentials()
@@ -508,7 +523,7 @@ modparam("auth", "force_stateless_reply", 1)
little bit shorter. The function must be called after www_authorize,
proxy_authorize, www_authenticate or proxy_authenticate.
- Example 14. consume_credentials example
+ Example 15. consume_credentials example
...
if (www_authenticate("realm", "subscriber)) {
consume_credentials();
@@ -544,7 +559,7 @@ if (www_authenticate("realm", "subscriber)) {
This function can be used from REQUEST_ROUTE.
- Example 15. www_challenge usage
+ Example 16. www_challenge usage
...
if (!www_authenticate("$td", "subscriber")) {
www_challenge("$td", "1");
@@ -566,7 +581,7 @@ if (!www_authenticate("$td", "subscriber")) {
This function can be used from REQUEST_ROUTE.
- Example 16. proxy_challenge usage
+ Example 17. proxy_challenge usage
...
if (!proxy_authenticate("$fd", "subscriber")) {
proxy_challenge("$fd", "1");
@@ -585,7 +600,7 @@ if (!proxy_authenticate("$fd", "subscriber")) {
This function can be used from REQUEST_ROUTE.
- Example 17. proxy_challenge usage
+ Example 18. proxy_challenge usage
...
if (!auth_check("$fd", "subscriber", "1")) {
auth_challenge("$fd", "1");
@@ -636,7 +651,7 @@ if (!auth_check("$fd", "subscriber", "1")) {
This function can be used from REQUEST_ROUTE.
- Example 18. pv_www_authenticate usage
+ Example 19. pv_www_authenticate usage
...
if (!pv_www_authenticate("$td", "123abc", "0")) {
www_challenge("$td", "1");
@@ -658,7 +673,7 @@ if (!pv_www_authenticate("$td", "123abc", "0")) {
This function can be used from REQUEST_ROUTE.
- Example 19. pv_proxy_authenticate usage
+ Example 20. pv_proxy_authenticate usage
...
$avp(password)="xyz";
if (!pv_proxy_authenticate("$fd", "$avp(password)", "0")) {
diff --git a/modules/auth/doc/params.xml b/modules/auth/doc/params.xml
index 4e1dbbf..6494a4e 100644
--- a/modules/auth/doc/params.xml
+++ b/modules/auth/doc/params.xml
@@ -636,4 +636,25 @@ modparam("auth", "force_stateless_reply", 1)
</programlisting>
</example>
</section>
+ <section id="realm_prefix">
+ <title><varname>realm_prefix</varname> (string)</title>
+ <para>
+ Prefix to be automatically strip from realm. As an alternative to
+ SRV records (not all SIP clients support SRV lookup), a subdomain
+ of the master domain can be defined for SIP purposes (like
+ sip.mydomain.net pointing to same IP address as the SRV
+ record for mydomain.net). By ignoring the realm_prefix
+ <quote>sip.</quote>, at authentication, sip.mydomain.net will be
+ equivalent to mydomain.net .
+ </para>
+ <para>
+ Default value is empty string.
+ </para>
+ <example>
+ <title>realm_prefix parameter example</title>
+ <programlisting format="linespecific">
+modparam("auth", "realm_prefix", "sip.")
+</programlisting>
+ </example>
+ </section>
</section>
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=17098e4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Jan 3 18:02:39 2012 +0100
pua: is_dialog() returns 1 if there is a temporary dialog
- reported by Laura Testi
(cherry picked from commit 5f1e2caac5e6d68629a1a0956861bf7da6e05e31)
Conflicts:
modules_k/pua/pua_db.c
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a84f93d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Dec 29 16:22:28 2011 +0100
pua: check if totag len >0 before comparing it
- more on proper free of dlg_t structure
- patch by Laura Testi
(cherry picked from commit e1128c45dacf5b622c18f1cb8db0c45d8e6c9600)
Conflicts:
modules_k/pua/pua.c
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=85b15c8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Dec 23 13:16:46 2011 +0100
pua(k): use dedicated function to free tm dlg
(cherry picked from commit 464897bd3d4713e7a30c4e505449942e4251b328)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=37f3c85…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Dec 29 10:10:26 2011 +0100
mediaproxy: handle DLGCB_CONFIRMED event
- ACKs may have SDP
- patch by Jasmin Schnatterbeck (FS195)
(cherry picked from commit e5ae5137ce6fef73f366b725f16c84dc15721141)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2c22e1d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Dec 29 09:40:07 2011 +0100
pua_dialogingo: handle DLGCB_CONFIRMED_NA
- patch by Tomek Kotecki (FS#187), Jasmin Schnatterbeck (FS#195)
(cherry picked from commit 66d204b37b48127ac25632811e189b3af3b4fb14)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e4a2a0f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Dec 23 12:48:42 2011 +0100
pua: fix commit conflick by cherry-pick of 1b3cfa6
- free rr in dlg_t structure
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dd7b6af…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Dec 23 09:34:00 2011 +0100
tm: rest the pointer of hash table after free to avoid double free on false start
(cherry picked from commit 7728464362af67eff4dc105f16a1d42c72407cca)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3b4aa07…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Dec 22 14:06:08 2011 +0100
core: log message about slow timer printed now as warning
(cherry picked from commit 566c30dd38f7e29903810472c5e1e9cde41297c7)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4233f6d…
Author: Marius Bucur <marius(a)marius-bucur.ro>
Date: Thu Dec 22 11:47:41 2011 +0200
Removed the constraint in siptrace to have the tm and sl modules loaded beforehand.
The explicitly module specifies these dependencies as being optional.
(cherry picked from commit 68d282e2898db7b00de473a943af900f6659ce54)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=69c219d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Dec 20 22:34:26 2011 +0100
core/tcp: define option TCP_CLONE_RCVBUF to turn off/on tcp rcv buffer cloning
- cloning is on by default, to be safe for topoh and msg_apply_changes()
(cherry picked from commit a510d17d7005fa47d4f2a672b4ceb94fbda9c9ba)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ddcee85…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Tue Nov 22 12:55:39 2011 +0100
tcp: fix for ENOTCONN on newer FreeBSDs
Newer FreeBSDs return ENOTCONN instead of EAGAIN/EWOULDBLOCK when
trying to send on a non-blocking socket which is not yet fully
connected (the connect is still pending).
Reported-by: Dmitry Petrakoff dimon dprs-consulting com
(cherry picked from commit 3d4a59421a284afbf8bdf8e87357f07d9cd554e0)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=74607f3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sat Dec 17 21:32:22 2011 +0100
tls: use pkg-config to get cflags and libs for compilation
(cherry picked from commit 62b824b10b6ff9a18e336ff20c55d2d6ea6cba3c)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1fca550…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Dec 16 13:17:22 2011 +0100
lib/binrpc: fixed compile warnings
- reported by Juha Heinanen
(cherry picked from commit 304fe28c1f299db8a36fe6953da3c3b9afa24c12)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c32b663…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Dec 13 13:00:50 2011 +0100
tls: do TLS pre-init operations at the time of loading module
- makes sure that it sets the memory managing functions and the locks
before other modules may start using libssl
- reported by Øyvind Kolbu, FS#183
(cherry picked from commit 517d38ed02586bc9fc88ea0d3ceb8b81f510ade5)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=249436f…
Author: Jason Penton <jason.penton(a)gmail.com>
Date: Wed Dec 7 14:32:45 2011 +0200
xmlrpc: Removed define for Solaris compilations
- This define breaks on Solaris and is not required
(cherry picked from commit 3552f22bbe89124eedca268fcd16bc9097fbb0b1)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=98da664…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Nov 30 15:19:35 2011 +0100
parser: remove old URI parser and structure
(cherry picked from commit f65d060bb471070dca743905092afb60e5119bb6)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e56b64d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Nov 30 15:17:46 2011 +0100
lib/srdb1: helper functions to handle easier fetch capability
(cherry picked from commit 09c9abb0f7907132d9afee4580f0475a2e46cadc)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=35fa51c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Nov 29 11:58:45 2011 +0100
tm: proper increment of lightweight parsing for call-id
- a pretty much harmless fix to increment with 3 instead of 7 when
parsing Call-ID name in lightweight parser
- reported and patch by Walter Doekes, FS#168
(cherry picked from commit 21346f47f7712d08369e45e970a6ffec3eab0a3c)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9d3794d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Nov 29 11:36:36 2011 +0100
sanity: allow doing the checks in reply routes
- use wrapper function for sending replies, to skip doing it for SIP
replies
- reported by Bayan Towfiq, FS#177
(cherry picked from commit 54c99da0de46c59cd85363dca1eed324dbb6b495)