[asterisk-users] Red: Sip Phone CID

Jason Fuermann jbf005 at shsu.edu
Fri Jan 19 10:22:14 MST 2007


I'm not sure about the sippeer stuff, or where they get that variable. 
We lookup our info in a database to set it. Also to use sipcalledrpid 
you'll probably need the patch at http://bugs2.digium.com/view.php?id=6643 .
Rob Schall wrote:
> 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
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   


More information about the asterisk-users mailing list