What I am doing in a similar case is:

- I am using the mod_limit to know which extension is in a call and which is free.
- If a call is made to a busy extension (which has the call waiting feature) then I play a different ring-back tone with the command:
             <action application="set" data="ringback=${callwait-ring}" />
- In your case, the busy extension is different than the one being called; thus, you have to add to the extension variables/parameters a new parameter which specifies the other extension number; then you have to call mod_limit for both extensions, and play the call-wait ringback if one of them is busy.

         Regards, __Yehavi:

2016-12-21 13:59 GMT+02:00 Bipin Patel <bipin@xbipin.com>:
hi,

its a multi line phone so i guess B is accepting the call like a normal call which it should with call waiting enabled on it, if it sent busy then A would simply hear busy tone which i dont want, i want to make A hear a different ringtone while call is waiting so A can know using the tone that B is on another call and might or might not answer


Regards,
Bipin



-------- Original Message --------
Subject: Re: [Freeswitch-users] different ringtone when called party is already busy on another call
From: Lợi Đặng <loi.dangthanh@gmail.com>
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Date: 12/21/2016, 2:22:11 PM
guess It is the B's function, B is able to put the call in waiting instead of respond 486 to FS, when B is already a call with another party.
in this case, I'm afraid FS will have no idea about what is happening in B.
what branch B is? did you try B's role with another phone?

rgds,

Loi Dang Thanh
Phone : +84.1224.735.448
Email : loi.dangthanh@gmail.com

On Wed, Dec 21, 2016 at 3:40 PM, Bipin Patel <bipin@xbipin.com> wrote:
hi,

i have been using FS in product on many raspberry pi's and other machines in PBX environment and everything works well except im stuck with a requirement which i cant seem to be able to get over.

party A calls party B but party B is already in call with party C, so party A gets normal ringtone and party B gets call waiting beeps, how do we detect in FS that party B is already busy on another call and generate a different ringtone for party A which he hears so indirectly party A knows that party B is already on another call?


--
Regards,
Bipin




_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org