How to call Queue Or Ring Group using AMI in PHP


I can make clicktocall using :
fputs($socket, “Action: Originate\r\n” );
fputs($socket, “Channel: SIP/$extension\r\n” );
fputs($socket, “Exten: $extension\r\n” );
fputs($socket, “Context: outbound-dialing\r\n” );
fputs($socket, “Priority: 1\r\n” );
fputs($socket, “Async: yes\r\n\r\n” );


But Instead Of $extension,i need to call Specific Queue Or Ring Group.
What are the changes i have to do to achieve this?
Please help me in this.

Is that a joke? If you already know how to dial then… :unamused:

Seems like you are using a GUI because the concept of ringgroup and the context used. Answering your question: you need to change the extension to match your QUEUE and your “Ring Group”-assuming your context can dial to it-

Place some dialplan logic in a context to call Queue or Ring group and then use Local channel with Originate for calling back into that Asterisk context. … al+Channel

–Satish Barot

Thanks ,It Works. :smiley: