Solved

Asterisk 1.8.12 limiting incoming calls to one per sip extension

Posted on 2013-02-07
9
2,641 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
Independent Software Vendors: 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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Article by: user_n
How Sip Phone (User Agent) works and communicates with sip servers 1.  There is a sip server and a sip registrar.  The sip server and sip registrar can be one server or two different servers. The sip registrar is the server on which it is record…
Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
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…
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…

739 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