[SR-Users] Removing display-name with uac_replace_from

Andreas Granig agranig at sipwise.com
Wed Jul 4 15:14:54 CEST 2012


Hi,

in kamailio 3.3, doing

  uac_replace_from("", "$var(myuri)");

doesn't remove the old Display part anymore (although the documentation
still says it should), the debug log is:

DEBUG: uac [uac.c:499]: dsp=(nil) (len=0) , uri=0x7fff87f6b840 (len=28)
DEBUG: uac [replace.c:324]: uri to replace [sip:a at example.org]
DEBUG: uac [replace.c:325]: replacement uri is [sip:b at example.org]
DEBUG: uac [replace.c:383]: encode
is=<UEtlSyomCD8kIi8/SnlZMzNyS29QS2VLanBKeg--> len=40

So no hint that the old display is being removed. When doing

  uac_replace_from("foo", "$var(myuri)");

then there's an additional line like this:

DEBUG: uac [replace.c:284]: removing display ["olddisplay"]

which is missing when I put an empty string in the first parameter.

Andreas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120704/a4d152a6/attachment.pgp>


More information about the sr-users mailing list