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:[email protected];user=phone>
P-Asserted-Identity:<tel:+44111222333>
i need +44111222333 (if Privacy: id)
PJSIP_PARSE_URI ?
STRREPLACE/CUT?
FastAGI?
other options?
thanks
Marek
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users