Module: sip-router
Branch: master
Commit: 4a0b559062b70c1c089c1ea9908eaae60679ad04
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4a0b559…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Nov 12 12:22:20 2010 +0100
sanity: note about different behavior based on autodrop
---
modules/sanity/README | 15 +++++++++------
modules/sanity/doc/functions.xml | 12 +++++++-----
2 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/modules/sanity/README b/modules/sanity/README
index a3e4ce1..0442064 100644
--- a/modules/sanity/README
+++ b/modules/sanity/README
@@ -20,7 +20,7 @@ Nils Ohlmeier
1.4. Functions
- 1.4.1. sanity_check()
+ 1.4.1. sanity_check([msg_checks [, uri_checks]])
1.1. Overview
@@ -136,12 +136,15 @@ modparam("sanity", "autodrop", 1)
Revision History
Revision $Revision$ $Date$
-1.4.1. sanity_check()
+1.4.1. sanity_check([msg_checks [, uri_checks]])
- This function makes a row of sanity checks on the given request. The
- function returns false (-1) if one of the checks failed. If one of the
- checks fails the module sends a precise error reply via sl_send_reply.
- Thus there is no need to reply with a generic error message.
+ This function makes a row of sanity checks over the given SIP request.
+ The behavior of the function is also controled by 'autodrop' parameter.
+ If autodrop=0, the function returns false (-1) if one of the checks
+ failed. When autodrop=1, the function stops the execution of
+ configuration file. In both cases, ff one of the checks fails the
+ module sends a precise error reply via SL send_reply(). Thus there is
+ no need to reply with a generic error message.
Example 5. sanity_check usage
...
diff --git a/modules/sanity/doc/functions.xml b/modules/sanity/doc/functions.xml
index ea9cf1d..f3cfa85 100644
--- a/modules/sanity/doc/functions.xml
+++ b/modules/sanity/doc/functions.xml
@@ -22,13 +22,15 @@
<section id="sanity_check">
<title>
- <function>sanity_check()</function>
+ <function>sanity_check([msg_checks [, uri_checks]])</function>
</title>
<para>
- This function makes a row of sanity checks on the given request.
- The function returns false (-1) if one of the checks failed. If one
- of the checks fails the module sends a precise error reply via
- sl_send_reply. Thus there is no need to reply with a generic
+ This function makes a row of sanity checks over the given SIP request. The
+ behavior of the function is also controled by 'autodrop' parameter.
+ If autodrop=0, the function returns false (-1) if one of the checks failed.
+ When autodrop=1, the function stops the execution of configuration file.
+ In both cases, ff one of the checks fails the module sends a precise error
+ reply via SL send_reply(). Thus there is no need to reply with a generic
error message.
</para>
<example>
Greetings,
This is a call for presentations for the open source telephony devroom at FOSDEM 2011 - http://www.fosdem.org/.
We will be holding a day full of presentations on development topics in the area of open source telephony on Sunday, February 6th. The schedule allows for presentations from 9:00 to 17:00. The room we have available will have a projector, wifi, and 59 seats.
Please submit all proposals no later than 2010-12-10. Notification of accepted speakers will be provided by 2010-12-17. We will then work to have a schedule finalized by 2011-01-07. Talks should be submitted by fulling out the following form:
http://goo.gl/9SWlz
Please direct discussion about this devroom to the telephony-devroom mailing list hosted on http://lists.fosdem.org/. If you would like to contact the devroom organizer directly, please contact Russell Bryant <russell(a)digium.com>.
Feel free to forward this along to any people or mailing lists that you think would be interested in this event.
Thank you!
Bryan M. Johns
Digium, Inc. | Community Director
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
direct: +1 256-428-6007
Check us out at : www.asterisk.org or www.digium.com
Greetings,
This is a call for presentations for the open source telephony devroom at FOSDEM 2011 - http://www.fosdem.org/.
We will be holding a day full of presentations on development topics in the area of open source telephony on Sunday, February 6th. The schedule allows for presentations from 9:00 to 17:00. The room we have available will have a projector, wifi, and 59 seats.
Please submit all proposals no later than 2010-12-10. Notification of accepted speakers will be provided by 2010-12-17. We will then work to have a schedule finalized by 2011-01-07. Talks should be submitted by fulling out the following form:
http://goo.gl/9SWlz
Please direct discussion about this devroom to the telephony-devroom mailing list hosted on http://lists.fosdem.org/. If you would like to contact the devroom organizer directly, please contact Russell Bryant <russell(a)digium.com>.
Feel free to forward this along to any people or mailing lists that you think would be interested in this event.
Thank you!
Bryan M. Johns
Digium, Inc. | Community Director
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
direct: +1 256-428-6007
Check us out at : www.asterisk.org or www.digium.com
Module: sip-router
Branch: master
Commit: 6cfee82666b78400d5ff15c49aac1441cfbbaaf6
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6cfee82…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Thu Nov 4 17:14:56 2010 +0200
core:forward.c Fixed small error caused by unlikely usage.
---
forward.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/forward.c b/forward.c
index 3d7aed1..175f54b 100644
--- a/forward.c
+++ b/forward.c
@@ -175,7 +175,7 @@ retry:
if( !mhomed_sock_cache_disabled ){
/* some Linux kernel versions (all?) along with other UNIXes don't re-bound the sock if already bound */
/* to un-bound a socket set sin_family to AF_UNSPEC and zero out the rest*/
- if (unlikely(connect(*temp_sock, &uncon.s, sockaddru_len(uncon))) < 0)
+ if (unlikely(connect(*temp_sock, &uncon.s, sockaddru_len(uncon)) < 0))
mhomed_sock_cache_disabled = 1;
}
Module: sip-router
Branch: master
Commit: ef0dd4e3f0837753ac18d58606078d8595f24dc6
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ef0dd4e…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Thu Nov 4 16:11:41 2010 +0200
core/forward.c Fixed mhomed behavior.
As connect() dones't re-bound a UDP sock if the socket is already
bound to an interface, first unbind the socket by connecting to AF_UNSPEC
---
forward.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/forward.c b/forward.c
index 25bc11d..3d7aed1 100644
--- a/forward.c
+++ b/forward.c
@@ -131,6 +131,10 @@ struct socket_info* get_out_socket(union sockaddr_union* to, int proto)
union sockaddr_union from;
struct socket_info* si;
struct ip_addr ip;
+ union sockaddr_union uncon;
+
+ memset(&uncon, 0, sizeof(union sockaddr_union));
+ uncon.sin.sin_family = AF_UNSPEC;
if (unlikely(proto!=PROTO_UDP)) {
LOG(L_CRIT, "BUG: get_out_socket can only be called for UDP\n");
@@ -167,6 +171,14 @@ retry:
return 0;
}
}
+
+ if( !mhomed_sock_cache_disabled ){
+ /* some Linux kernel versions (all?) along with other UNIXes don't re-bound the sock if already bound */
+ /* to un-bound a socket set sin_family to AF_UNSPEC and zero out the rest*/
+ if (unlikely(connect(*temp_sock, &uncon.s, sockaddru_len(uncon))) < 0)
+ mhomed_sock_cache_disabled = 1;
+ }
+
if (unlikely(connect(*temp_sock, &to->s, sockaddru_len(*to))==-1)) {
if (unlikely(errno==EISCONN && !mhomed_sock_cache_disabled)){
/* no multiple connects support on the same socket */
Revision: 6050
http://openser.svn.sourceforge.net/openser/?rev=6050&view=rev
Author: mariuszbihlei
Date: 2010-11-04 13:07:25 +0000 (Thu, 04 Nov 2010)
Log Message:
-----------
core/forward.c Some Linux kernels, (tested on 2.6.26 and 2.6.32) don't re-bound a UDP sock if the socket is already
bound to an interface when doing connect().
Modified Paths:
--------------
branches/1.5/forward.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 6049
http://openser.svn.sourceforge.net/openser/?rev=6049&view=rev
Author: timoreimann
Date: 2010-11-02 18:21:32 +0000 (Tue, 02 Nov 2010)
Log Message:
-----------
modules/dialog: Enhance unref_dlg_from_cb() robustness.
- Check parameter for NULL pointer.
- Call unreference_dlg(), thus being more wrapper-ish.
- Fix indention.
Backport from git commit 75fc49f74d13774f1ecc0cdd8f0adfe168915b4f.
Modified Paths:
--------------
branches/1.5/modules/dialog/dlg_handlers.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.