Hello, I've done a bit of research, though obviously in the wrong places. :) I'm looking to set up some type of distinctive ring for SIP phones based on the context in which the SIP phone is being called from. If that sounds confusing it isn't. I have two FXOs connected to POTS, so in essence a caller could be dialing us at one of two phone numbers. Each of those FXOs has its own context in extensions.conf. The contexts essentially grab the incoming call and ring a bunch of single line SIP phones. If no one answers then the call is sent to voicemail depending on the number that the caller dialed. The problem is that when the SIP phones ring, there's no way for us humans to tell which number the caller actually dialed. My initial thought was to make some type of distinctive ring to the SIP phones to indicate which number the caller dialed, much in the same way that the telco does it when someone has the distintive ring service. Another idea would be to set the callerid on the SIP phones to indicate which line was dialed. The drawback there is that we lose the incoming callerid from POTS. Maybe set one of line of the callerid to the incoming line and leave the other as the callerid number? Does anyone have experience with setting distinctive ring in SIP in such a way? Steve
exten => s,1,Wait(1) exten => s,n,Set(Var_Alert=${SIP_HEADER(Alert-Info)}) exten => s,n,GotoIf($["${Var_Alert}" = "<http://127.0.0.1/Bellcore-dr3>"]?2,1) ;goto ext 2 if distinctive ring exten => s,n,Dial(SIP/1) ----- Original Message ----- From: Steve To: asterisk-users at lists.digium.com Subject: [asterisk-users] Distinctive Ring for SIP? Date: Tue, 8 Jul 2008 19:04:31 -0500 Hello, I've done a bit of research, though obviously in the wrong places. :) I'm looking to set up some type of distinctive ring for SIP phones based on the context in which the SIP phone is being called from. If that sounds confusing it isn't. I have two FXOs connected to POTS, so in essence a caller could be dialing us at one of two phone numbers. Each of those FXOs has its own context in extensions.conf. The contexts essentially grab the incoming call and ring a bunch of single line SIP phones. If no one answers then the call is sent to voicemail depending on the number that the caller dialed. The problem is that when the SIP phones ring, there's no way for us humans to tell which number the caller actually dialed. My initial thought was to make some type of distinctive ring to the SIP phones to indicate which number the caller dialed, much in the same way that the telco does it when someone has the distintive ring service. Another idea would be to set the callerid on the SIP phones to indicate which line was dialed. The drawback there is that we lose the incoming callerid from POTS. Maybe set one of line of the callerid to the incoming line and leave the other as the callerid number? Does anyone have experience with setting distinctive ring in SIP in such a way? Steve _______________________________________________ -- 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 -- Be Yourself @ mail.com! Choose From 200+ Email Addresses Get a Free Account at www.mail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080708/ed0870fc/attachment.htm
At 05:04 PM 7/8/2008, you wrote:>Does anyone have experience with setting distinctive ring in SIP in such >a way?On my phones, this changes the ring: exten => s,n,set(_ALERT_INFO=<Bellcore-dr1>) exten => s,n,set(_ALERT_INFO=<Bellcore-dr4>) I use dr1-dr5 for the 5 rings I want. I also do this to set the called ID and not loose the actual CID: exten => s,n(prefixCID),Set(CALLERID(Name)=L1_${CALLERID(Name)}) or exten => s,n(prefixCID),Set(CALLERID(Name)=L2_${CALLERID(Name)}) Ira
> > Does anyone have experience with setting distinctive ring in SIP in such > a way? >I have done this for internal call with ;;;grandstream;;; exten => _12X,1,Set(_ALERT_INFO=<http://127.0.0.1>\;info=internal) exten => _12X,2,Dial(SIP/${EXTEN},30,tTr) http://www.grandstream.com/asteriskfaqs.html ;;;linksys;;; exten => _1XX,1,SetVar(_ALERT_INFO=Simple-1) exten => _1XX,2,Dial(SIP/${EXTEN},30,Tr) ;;;polycom;;; exten => s,n,Set(_ALERT_INFO=Custom 1) or when it doesnt works best solution is exten => s,n,,SIPAddHeader(Alert-Info: Custom 1) http://threebit.net/mail-archive/asterisk-users/msg02875.html http://www.voip-info.org/wiki/view/Polycom+auto-answer+config LL