[asterisk-users] Forwarding call if extension busy
Luca Bertoncello
lucabert at lucabert.de
Mon Jan 4 08:55:40 CST 2016
Hi and happy new year!
My question:
- two extensions: 1111 and 2222
- an active call on 1111
- incoming calls to 1111 should be forwarded to 1111 (call advice!) and 2222
I know how can I forward an incoming call to more than an extension,
but I have no idea how can I get the information, that 1111 has
already an active call...
I think, I need something like:
exten => _2222,1,Verbose(2,Incoming call for 2222 - [${CALLERID(num)}])
exten => _2222,n,GotoIf( <what here?> ?busy)
exten => _2222,n,Dial(SIP/2222,19,RcxX)
exten => _2222,n,VoiceMail(2222,us)
exten => _2222,n,Hangup
exten => _2222(busy),n,Dial(SIP/2222&SIP/1111,19,RcxX)
exten => _2222,n,VoiceMail(2222,us)
exten => _2222,n,Hangup
Well, the problem is the second line, of course...
Of course the extension 2222 is NOT "really busy", since the phone can
support more active channels, but I hope I explained my problem...
Any suggestion?
Thanks
Luca Bertoncello
(lucabert at lucabert.de)
More information about the asterisk-users
mailing list