-=> On Sat, 13 Sep 2003 22:32:57 -0700, David Sharp <[EMAIL PROTECTED]> said:
> they bothered me too so i made a little mod to remove them. here is
> a patch if you are interested.
Ohh, thanks! Excellent idea.
Attached is an updated patch that fits the tip CVS version line numbers.
No more double-quotes. Sweet.
So.. uh.. is this kosher with SIP spec? The headers now look like:
From: My Name <sip:[EMAIL PROTECTED]>;tag=as2edda5ab
instead of
From: "My Name" <sip:[EMAIL PROTECTED]>;tag=as2edda5ab
S'alright?
-Steve
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.178
diff -r1.178 chan_sip.c
2173a2174,2183
> /* Strip any double-quotes from the passed string */
> void strip_quotes (char *src)
> {
> char *dest;
> for (dest = src; *src; src++)
> if (*src != '\"')
> *dest++ = *src;
> *dest = 0;
> }
>
2686a2697,2701
>
> /* Remove the "double-quotes" from the From: address so they don't
> * show up on Caller-ID */
> strip_quotes (from);
>
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users