On 06/23/2011 12:58 PM, dotnetdub wrote:
On 17 June 2011 18:22, Alex Balashov <abalashov(a)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});
--
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/