[asterisk-users] Red: Sip Phone CID

Rob Schall rschall at callone.net
Fri Jan 19 08:59:30 MST 2007


Here is what I have in my extensions.conf file now. Trustrcid and
sendrcid are turned to "yes" in the conf file.

I'm not fully sure how the SIPCalledRPID works though. The example I
found seems to try and provide the stuff automatically (id and name),
but does the SIPPEER stuff even exist?

I think this is probably the right track though. Any insight would be
much appreciated.

[macro-stdexten2];
; Standard extension macro:
;   ${ARG1} - Extension  (we could have used ${MACRO_EXTEN} here as well
;   ${ARG2} - Device(s) to ring
;   ${ARG3} - Dial flags

exten =>
s,1,SIPCalledRPID(${SIPPEER(${EXTEN}:callerid_name)},${SIPPEER(${EXTEN}:callerid_num)})
exten => s,2,Dial(${ARG2},13,${ARG3})     ; Ring the interface, 20
seconds max
exten => s,3,Goto(s-${DIALSTATUS},1)       ; Jump based on status
exten => s-NOANSWER,1,Voicemail(u${ARG1})  ; If unavailable, send to
voicemail
exten => s-NOANSWER,2,Goto(incoming,s,1)   ; If they press #, return to
start
exten => s-BUSY,1,Voicemail(b${ARG1})      ; If busy, send to voicemail
(busy)
exten => s-BUSY,2,Goto(incoming,s,1)       ; If they press #, return to
start
exten => _s-.,1,Goto(s-NOANSWER,1)         ; Treat anything else as no
answer
exten => a,1,VoicemailMain(${ARG1})        ; If they press *, send to
Voicemail


Thanks
Rob



More information about the asterisk-users mailing list