[asterisk-users] test case with queues and system()
Евгений Шишкин
itparanoia at gmail.com
Wed Jan 20 18:09:57 CST 2010
On Wed, Jan 20, 2010 at 10:18 PM, C. Chad Wallace
<cwallace at lodgingcompany.com> wrote:
>
> At 5:59 PM on 19 Jan 2010, ______________ ____________ wrote:
>
>> Test case:
>> We have e1 trunk and multi-channel sip line. Clients waiting in the
>> queue, which can handle 30 clients. They listen mellody and their
>> position, while waiting. The system can handle only 5 clients at the
>> moment. As soon as client is the first he hears a background and then
>> if he inputs any number, asterisk executes system command like wget
>> example.org/?p=<input number> and call terminated.
>>
>> I'm reading asteriskbook but can't connect all together right now.
>
> I think you'll have to use the Local channel as your queue member, like
> this (in queues.conf):
>
> member => Local/s at systemcommand
>
> And then in your dialplan (extensions.conf) you'd have something like
> this:
>
> [systemcommand]
> exten => s,1,Background(press-a-key)
> exten => s,n,Read(INPUT_NUMBER)||1)
> exten => s,n,System(wget http://example.org/?p=${INPUT_NUMBER})
> exten => s,n,Playback(goodbye)
>
>
> Please note, these are only examples to get you started, and they
> probably won't work without some tuning.
Thank you, it helped a lot.
Now i have only one thing - how can i tell asterisk to work with 5
clients? I have to make 5 members?
More information about the asterisk-users
mailing list