Hello,
Having the following From header: *<From=sip:+123456789;ext=10@sip.pstnhub.microsoft.com:5061;user=phone>*
How can I extract the only extension from it (ext=10)? Is there any variable already for that or I have to use select function? ( {s.select,index,separator} )
Thank you
On 2/26/21 6:04 AM, Ilie Soltanici wrote:
Hello,
Having the following From header: *<From=sip:+123456789;ext=10@sip.pstnhub.microsoft.com:5061;user=phone>*
Because it's in the user part of the From URI, I believe you'll ultimately have to use {s.select}.
But you can drill down to the part of the URI you need first:
$(fU{nameaddr.uri}{uri.user}{s.select,1,;})
-- Alex
Alex Balashov writes:
Because it's in the user part of the From URI, I believe you'll ultimately have to use {s.select}.
But you can drill down to the part of the URI you need first:
$(fU{nameaddr.uri}{uri.user}{s.select,1,;})
Or perhaps you can apply param list transformations to $fU.
-- Juha