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

Catalog of dial plans
Post Reply
epacep
Posts: 8
Joined: Tue Mar 10, 2015 3:37 am

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

Post by epacep » Sun Jun 19, 2016 12:14 am

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.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

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

Post by Aaron » Sun Jun 19, 2016 10:07 am

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")

epacep
Posts: 8
Joined: Tue Mar 10, 2015 3:37 am

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

Post by epacep » Mon Jun 20, 2016 1:27 am

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.

Aaron
Site Admin
Posts: 4652
Joined: Thu Jul 12, 2007 12:13 am

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

Post by Aaron » Mon Jun 20, 2016 10:07 am

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.

Post Reply