On Wed, Jan 20, 2010 at 10:18 PM, C. Chad Wallace <cwall...@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...@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? -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users