[SR-Users] Extract param from RPID header

Grant Bagdasarian gb at cm.nl
Mon Sep 19 14:29:31 CEST 2016


That worked!

Thank you!

Why do you need to apply the tobody.params first?

From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Carsten Bock
Sent: maandag 19 september 2016 14:25
To: Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] Extract param from RPID header

Hi,

you should try the following:
$(hdr(Remote-Party-ID){tobody.params}{param.value,privacy})

Thanks,
Carsten





2016-09-19 14:03 GMT+02:00 Grant Bagdasarian <gb at cm.nl<mailto:gb at cm.nl>>:
Hello,

I’m trying to extract the privacy param from the RPID header, but without success.
Could someone point me in the right direction?

Remote-Party-ID: "Cullen Jennings" <sip:+3123456789 at 1.1.1.1<mailto:sip%3A%2B3123456789 at 1.1.1.1>>;party=calling;privacy=off;screen=no.

I’ve tried the following ways:

1)      TEXTOPSX: $var(rpid_privacy_value) = @hf_value.remote_party_id.privacy;

2)      Param Transformations:

a.       $(hdr(Remote-Party-ID){param.value,privacy})

b.       $(re{param.value,privacy})

c.       4re{param.value,privacy}

I can’t seem to extract the value of privacy from the RPID header.

Regards,

Grant

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users at lists.sip-router.org<mailto:sr-users at lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



--
Carsten Bock
CEO (Geschäftsführer)

ng-voice GmbH
Millerntorplatz 1
20359 Hamburg / Germany

http://www.ng-voice.com
mailto:carsten at ng-voice.com<mailto:carsten at ng-voice.com>

Office +49 40 5247593-40
Fax +49 40 5247593-99

Sitz der Gesellschaft: Hamburg
Registergericht: Amtsgericht Hamburg, HRB 120189
Geschäftsführer: Carsten Bock
Ust-ID: DE279344284

Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
http://www.ng-voice.com/imprint/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160919/47b71ddf/attachment.html>


More information about the sr-users mailing list