andregronwald78 at gma... Guest
|
Posted: Sun Feb 28, 2016 1:17 pm Post subject: [asterisk-users] Handle a call if one phone of a ring, group |
|
|
I do it via a group count:
main call handling:
exten => sub123,n,Set(GROUP()=11122345)
...
the main routine calls subroutine:
exten => general,1,GotoIf($["${busyonbusy}"="YES"]?100:200)
exten => general,100,GotoIf($[ ${GROUP_COUNT()} > 1 ]?110:200)
exten => general,110,Hangup(17) ; fehlercode 17 = SIPcode 486=user busy here
exten => general,200,Return()
...
that works as well and you can specify how many calls are allowed.
regards,
andre
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|