agi

How to integrate Asterisk server with external relational database, like mysql?

≡放荡痞女 提交于 2019-12-02 06:25:55
问题 My objectives: Client(SIP phone, i use 3CX phone) dial to asterisk server, asterisk then connect with external relational database(not located in the same place with asterisk server), and if database response something, asterisk server play a voice file(predefined .gsm file) to response client. What i already have: I have installed AsteriskNow in VirtualBox as a asterisk server, the client is using softphone to connect with Asterisk server in SIP channel. When the Client dial to asterisk

How to integrate Asterisk server with external relational database, like mysql?

南楼画角 提交于 2019-12-01 23:19:49
My objectives: Client(SIP phone, i use 3CX phone) dial to asterisk server, asterisk then connect with external relational database(not located in the same place with asterisk server), and if database response something, asterisk server play a voice file(predefined .gsm file) to response client. What i already have: I have installed AsteriskNow in VirtualBox as a asterisk server, the client is using softphone to connect with Asterisk server in SIP channel. When the Client dial to asterisk server, the server can execute the dialplan. My question: If i want asterisk server establish connection to

Set waiting tone for asterisk agi function processing

半世苍凉 提交于 2019-11-28 07:38:11
问题 I am using asterisk with normal PHP AGI following this link the problem is that my PHP AGI takes 5 seconds to execute .I just want to set some waiting tone for the user to wait until the AGI is been processing. On the same link I found something: set music: Enable/Disable Music on hold generator, example "SET MUSIC ON default but I don't know exactly how to use I mean what would be the exact syntax and where do I put it. I have tried adding same => n,Set(CHANNEL(musicclass)=default) but it