Page 1 of 1

Providing busy tone to A-party when any B-party busy

Posted: Sun Jun 19, 2016 12:14 am
by epacep
I'm new to scripting and was searching for an in-dial plan which would provide busy tone to an A-party caller who called into my SS system when any of the extensions are busy; effectively preventing another incoming call when any extension is busy.

Can someone provide some advice on which path to follow?

Does SipSorcery provide a function or do I need to script up something using SIP responses etc.

My in-dial plan is thus far:

Code: Select all

sys.Dial("ext1@local&ext2@local")
Thanks.

Re: Providing busy tone to A-party when any B-party busy

Posted: Sun Jun 19, 2016 10:07 am
by Aaron
You shouldn't need to do anything.

If your sipsorcery dialplan does not succeed, i.e. none of the call attempts get an answer, then a 480 response is returned. It then depends on the calling SIP device as to how it handles that response but typically it will play some kind of busy tone to the user.

If you want to respond with a different code you can use:

Code: Select all

sys.Dial("ext1@local&ext2@local")
sys.Respond(486, "Sorry busy here")

Re: Providing busy tone to A-party when any B-party busy

Posted: Mon Jun 20, 2016 1:27 am
by epacep
Hi again,

What I wanted was for a busy to be provided if either/or extension was busy. Is there a way to exit the dialplan and provide a 480 response for that scenario?

regards.

Re: Providing busy tone to A-party when any B-party busy

Posted: Mon Jun 20, 2016 10:07 am
by Aaron
What's happening at the moment when both extensions are busy?

Most SIP phones will not say they are busy if they are on a call. instead they display an incoming call notification to the user. Unless the phones tell the sipsorcery server they are busy it can't pass the indication on. As another test you could try setting both phones to Do Not Disturb. I suspect in that case the caller will get the busy response you're after.