On 06/23/2011 12:58 PM, dotnetdub wrote:
On 17 June 2011 18:22, Alex Balashov <abalashov@evaristesys.com mailto:abalashov@evaristesys.com> wrote:
Brian, Remote-Party-ID is a long-obsolete draft that never became an RFC; why are you still using it? Anyway, if you know the 'privacy' header parameter will always be there, you can do this, assuming is_present_hf("Remote-Party-__ID"), of course. $var(x) = $(hdr(Remote-Party-ID){s.__select,1,>}); xlog("L_INFO", "Remote Party ID privacy value: $(var(x){param.value,privacy})__\n");
Hi Alex,
This doesn't seem to be working for me..
/sbin/kamailio[25291]: INFO: <script>: Remote Party ID privacy value:
From the initial invite: Remote-Party-ID: <sip:1234567@domain.ie mailto:sip%3A1234567@domain.ie;privacy=full;screen=no>
Let me know if I'm doing something wrong.
Oh, 'privacy' is a URI parameter, not a header parameter. (it's inside the angle-brackets). That calls for a different approach:
$var(privacy) = $(hdr(Remote-Party_ID){uri.param,privacy});