Frank
2016-Feb-28 00:43 UTC
[asterisk-users] Handle a call if one phone of a ring group is busy
Hi List I have a phone in my living room (ext. 111), a phone in the kitchen (ext. 222) and a phone in my bedroom (ext. 333). Both phones are part of a ring group. exten => 7654321,1,Dial(SIP/111&SIP/222&SIP/333) Everything work fine and, as expected, all phones are ringing by an incoming call and I can answer the call on the nearest phone. Problem: if there is a second incoming call while I'm talking on one of the three phones, the other phones ring and I cannot answer the second call since I cannot be at two places at the same time. :-) Question: How to give a "busy signal" back to the caller if one extension of a ring group is in use? Or redirect the call to voice mail? Any hint? Thanks in advance Frank
Frank Vanoni
2016-Feb-28 14:34 UTC
[asterisk-users] Handle a call if one phone of a ring group is busy
On Sun, 2016-02-28 at 01:43 +0100, Frank wrote:> Question: How to give a "busy signal" back to the caller if one > extension of a ring group is in use? Or redirect the call to voice mail?Found a solution! :-) exten => 7654321,1,GotoIf($["${DEVICE_STATE(SIP/111)}"="INUSE"]?Busy,1) exten => 7654321,n,GotoIf($["${DEVICE_STATE(SIP/222)}"="INUSE"]?Busy,1) exten => 7654321,n,GotoIf($["${DEVICE_STATE(SIP/333)}"="INUSE"]?Busy,1) exten => 7654321,n,Dial(SIP/111&SIP/222&SIP/333) exten => Busy,1,BUSY(10) exten => Busy,n,Hangup