Handle A Call If One Phone Of A Ring Group Is Busy

Home » Asterisk Users » Handle A Call If One Phone Of A Ring Group Is Busy
Asterisk Users 1 Comment

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

One thought on - Handle A Call If One Phone Of A Ring Group Is Busy

  • 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