-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
I tried to replace Displayname in From field with uac_replace_from("$fn", "sip:1234@exaple.com");
What I found ist, that display name seems to be hold with quotes in $fn instead without qoutes. So after running uac_replace_from I got double quotes in front of and behind display name like this:
befor uac_replace-from: From: "abc" sip:1234@example.com;tag ...
after uac_replace_from: From: ""abc"" sip:1234@example.com";tag ...
Is this a feature or a Bug?
regards Helmut
Hi Helmut,
uac_replace_from() expects the display name without quotes - only the useful string. On the other hand, the $fn returns the display name with its quotes (if present).
I would not call it a bug, but rather an unfit :) - you can use an intermediary variable to strip the quotes from $fn....
Anyhow, it doesn't make sense to replace the display with its own value...if you do not want to change the display name, just use: uac_replace_from("", "sip:1234@exaple.com");
Refer to the module doc for more details.
Regards, Bogdan
Helmut Kuper wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
I tried to replace Displayname in From field with uac_replace_from("$fn", "sip:1234@exaple.com");
What I found ist, that display name seems to be hold with quotes in $fn instead without qoutes. So after running uac_replace_from I got double quotes in front of and behind display name like this:
befor uac_replace-from: From: "abc" sip:1234@example.com;tag ...
after uac_replace_from: From: ""abc"" sip:1234@example.com";tag ...
Is this a feature or a Bug?
regards Helmut -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHu/6V4tZeNddg3dwRAlO5AJ4pSYqO0/fw/DPUGtT2oHMebXw/NQCfSPfD lpUpAmoCuLE5mlEMocBzO5o= =Y3ek -----END PGP SIGNATURE-----
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users