Hello, When I do : xlog("display name = $fn");
It show : display name = "toto titi"
why it add quote ? how can I disable theses quotes ?
thank
I would check that the quotes are not already part of the display name ... Generally, when the display name contains spaces, UAs do add quotes.
On Mon, 2007-05-07 at 12:16 +0200, Bodin Bruno wrote:
Hello, When I do : xlog("display name = $fn");
It show : display name = "toto titi"
why it add quote ? how can I disable theses quotes ?
thank
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Jérôme Martin | LongPhone Responsable Architecture Réseau 122, rue la Boetie | 75008 Paris Tel : +33 (0)1 56 26 28 44 Fax : +33 (0)1 56 26 28 45 Mail : jmartin@longphone.fr Web : www.longphone.com
Just to add a bit of information :
Normally, only reserved characters (semicolons, periods, double quotes, etc.) MUST lead to quotation/escaping. However, for the sake of simplicity, most UAs do quote the whole display names. Note that the space I talked about in my previous email is a mistake ; you don't NEED to quote those. If you want more information about display names, take a look at rfc2822, and look for examples (search for the "Joe Q. Public", "quote" and "John Doe" strings in the text, http://www.faqs.org/rfcs/rfc2822.html).
Cheers, Jerome.
On Mon, 2007-05-07 at 13:04 +0200, Jerome Martin wrote:
I would check that the quotes are not already part of the display name ... Generally, when the display name contains spaces, UAs do add quotes.
On Mon, 2007-05-07 at 12:16 +0200, Bodin Bruno wrote:
Hello, When I do : xlog("display name = $fn");
It show : display name = "toto titi"
why it add quote ? how can I disable theses quotes ?
thank
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Jérôme Martin | LongPhone Responsable Architecture Réseau 122, rue la Boetie | 75008 Paris Tel : +33 (0)1 56 26 28 44 Fax : +33 (0)1 56 26 28 45 Mail : jmartin@longphone.fr Web : www.longphone.com
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Jérôme Martin | LongPhone Responsable Architecture Réseau 122, rue la Boetie | 75008 Paris Tel : +33 (0)1 56 26 28 44 Fax : +33 (0)1 56 26 28 45 Mail : jmartin@longphone.fr Web : www.longphone.com
Hi, If this quotes aren't part of display name, OpenSER should removed these, no ? What's the better way to fix it ?
thank, Bruno.
Bodin Bruno wrote:
Hi, If this quotes aren't part of display name, OpenSER should removed these, no ?
According to RFC 3261 the quotes belong to display-name. You can use a regular expression to remove them. http://www.openser.org/docs/modules/1.2.x/avpops.html#AEN498
regards klaus
What's the better way to fix it ?
thank, Bruno.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Thank, I do this and it seam to work :
$avp(i:66) = $fn; avp_subst("$avp(i:66)/$avp(i:66)", "/^"(.*)"$/\1/");
thank again bruno.
Hello,
in 1.2 you have alternative via transformations: http://openser.org/dokuwiki/doku.php/transformations:1.2.x#s.substr_offset_l...
$var(len) = $(fn{s.len})-2; $avp(i:66) = $(fn{s.substr,1,$var(len)});
Cheers, Daniel
On 05/07/07 17:50, Bodin Bruno wrote:
Thank, I do this and it seam to work :
$avp(i:66) = $fn; avp_subst("$avp(i:66)/$avp(i:66)", "/^"(.*)"$/\1/");
thank again bruno.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users