[asterisk-users] How to add Callee's name into Dial command ?
Mr Shunz
mrshunz at gmail.com
Fri Oct 3 09:55:15 CDT 2008
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)})
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
------------------------------------------------
More information about the asterisk-users
mailing list