[Asterisk-cvs] asterisk/channels chan_sip.c,1.292,1.293
markster at lists.digium.com
markster at lists.digium.com
Sat Feb 7 01:04:49 CST 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv15856/channels
Modified Files:
chan_sip.c
Log Message:
Insert blank after REFER (bug #997)
Correct path to VM sample (bug #994)
Make manager interface non-blocking (bug #861)
Don't bork on empty from in SIP (bug #887)
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.292
retrieving revision 1.293
diff -u -d -r1.292 -r1.293
--- chan_sip.c 2 Feb 2004 23:51:25 -0000 1.292
+++ chan_sip.c 7 Feb 2004 07:13:33 -0000 1.293
@@ -3305,6 +3305,7 @@
add_header(&req, "Refer-To", referto);
if (strlen(p->our_contact))
add_header(&req, "Referred-By", p->our_contact);
+ add_blank_header(&req);
return send_request(p, &req, 1, p->ocseq);
}
@@ -3888,8 +3889,10 @@
if ((a = strchr(c, ';'))) {
*a = '\0';
}
- if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
- *a = '\0';
+ if (fr) {
+ if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
+ *a = '\0';
+ }
}
if (sipdebug)
ast_verbose("Looking for %s in %s\n", c, p->context);
More information about the svn-commits
mailing list