2008/10/3 Mr Shunz <[EMAIL PROTECTED]>

> Hi all,
>
> after a little bit of googleing, seems that correct syntax is:
>
> exten => _123X, 1,
> SIPAddHeader(P-Asserted-Identity:"${CALLERID(name)}"
> <sip:${CALLERID(num)}>)
> (notice the sip:${CALLERID(num)})


This could make P-Asserted-Identity field appear in INVITE header.
Thanks for that !!

Unfortunately, this doesn't help much to force Asterisk to query caller's
callerid field in sip.conf .



>
> but, IIUC, this sets the header for *outbound* call to 123X number, so
> don't know if CALLER
> can see the header ... and actually, ${CALLERID(num|name)} it's the
> CALLER name, so maybe
> should be ${EXTEN} (i.e. the CALLED number) like
>
> exten => _123X, 1, SIPAddHeader(P-Asserted-Identity:"doe" <sip:${EXTEN}>)
>
> but sorry, can't test by now...
>
> cheers
>
> --
> ------------------------------------------------
> Daniele Santi       .o.
> [EMAIL PROTECTED] ..o () ascii ribbon campaign
> Linux User #415108  ooo /\  www.asciiribbon.org
> ------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to