<div dir="ltr"><br><br><div class="gmail_quote">2008/10/3 Mr Shunz <span dir="ltr"><<a href="mailto:mrshunz@gmail.com">mrshunz@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
after a little bit of googleing, seems that correct syntax is:<br>
<div class="Ih2E3d"><br>
exten => _123X, 1,<br>
SIPAddHeader(P-Asserted-Identity:"${CALLERID(name)}"<br>
</div><sip:${CALLERID(num)}>)<br>
(notice the sip:${CALLERID(num)})</blockquote><div><br>This could make P-Asserted-Identity field appear in INVITE header.<br>Thanks for that !!<br><br>Unfortunately, this doesn't help much to force Asterisk to query caller's callerid field in sip.conf .<br>
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
but, IIUC, this sets the header for *outbound* call to 123X number, so<br>
don't know if CALLER<br>
can see the header ... and actually, ${CALLERID(num|name)} it's the<br>
CALLER name, so maybe<br>
should be ${EXTEN} (i.e. the CALLED number) like<br>
<br>
exten => _123X, 1, SIPAddHeader(P-Asserted-Identity:"doe" <sip:${EXTEN}>)<br>
<br>
but sorry, can't test by now...<br>
<div><div></div><div class="Wj3C7c"><br>
cheers<br>
<br>
--<br>
------------------------------------------------<br>
Daniele Santi .o.<br>
<a href="mailto:daniele@santi.vr.it">daniele@santi.vr.it</a> ..o () ascii ribbon campaign<br>
Linux User #415108 ooo /\ <a href="http://www.asciiribbon.org" target="_blank">www.asciiribbon.org</a><br>
------------------------------------------------<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
AstriCon 2008 - September 22 - 25 Phoenix, Arizona<br>
Register Now: <a href="http://www.astricon.net" target="_blank">http://www.astricon.net</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>