[Asterisk-Users] sip channel driver causes asterisk to crash
when talking to quintum A800
Stephen Davies
steve at daviesfam.org
Sun Jun 8 06:06:51 MST 2003
On Sat, 7 Jun 2003, Daryl Jones wrote:
> I experienced the exact same symptoms but didn't have the confidence
> to post my experience to this list because of my lack of experience with
> Asterisk. I restored the June 1 version from CVS and the problem went away.
> There's definitely a problem in code since June 1.
Well,
Here's a simple patch to fix.
Steve
-------------- next part --------------
Index: channels/chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.119
diff -u -r1.119 chan_sip.c
--- channels/chan_sip.c 6 Jun 2003 00:06:52 -0000 1.119
+++ channels/chan_sip.c 8 Jun 2003 13:21:38 -0000
@@ -3322,11 +3327,12 @@
}
return 0;
}
+
static char *get_calleridname(char *input,char *output)
{
char *end = strchr(input,'<');
char *tmp = strchr(input,'\"');
- if (!end) return NULL;
+ if (!end || (end==input)) return NULL;
/* move away from "<" */
end--;
/* we found "name" */
More information about the asterisk-users
mailing list