[Asterisk-Users] limit incoming calls to sip extens

Ryan Courtnage ryan at voxbox.ca
Wed Aug 11 07:45:11 MST 2004


Hi all,

I've been using the following method to limit calls to sip clients to 1:

exten => 200,1,SetGroup(200)
exten => 200,2,CheckGroup(1)
exten => 200,3,Dial(SIP/200)
exten => 200,103,Busy

This works fine for a single extension.  

However, I also need to dial groups of sip clients.  It appears that SetGroup can only be used once per channel.

This (useless) example would not work properly (group 200 will always have a count of zero):

exten => 700,1,SetGroup(200)
exten => 700,2,CheckGroup(1)  ; this will never jump to 103
exten => 700,3,SetGroup(201) 
exten => 700,4,CheckGroup(1)
exten => 700,5,Dial(SIP/200&SIP/201)
exten => 700,103,Busy      
exten => 700,105,Busy


Does anyone have any suggestions on how to accomplish this?

Thanks
Ryan







More information about the asterisk-users mailing list