Re: [Asterisk-Users] Call roll-over question...
Hi all, Thanks everyone who replied for their help. I wanted to post and describe my final config in case anyone in the future wants to accomplish something similar. Here's my Standard extension macro: exten = s,1,Dial(${ARG2},15) exten = s,2,Voicemail(u${ARG1}) exten = s,3,Hangup exten = s,102,Dial(${ARG3},15) exten = s,103,Voicemail(b${ARG1}) exten = s,104,Hangup exten = s,203,Voicemail(b${ARG1}) exten = s,204,Hangup And the line that calls the macro. exten = 2001,1,Macro(stdexten,2001,SIP/2001,SIP/3001) So, with call waiting turned off on the Cisco phone, I can call 2001, and if it's busy it will roll over to 3001. If they're both busy is will go to Voicemail. As a side note, I opted to not make the 3001 extension direct dialable (is that a word?). So, any calls to 3001 will just get a re-order, however, calls can still be placed from 3001. Again, thanks everyone for their help with my config! Swannie On Saturday 06 March 2004 8:54 pm, Chris A. Icide wrote: At 03:52 PM 3/6/2004, you wrote: try this in extentions.conf, it should do what you want... exten = 2001,1,ChanIsAvail(SIP/2001SIP/3001) exten = 2001,2,SubString,ToDial=${AVAILCHAN}|0|8 exten = 2001,3,Dial(${ToDial},20) exten = 2001,4,Voicemail(u2001) exten = 2001,5,Hangup exten = 2001,104,Voicemail(b2001) exten = 2001,105,Hangup exten = 3001,1,ChanIsAvail(SIP/3001SIP/2001) exten = 3001,2,SubString,ToDial=${AVAILCHAN}|0|8 exten = 3001,3,Dial(${ToDial},20) exten = 3001,4,Voicemail(u3001) exten = 3001,5,Hangup exten = 3001,104,Voicemail(b3001) exten = 3001,105,Hangup Another example that functions as I think you want is below. I like the example above, but if you want to stay away from variables for some reason, the function below does the same as above for calling 2001. You can copy and reverse the numbers for 3001 as well. exten = 2001,1,Dial(SIP/2001,20) ; Ring first line for 20 seconds if it's not in use exten = 2001,2,Voicemail(u2001) ; Line 1 rang for 20 seconds, no one answered, send to VM as unavailable exten = 2001,3,Hangup ; I always terminate a logical set of steps with hangup, just in case.. exten = 2001,102,Dial(SIP/3001,20) ; Line 2001 was busy, try dialing line 3001. exten = 2001,103,Voicemail(b2001) ; No one answered 3001, but 2001 is busy, lets tell the caller we are on the phone exten = 2001,104,Hangup ; Just in case... exten = 2001,203,Voicemail(b2001) ; Line 2001 AND 3001 were busy, maybe I'm calling myself? Let the caller know we are on the phone exten = 2001,204,Hangup ; just in case... This should work just fine. I'm not sure how high priority can go before something goes poof. But two +101 jumps definitely work. I'll have to see how many times you can jump and how high a priority you can have. -Chris ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Call roll-over question...
On Fri, Mar 05, 2004 at 07:04:05PM -0600, Brian R. Swan wrote: Bryan, If you use the `incominglimit=1` option in the device section of the sip.conf file, then * will consider the device b usy if there is already a call going on. This would give you the behavior you are desiring. Walker -- DataCrest, Inc. -- Technically Superior ** Walker Haddock http://www.datacrest.com DataCrest, Inc.e-mail: [EMAIL PROTECTED] 1634A Montgomery Hwy.phone: 1-888-941-3282, 1-205-335-8589 Birmingham, AL 35216 fax: 1-205-823-7838 *** ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Call roll-over question...
Hmm, that would work, but then wouldn't both lines ring at the same time on my phone? I'd like to see if I can get it to roll over like described, but this is certainly an alternative. Thanks for the reply! Brian On Friday 05 March 2004 8:50 pm, Chris A. Icide wrote: At 05:04 PM 3/5/2004, you wrote: I have another question for the group. I'm trying to make the following happen on my Cisco phone: I have two lines configured, 2001 and 3001. If I'm talking on 2001 and snip Try this exten = 2001,1,Dial(SIP/2001SIP/3001,20) This will ring them both at the same time for 20 seconds ...any ideas? ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Call roll-over question...
try this in extentions.conf, it should do what you want... exten = 2001,1,ChanIsAvail(SIP/2001SIP/3001) exten = 2001,2,SubString,ToDial=${AVAILCHAN}|0|8 exten = 2001,3,Dial(${ToDial},20) exten = 2001,4,Voicemail(u2001) exten = 2001,5,Hangup exten = 2001,104,Voicemail(b2001) exten = 2001,105,Hangup exten = 3001,1,ChanIsAvail(SIP/3001SIP/2001) exten = 3001,2,SubString,ToDial=${AVAILCHAN}|0|8 exten = 3001,3,Dial(${ToDial},20) exten = 3001,4,Voicemail(u3001) exten = 3001,5,Hangup exten = 3001,104,Voicemail(b3001) exten = 3001,105,Hangup - Original Message - From: Brian R. Swan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 05, 2004 6:04 PM Subject: [Asterisk-Users] Call roll-over question... I have another question for the group. I'm trying to make the following happen on my Cisco phone: I have two lines configured, 2001 and 3001. If I'm talking on 2001 and someone tries to call me on 2001 I'd like the call to roll over to 3001 and then if I don't answer, it goes to Voice mail. I was able to accomplish this using the following sequence in extensions.conf (I'm doing this from memory, so I hope I got it right). exten = 2001,1,Dial(SIP/2001,20) exten = 2001,2,Dial(SIP/3001,20) exten = 2001,3,Voicemail(u2001) Now, while this works if I'm talking on 2001, the obvious problem is that if none of the extensions are busy it will ring 2001 for 4 ring, then head over to 3001 for 4 rings until going to voice mail. So, I then tried the following: exten = 2001,1,ChanIsAvail(SIP/2001) exten = 2001,2,Dial(SIP/2001,20) exten = 2001,3,Voicemail(u2001) exten = 2001,102,Transfer(3001) exten = 2001,203,Voicemail(2001) exten = 3001,1,Dial(SIP/3001,20) exten = 3001,2,Voicemail(u2001) Which seems (to my newbie eyes) that it should work, but... it doesn't. If I pickup 2001 and call from another extension it goes straight to voice mail. Both extensions (2001,3001) work on their own, so I'm certain that they are configured correctly. Also, I have call waiting shut off on the cisco phone (so it should reject the SIP call to 2001 as busy). ...any ideas? Thanks! Swannie ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Call roll-over question...
At 06:54 PM 3/6/2004, you wrote: At 03:52 PM 3/6/2004, you wrote: try this in extentions.conf, it should do what you want... exten = 2001,1,ChanIsAvail(SIP/2001SIP/3001) exten = 2001,2,SubString,ToDial=${AVAILCHAN}|0|8 exten = 2001,3,Dial(${ToDial},20) exten = 2001,4,Voicemail(u2001) exten = 2001,5,Hangup exten = 2001,104,Voicemail(b2001) exten = 2001,105,Hangup exten = 3001,1,ChanIsAvail(SIP/3001SIP/2001) exten = 3001,2,SubString,ToDial=${AVAILCHAN}|0|8 exten = 3001,3,Dial(${ToDial},20) exten = 3001,4,Voicemail(u3001) exten = 3001,5,Hangup exten = 3001,104,Voicemail(b3001) exten = 3001,105,Hangup Another example that functions as I think you want is below. I like the example above, but if you want to stay away from variables for some reason, the function below does the same as above for calling 2001. You can copy and reverse the numbers for 3001 as well. Actually, the above example doesn't work. In this particular case, with your 7960 phone set to no call waiting. ChanIsAvail will return the original channel as being available if you are using it, and you'll get back a message from the cisco when you try to ring the active line, saying 'Got SIP response 486 Busy here back from xxx.xxx.xxx.xxx' and then SIP/2001-abcd is busy. At least thats what happened when I tested the above dialplan. This brings me to the question of whether or not there is a command or a form of a command that actually does a test on whether a channel is active at that moment. I guess you could do a check on the priority ${PRIORITY}, but then why not just move on to the next priority as the decision point instead of mucking around with variables? Well, I'm just typing my though process now, and yes, it's slow enough for me to keep up typing -Chris ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] Call roll-over question...
I have another question for the group. I'm trying to make the following happen on my Cisco phone: I have two lines configured, 2001 and 3001. If I'm talking on 2001 and someone tries to call me on 2001 I'd like the call to roll over to 3001 and then if I don't answer, it goes to Voice mail. I was able to accomplish this using the following sequence in extensions.conf (I'm doing this from memory, so I hope I got it right). exten = 2001,1,Dial(SIP/2001,20) exten = 2001,2,Dial(SIP/3001,20) exten = 2001,3,Voicemail(u2001) Now, while this works if I'm talking on 2001, the obvious problem is that if none of the extensions are busy it will ring 2001 for 4 ring, then head over to 3001 for 4 rings until going to voice mail. So, I then tried the following: exten = 2001,1,ChanIsAvail(SIP/2001) exten = 2001,2,Dial(SIP/2001,20) exten = 2001,3,Voicemail(u2001) exten = 2001,102,Transfer(3001) exten = 2001,203,Voicemail(2001) exten = 3001,1,Dial(SIP/3001,20) exten = 3001,2,Voicemail(u2001) Which seems (to my newbie eyes) that it should work, but... it doesn't. If I pickup 2001 and call from another extension it goes straight to voice mail. Both extensions (2001,3001) work on their own, so I'm certain that they are configured correctly. Also, I have call waiting shut off on the cisco phone (so it should reject the SIP call to 2001 as busy). ...any ideas? Thanks! Swannie ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] Call roll-over question...
At 05:04 PM 3/5/2004, you wrote: I have another question for the group. I'm trying to make the following happen on my Cisco phone: I have two lines configured, 2001 and 3001. If I'm talking on 2001 and snip Try this exten = 2001,1,Dial(SIP/2001SIP/3001,20) This will ring them both at the same time for 20 seconds ...any ideas? ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users