1) PJSIP_PARSE_URI
same =>
n,set(clir=${PJSIP_PARSE_URI(${PJSIP_HEADER(read,P-Asserted-Identity)},user)})
2) trust_id_inbound=no (pjsip.conf endpoint)
Accept identification information received from this endpoint
it looks like it fills CALLERID structure
https://github.com/asterisk/asterisk/blob/97b3459bd249eb3ad4c5fc96732fadf447cd8e6d/res/res_pjsip_caller_id.c#L176
which pill will you take neo?
Dne 12/09/2022 v 22:39 marek napsal(a):> hi,
>
> what's best method from perfomance view to parse this header
>
> P-Asserted-Identity:<sip:+44111222333 at 22.22.22.22;user=phone>
> P-Asserted-Identity:<tel:+44111222333>
>
> i need +44111222333 (if Privacy: id)
>
>
> PJSIP_PARSE_URI ?
>
> STRREPLACE/CUT?
>
> FastAGI?
>
> other options?
>
> thanks
> Marek
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20220913/f42d5653/attachment.html>