Revision: 5967
http://openser.svn.sourceforge.net/openser/?rev=5967&view=rev
Author: henningw
Date: 2010-01-15 18:55:26 +0000 (Fri, 15 Jan 2010)
Log Message:
-----------
* document return code -6: NONCE_REUSED. perhaps we might also just use the
existing code -3: STALE_NONCE instead..
Modified Paths:
--------------
branches/1.5/modules/auth_db/README
branches/1.5/modules/auth_db/doc/auth_db_admin.xml
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Module: sip-router
Branch: master
Commit: f565de5a65a8cb5f001d912d3cdf89a92c1e5bcf
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f565de5…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Fri Jan 15 18:55:11 2010 +0100
registrar(k): port r5966, small doc clarification for default_expires param
---
modules_k/registrar/README | 85 ++++++++++++++------------
modules_k/registrar/doc/registrar_admin.xml | 4 +-
2 files changed, 49 insertions(+), 40 deletions(-)
diff --git a/modules_k/registrar/README b/modules_k/registrar/README
index 72c4e63..9a2471c 100644
--- a/modules_k/registrar/README
+++ b/modules_k/registrar/README
@@ -248,7 +248,8 @@ Chapter 1. Admin Guide
If the processed message contains neither Expires HFs nor expires
contact parameters, this value will be used for newly created usrloc
records. The parameter contains number of second to expire (for example
- use 3600 for one hour).
+ use 3600 for one hour). If it is set to a lower value than the
+ "min_expires" parameter then it will be ignored.
Default value is 3600.
@@ -537,7 +538,7 @@ modparam("registrar", "reg_callid_avp", "$avp(s:avp)")
4.7. reg_fetch_contacts(domain, uri, profile)
4.8. reg_free_contacts(profile)
-4.1. save(domain)
+4.1. save(domain)
The function processes a REGISTER message. It can add, remove or modify
usrloc records depending on Contact and Expires HFs in the REGISTER
@@ -564,7 +565,7 @@ modparam("registrar", "reg_callid_avp", "$avp(s:avp)")
save("location");
...
-4.2. save(domain,flags)
+4.2. save(domain,flags)
Same as save() but it accepts a set of flags for controlling its
behaviour.
@@ -591,7 +592,7 @@ save("location");
save("location","0x01");
...
-4.3. lookup(domain)
+4.3. lookup(domain)
The functions extracts username from Request-URI and tries to find all
contacts for the username in usrloc. If there are no such contacts, -1
@@ -629,7 +630,7 @@ switch ($retcode) {
};
...
-4.4. registered(domain)
+4.4. registered(domain)
The function returns true if the AOR in the Request-URI is registered,
false otherwise. The function does not modify the message being
@@ -649,7 +650,7 @@ if (registered("location")) {
};
...
-4.5. add_sock_hdr(hdr_name)
+4.5. add_sock_hdr(hdr_name)
Adds to the current REGISTER request a new header with "hdr_name" which
contains the description of the received socket (proto:ip:port)
@@ -666,7 +667,7 @@ if (registered("location")) {
add_sock_hdr("Sock-Info");
...
-4.6. unregister(domain, uri)
+4.6. unregister(domain, uri)
The function remove all the contact associated to 'uri'.
@@ -685,7 +686,7 @@ unregister("location", "$ru");
unregister("location", "sip:user@kamailio.org");
...
-4.7. reg_fetch_contacts(domain, uri, profile)
+4.7. reg_fetch_contacts(domain, uri, profile)
The function fetches the contacts for 'uri' from table 'domain' to
pseudo-variable $ulc(profile).
@@ -707,7 +708,7 @@ reg_fetch_contacts("location", "$ru", "callee");
reg_fetch_contacts("location", "sip:user@kamailio.org", "caller");
...
-4.8. reg_free_contacts(profile)
+4.8. reg_free_contacts(profile)
The function frees the contacts from pseudo-variable $ulc(profile).
Should be called to release the content of a profile. Anyhow, fetching
@@ -830,54 +831,60 @@ Chapter 2. Frequently Asked Questions
2.1.
- What happend with the old "nat_flag" module parameter?
+ What happend with the old "nat_flag" module parameter?
+
+ In was removed, as the module internally loads this value from the
+ "USRLOC" module (see the "nat_bflag" USRLOC parameter).
- In was removed, as the module internally loads this value from the
- "USRLOC" module (see the "nat_bflag" USRLOC parameter).
2.2.
- What happend with the old "use_domain" module parameter?
+ What happend with the old "use_domain" module parameter?
+
+ In was removed, as the module internally loads this option from the
+ "USRLOC" module. This was done in order to simplify the configuration.
- In was removed, as the module internally loads this option from the
- "USRLOC" module. This was done in order to simplify the configuration.
2.3.
- What happend with the old "save_noreply" and "save_memory" functions?
+ What happend with the old "save_noreply" and "save_memory" functions?
+
+ There functions were merged into the new "save(domain,flags)"
+ functions. If a reply should be sent or if the DB should be updated
+ also is controlled via the flags.
- There functions were merged into the new "save(domain,flags)"
- functions. If a reply should be sent or if the DB should be updated
- also is controlled via the flags.
2.4.
- Where can I find more about Kamailio?
+ Where can I find more about Kamailio?
+
+ Take a look at http://www.kamailio.org/.
- Take a look at http://www.kamailio.org/.
2.5.
- Where can I post a question about this module?
+ Where can I post a question about this module?
+
+ First at all check if your question was already answered on one of our
+ mailing lists:
+ * User Mailing List -
+ http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
+ * Developer Mailing List -
+ http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
- First at all check if your question was already answered on one of our
- mailing lists:
- * User Mailing List -
- http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
- * Developer Mailing List -
- http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
+ E-mails regarding any stable Kamailio release should be sent to
+ <users(a)lists.kamailio.org> and e-mails regarding development versions
+ should be sent to <devel(a)lists.kamailio.org>.
- E-mails regarding any stable Kamailio release should be sent to
- <users(a)lists.kamailio.org> and e-mails regarding development versions
- should be sent to <devel(a)lists.kamailio.org>.
+ If you want to keep the mail private, send it to
+ <team(a)lists.kamailio.org>.
- If you want to keep the mail private, send it to
- <team(a)lists.kamailio.org>.
2.6.
- How can I report a bug?
+ How can I report a bug?
+
+ Please follow the guidelines provided at:
+ http://sourceforge.net/tracker/?group_id=139143.
- Please follow the guidelines provided at:
- http://sourceforge.net/tracker/?group_id=139143.
2.7.
- What happened to the desc_time_order parameter?
+ What happened to the desc_time_order parameter?
- It was removed, as its functionality was mmigrate into usrloc module,
- were there is a parameter with the same name.
+ It was removed, as its functionality was mmigrate into usrloc module,
+ were there is a parameter with the same name.
diff --git a/modules_k/registrar/doc/registrar_admin.xml b/modules_k/registrar/doc/registrar_admin.xml
index db28d6a..fabf4b2 100644
--- a/modules_k/registrar/doc/registrar_admin.xml
+++ b/modules_k/registrar/doc/registrar_admin.xml
@@ -115,7 +115,9 @@
If the processed message contains neither Expires
<acronym>HFs</acronym> nor expires contact parameters, this value
will be used for newly created usrloc records. The parameter contains
- number of second to expire (for example use 3600 for one hour).
+ number of second to expire (for example use 3600 for one hour). If it
+ is set to a lower value than the <quote>min_expires</quote> parameter
+ then it will be ignored.
</para>
<para>
<emphasis>
Revision: 5966
http://openser.svn.sourceforge.net/openser/?rev=5966&view=rev
Author: henningw
Date: 2010-01-15 17:54:54 +0000 (Fri, 15 Jan 2010)
Log Message:
-----------
* small clarification in docs related to the default_expires parameter
Modified Paths:
--------------
branches/1.5/modules/registrar/README
branches/1.5/modules/registrar/doc/registrar_admin.xml
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Module: sip-router
Branch: master
Commit: ead9f3f966aa62be64d0c85df958a3ddc574f5c5
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ead9f3f…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Fri Jan 15 18:56:29 2010 +0200
Improved multihomed performance
The mhomed implementation works by calling a socket()/connect()/getsockname()/close()
to find out the interface in a multihomed system.
Because mhomed works only for UDP sockets, a major performance improvement is shown
if we use the same socket for multiple connect()s, thus completly removing the socket() call
and the close() call.
The CPU load(user+system) shown in a mhomed environment on a stateless router, with a call rate of 6000 calls/s
is 46.1% load in the case of this patched version, versus 63.54% load in the case of the original
version.
---
forward.c | 44 ++++++++++++++++++++++++++++++++++++--------
1 files changed, 36 insertions(+), 8 deletions(-)
diff --git a/forward.c b/forward.c
index b124d36..c81e95a 100644
--- a/forward.c
+++ b/forward.c
@@ -110,10 +110,14 @@
/* return a socket_info_pointer to the sending socket; as opposed to
* get_send_socket, which returns process's default socket, get_out_socket
* attempts to determine the outbound interface which will be used;
- * it creates a temporary connected socket to determine it; it will
+ * it uses a temporary connected socket to determine it; it will
* be very likely noticeably slower, but it can deal better with
* multihomed hosts
*/
+
+static int sock_inet = 0;
+static int sock_inet6 = 0;
+
struct socket_info* get_out_socket(union sockaddr_union* to, int proto)
{
int temp_sock;
@@ -126,33 +130,57 @@ struct socket_info* get_out_socket(union sockaddr_union* to, int proto)
LOG(L_CRIT, "BUG: get_out_socket can only be called for UDP\n");
return 0;
}
-
- temp_sock=socket(to->s.sa_family, SOCK_DGRAM, 0 );
- if (temp_sock==-1) {
- LOG(L_ERR, "ERROR: get_out_socket: socket() failed: %s\n",
- strerror(errno));
+
+ switch(to->s.sa_family){
+ case AF_INET : {
+ if(sock_inet <= 0){
+ sock_inet = socket(AF_INET, SOCK_DGRAM, 0);
+ if (sock_inet==-1) {
+ LM_ERR("socket() failed: %s\n", strerror(errno));
+ return 0;
+ }
+ }
+ temp_sock = sock_inet;
+ break;
+ }
+ case AF_INET6 : {
+ if(sock_inet6 <= 0){
+ sock_inet6 = socket(AF_INET6, SOCK_DGRAM, 0);
+ if (sock_inet6==-1) {
+ LM_ERR("socket() failed: %s\n", strerror(errno));
+ return 0;
+ }
+ }
+ temp_sock = sock_inet6;
+ break;
+ }
+ default: {
+ LM_ERR("Unknow protocol family \n");
return 0;
}
+ }
if (connect(temp_sock, &to->s, sockaddru_len(*to))==-1) {
LOG(L_ERR, "ERROR: get_out_socket: connect failed: %s\n",
strerror(errno));
+ sock_inet = 0;
+ sock_inet6 = 0;
goto error;
}
len=sizeof(from);
if (getsockname(temp_sock, &from.s, &len)==-1) {
LOG(L_ERR, "ERROR: get_out_socket: getsockname failed: %s\n",
strerror(errno));
+ sock_inet = 0;
+ sock_inet6 = 0;
goto error;
}
su2ip_addr(&ip, &from);
si=find_si(&ip, 0, proto);
if (si==0) goto error;
- close(temp_sock);
DBG("DEBUG: get_out_socket: socket determined: %p\n", si );
return si;
error:
LOG(L_ERR, "ERROR: get_out_socket: no socket found\n");
- close(temp_sock);
return 0;
}
Module: sip-router
Branch: bpintea/asi_binrpc2
Commit: c5dcf62a1d51962713f61e29e0027bb1f95cb2bc
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c5dcf62…
Author: bpi <bpi(a)machine.office.iptego.net>
Committer: bpi <bpi(a)machine.office.iptego.net>
Date: Thu Jan 14 22:31:30 2010 +0100
top level define for SERLIBPATH so that it doesn't have to be defined in every
module using a lib
---
Makefile.modules | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Makefile.modules b/Makefile.modules
index f1f172b..7d222f8 100644
--- a/Makefile.modules
+++ b/Makefile.modules
@@ -58,6 +58,7 @@ MOD_NAME=$(NAME:.so=)
# allow placing modules in separate directory apart from ser core
COREPATH ?=../..
+SERLIBPATH ?= $(COREPATH)/lib
ALLDEP=Makefile $(COREPATH)/Makefile.sources $(COREPATH)/Makefile.rules \
$(COREPATH)/Makefile.modules $(COREPATH)/Makefile.dirs $(COREPATH)/config.mak
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=99b02d1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 20:01:01 2010 +0100
usrloc(k): rpc version for ul.dump
- ul.dump is rpc alternative for MI ul_dump
- better alternative to avoid pkg frametation in MI process
(cherry picked from commit 3cc229a3c7ba36475c3bd67e4849297f9548bf26)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=87958e7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 19:02:42 2010 +0100
core: init the len of sock_str attribute
(cherry picked from commit f0d89fb89d1b588f253f048ab8fc22e0db7fff66)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5d97867…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 16:56:54 2010 +0100
ctl: added parameters to control buffer size
- new parameters to control binrpc buffers size:
- binrpc_max_body_size
- binrpc_struct_max_body_size
(cherry picked from commit acfc2142ed5ef3e61138792136eb32616502229d)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4781079…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 15:56:10 2010 +0100
htable(k): rpc commad to dump htable
- htable can get big, rpc behaves better than MI
(cherry picked from commit 5997048fdbefee51aebb8c996178ceb44120a482)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3e79f37…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 14:25:54 2010 +0100
pv(k): fixed $shv engine
- shv relies on early shm initialization
- got rid of hacks to define first in pkg and move in shm at mod_init
- fixes 3.0 specific issues reported by Andrey 'Krieger' Utkin
- closes FS#22
(cherry picked from commit b69e1c96bf65a4c4f8fa6bec28699607ea03e24d)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=69ac689…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 12:09:20 2010 +0100
sanity: print From hdr in warning message
- when parsing of the header fails
(cherry picked from commit 195cdf43e8eea385330376184f8b78b7d0322780)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=95e893d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 12:08:45 2010 +0100
nathelper(k): print bad contact uri
- help in troubleshooting bad sip clients
(cherry picked from commit a93f7ad1ce21413d0e2a00e4c8579f6bfe0a8a3f)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ec53807…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 10 12:07:34 2010 +0100
core: more verbose when error parsing hdr
- give a hint about the content parsing (max first 20 chars of attempted
string)
(cherry picked from commit 78e8075eea603a854dcf0142dda0f1dae6c69857)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9179040…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jan 8 17:16:28 2010 +0100
kamailio.cfg: updated cfg with sample PSTN gw routing
- defined within WITH_PSTN
- calls to numbers starting with + or 00 are sent to PSTN GW
- use of custome cfg parameter to define GW IP
- remove preloaded Route headers for initial requests
(cherry picked from commit a9e4d86edeee7b2f70b33c89c91e800aefe11da0)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3045508…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jan 7 11:33:37 2010 +0100
nathelper(k): fix for swap scenario
A -> RTPP -> B, offer in INVITE, answer in 200 OK (SDP in INVITE+200 OK)
A -> RTPP -> B, re-Invite on session expiry, SDP in 200 OK + ACK
The from-tag and to-tag are not swapped in the ACK with
rtpproxy_answer(). Options "sl" would do the trick also, but "s" is
deprecated soon
Patch by Walter Schober
(cherry picked from commit 839e2fee663846f68289a519c27aef433a872afa)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=57d99f4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jan 6 18:50:31 2010 +0100
presence(k): aliased MLA to SLA
- doc updated to reflect RFCs and drafts
(cherry picked from commit 1a9f379ed66dbcc05f7750ff961c0a7a6607b0db)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3f8b07c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jan 6 18:47:36 2010 +0100
core: event parsing enahced for dialog;ma
- event defined by draft-anil-sipping-bla for Multiple Line Appearances,
folloing to Shared/Bridged Line Appearances (SLA, BLA)
- draft is defunct but still some implementations out there
(cherry picked from commit 1e99795d2ddebe8a6794c3b407f96d30378b872f)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0f88678…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jan 6 15:39:46 2010 +0100
tm: documented t_relay_to() function
(cherry picked from commit d8af3a4b17bf1ca71df1d977d986f407ff34cfc2)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b44e9de…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jan 6 14:36:55 2010 +0100
tm: added t_relay_to(proxy, flags)
- parameters compatible with t_relay() in K old version
- proxy value can be: [proto:]host[:port]
- flgas can be 0x01, 0x04 or 0x05, 0x02 flag not supported
- all or any of the parameters can be omitted
(cherry picked from commit fc59de27f87772df40a4408485a34344acbec950)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6481b24…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jan 6 12:32:01 2010 +0100
tm: documented t_replicate() functions
(cherry picked from commit a511ceccfb593736d44b7701fd07f3f9b5c3a104)
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0a0a95c…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Jan 15 14:26:22 2010 +0100
tm: t_replicate() can take avps & select as params
t_replicate(uri) can now take ser-style avps ($foo) and selects (@ruri)
as params (along PVs and normal strings).
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f4cfee8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jan 6 11:57:24 2010 +0100
tm: added t_replicate(uri)
- the parameter has to be a valid SIP uri
- it can be given via a script variable
- K compatibility mode
- reported by Santiago Gimeno
(cherry picked from commit 64e19a6a44a21adf6f743420a26a48cc3acd099a)