Solved

Asterisk 1.8.12 limiting incoming calls to one per sip extension

Posted on 2013-02-07
9
2,653 Views
Last Modified: 2013-02-08
Hi All,

I have a user that requested to have four lines configured on his Cisco 7960 phone with each line per softkey.  Ideally, he wants all incoming calls to roll over to each softkey as opposed to having call waiting so it'll be easier for him to pickup via the keys as opposed to having to fiddle with switching back and forth for call waiting, i.e. first calls rings extension #1 (softkey1), second incoming call rings to softkey2, and and so forth.

So my logic, and of course correct me if I'm wrong:

1) configure four different sip extensions in sip.conf, i.e. 100, 101, 102, and 103 and set "busylimit = 1" for each extension.
3) configure the sip extensions per each softkey on the Cisco 7960 phone
4) configure the extensions.conf for the incoming call do to the following:
exten => s,1,Answer()
exten => s,n,Dial(SIP/100,10,tr)
exten => s,n,Dial(SIP/101,5,tr)
exten => s,n,Dial(SIP/102,5,tr)
exten => s,n,Dial(SIP/103,5,tr)
exten => s,n,Voicemail(100@context,u)
exten => s,n,Hangup()
exten => 102,Voicemail(100@context,b)

Open in new window


does that sound correct or is there a better/different way to do so.

essentially, I just need to limit each extension to one call and have it rollover to the next extensions.

Much appreciated for guidance.
0
Comment
Question by:jetli87
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 20

Accepted Solution

by:
José Méndez earned 500 total points
ID: 38867783
That doesn't sound correct, Asterisk  will try to connect 4 different calls one after the other regardless of what happened to the first one.

Try this:

exten => s,1,Dial(SIP/100,10,tr)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?b1:vm)
exten => s,n(b1),Dial(SIP/101,5,tr)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?b2:vm)
exten => s,n(b2),Dial(SIP/102,5,tr)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?b3:vm)
exten => s,n(b3),Dial(SIP/103,5,tr)
exten => s,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?b4:vm)
exten => s,n(b4),Voicemail(100@context,b)
exten => s,n(vm),Voicemail(100@context,u)
exten => s,n,Hangup()

What I'm showing is the logic of using the GotoIf() to achieve what you need.

HTH
0
 
LVL 1

Author Comment

by:jetli87
ID: 38868494
Perfect!  I figured i needed "gotoif" but didn't know the code for busy detect.  Will try and get back to you.
0
 
LVL 1

Author Comment

by:jetli87
ID: 38868596
to better understand the your code, how does "b1:vm" work?  If busy is detected, send the call to b1.  Otherwise, if it's not busy, goto voicemail?  Correct?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Expert Comment

by:José Méndez
ID: 38868602
If it didn't find the user busy, then the call rang up to the limit (10 or 5), and then went to voicemail as unavailable.
0
 
LVL 1

Author Comment

by:jetli87
ID: 38868661
got it. When using "Dialstatus" flag, is "congestion" a usable option?  is that the interchangeable with "busy" or is there a different use for it?
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 38868725
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 38868727
Is the code working for you?
0
 
LVL 1

Author Comment

by:jetli87
ID: 38868761
yup, works perfect.
0
 
LVL 20

Expert Comment

by:José Méndez
ID: 38868788
Glad to hear that mate.
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hey there Heard about jingle, the add on for XMPP that enables point to point audio between two XMPP clients. No server config necessary. Actually quite a cool feature. However, how good is it if you can not use those voice capabilities to do a P…
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question