<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>1) PJSIP_PARSE_URI<br>
</p>
<p>same =>
n,set(clir=${PJSIP_PARSE_URI(${PJSIP_HEADER(read,P-Asserted-Identity)},user)})</p>
<p><br>
</p>
<p>2) trust_id_inbound=no (pjsip.conf endpoint)<br>
</p>
<p>Accept identification information received from this endpoint<br>
</p>
<p>it looks like it fills CALLERID structure
<a class="moz-txt-link-freetext" href="https://github.com/asterisk/asterisk/blob/97b3459bd249eb3ad4c5fc96732fadf447cd8e6d/res/res_pjsip_caller_id.c#L176">https://github.com/asterisk/asterisk/blob/97b3459bd249eb3ad4c5fc96732fadf447cd8e6d/res/res_pjsip_caller_id.c#L176</a><br>
</p>
<p><br>
</p>
<p>which pill will you take neo?<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Dne 12/09/2022 v 22:39 marek napsal(a):<br>
</div>
<blockquote type="cite"
cite="mid:9716558b-8c67-dd4b-deea-9df59e3f7f91@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<pre style="color: rgb(26, 26, 26); font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(254, 254, 240); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;">hi,
what's best method from perfomance view to parse this header
P-Asserted-Identity: <a class="moz-txt-link-rfc2396E" href="sip:+44111222333@22.22.22.22;user=phone" moz-do-not-send="true"><sip:+44111222333@22.22.22.22;user=phone></a>
P-Asserted-Identity: <a class="moz-txt-link-rfc2396E" href="tel:+44111222333" moz-do-not-send="true"><tel:+44111222333></a>
i need +44111222333 (if Privacy: id)
PJSIP_PARSE_URI ?
STRREPLACE/CUT?
FastAGI?
other options?
thanks
Marek
</pre>
</blockquote>
</body>
</html>