[asterisk-users] How to add Callee's name into Dial command ?

Olivier oza-4h07 at myamail.com
Fri Oct 3 10:33:46 CDT 2008


2008/10/3 Mr Shunz <mrshunz at gmail.com>

> 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.
> daniele at santi.vr.it ..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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081003/33dd6987/attachment.htm 


More information about the asterisk-users mailing list