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

Rob Hillis rob at hillis.dyndns.org
Fri Oct 3 05:01:05 CDT 2008


Olivier wrote:
>
> 2008/10/3 Olivier <oza-4h07 at myamail.com <mailto:oza-4h07 at myamail.com>>
>
>     Hi,
>
>     When dialing a number, I use :
>     exten => _123X, 1, Dial (SIP/${EXTEN})
>
>     Then, I get TRYING and RINGING SIP messages which both include
>     this kind of line :
>     To: <sip 1234 at 192.168.1.1 <mailto:1234 at 192.168.1.1>;user=phone>
>
>     Is it possible, configuring Asterisk 1.4, to get something like
>     this instead ?
>     To: "John Doe" <sip 1234 at 192.168.1.1
>     <mailto:1234 at 192.168.1.1>;user=phone>
>
>     This way, I'm hoping to display callee's name beside (or instead
>     of) callee's number which would offer a double check for caller
>     which might be confusing extensions, for instance.
>
>
>     I tried this :
>     exten => _123X, 1, SIPAddHeader(To: Doe \<sip 1234 at 192.168.1.1
>     <mailto:1234 at 192.168.1.1>\;user=phone\>)
>
>     but I still got :
>     To: <sip 1234 at 192.168.1.1 <mailto:1234 at 192.168.1.1>;user=phone>
>
> I must add I also tried without success :
> exten => _123X, 1, Set(SIALPEERNAME=Doe)

Have you tried Set(CALLERID(name)="Doe")?  This the normal method for 
setting caller ID names in Asterisk.



More information about the asterisk-users mailing list