[Asterisk-Users] Caller-ID name delivered in double-quotes
Steve Haehnichen
s-asterisk at trix.com
Sun Sep 14 02:23:27 MST 2003
-=> On Sat, 13 Sep 2003 22:32:57 -0700, David Sharp <djs at secure.net> 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:211 at 192.168.42.27>;tag=as2edda5ab
instead of
From: "My Name" <sip:211 at 192.168.42.27>;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);
>
More information about the asterisk-users
mailing list