[SR-Users] Remote Party ID Header

Alex Balashov abalashov at evaristesys.com
Thu Jun 23 23:55:34 CEST 2011


On 06/23/2011 05:52 PM, dotnetdub wrote:

> ERROR: pv [pv_trans.c:522]: invalid uri [<sip:1234567 at domain.ie
> <mailto:sip%3A1234567 at domain.ie>;privacy=full;screen=no>]
> /sbin/kamailio[27389]: ERROR: <core> [lvalue.c:351]: non existing
> right pvar
> /sbin/kamailio[27389]: ERROR: <core> [lvalue.c:411]: assignment failed
> at pos: (110,13-110,54)
> /sbin/kamailio[27389]: INFO: <script>: Remote Party ID privacy value:

Oh, I guess uri.params operates on a bare URI, rather than parsing it 
out of a larger header.  That's kind of obvious, in retrospect, but 
for some reason wasn't intuitive to me.  Anyway, try it on just the URI:

    $var(x) = $(re{uri.param,privacy});

Second, make sure you're printing the value of $var(x).

-- 
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/



More information about the sr-users mailing list