I am using Kamailio 4.4 and I am sending custom parameters with Contact header from my client extensions. the header send to Kamailio is like this
Contact: "Test" <sip:2@111.11.111.11:46666;pn-d=android;pn-t=d1eCzkw9bhk:APA91bFntzV>
I need to extract the value of these two parameters pn-d and pn-t. I tried with the code given below.
$var(pn-d_value) = $sel(contact.uri.params[pn-d]);
but the value can't be retrieved.
Please suggest a way to get the value of custom parameters.