asterisk

Calling a PHP script using FreePBX and Asterisk

与世无争的帅哥 提交于 2019-12-01 10:47:45
问题 So I have a VOIP system set up through a FreePBX server. I want to have it so that when a new call is picked up by FreePBX, asterisks will send the caller ID and the call ID to a php script, which will then use that information to gather ticket information for the account related to that caller ID. It will then update a database with the found information. When a user answers the phone, I then want to send the user's extension and the call ID to another php script and update the database with

How to convert 16bit wav to raw audio

会有一股神秘感。 提交于 2019-12-01 07:45:30
问题 I'm trying to use sox to convert asterisk voicemails to raw audio. The encoding information of the original wav is PCM S16 LE, so I thought I would just be able to do sox msg0000.wav msg0001.raw but the raw file from that is garbled and, according to VLC, 4 minutes long, compared to a 6 second source file. I'm not sure where I'm going wrong, anybody how to convert a wav to raw? Preferably using sox, but any commandline solution will do fine. 回答1: Are you sure that your problem is with sox and

elementui el-form-item 设置为必填项时 删除 label 左边的 * 号

[亡魂溺海] 提交于 2019-11-30 18:04:37
在css中插入以下代码即可。 .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap>.el-form-item__label:before, .el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before { content: ''; } 如果觉得这样不美观,可以单独创建一个css文件存放以下代码,并在需要使用的页面中引入外部css文件实现同样的功能。 来源: https://my.oschina.net/u/4115842/blog/3113143

asterisk : Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) [closed]

假装没事ソ 提交于 2019-11-30 02:56:31
I am learning asterisk. After I installed asterisk, I tried to connect with it using asterisk -rvvvvc. But it gave me the following error message: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) How can I solve this issue? It's probably because asterisk is not running on your server. Try to run it with this command : asterisk -vvvvvvc You'll enter into the Asterisk CLI and if something goes wrong you'll see it. After that you can quit the CLI by entering the exit command. Then you can reconnect to the CLI by typing asterisk -r . All this commands assumed you're the

How can I use Twilio as a SIP trunk for my Asterisk to make and receive calls?

懵懂的女人 提交于 2019-11-30 00:57:01
I have a Twilio account which has a number (let's say 8881231234), and I have Asterisk box. I'd like to use Twilio as an Asterisk trunk to be able to make calls at their rates and receive calls from that number on my Asterisk. I haven't found any specs to interconnect Asterisk with Twilio. Is it possible to set up Asterisk so that every outgoing call is routed through Twilio and have the calls on my 8881231234 number ring on my SIP phone? user2152758 Twilio Seems to offer SIP Trunking now. g3rv4 As it was well pointed out below, Twilio now DOES WORK as a SIP trunk, you can visit https://www

How to make asterisk server automatically response to SIP call?

∥☆過路亽.° 提交于 2019-11-29 17:36:08
My objective: I want to use softphone(3CX phone) register with asterisk server, and make call to the server and asterisk act as a server to automatically response something, like play a song. How i did: I installed asteriskNow using virtualbox, and registered the softphone by setting exntension for my SIP device (extension 333). And i write a dialplan in etc/asterisk/extensions.conf . The dialplan is : [incoming] exten =>s,1,Answer() exten =>s,n,Playback(dir-intro-oper) exten =>s,n,Hangup() I want any incoming call to server, the server will automatically answer, and play a pre-defined voice

Asterisk AMI - pickup call

我的梦境 提交于 2019-11-29 11:54:29
I want to pickup call in Asterisk using AMI. I can originate call, but totally don't know, how to answer the phone... Script for calling: #login sock = socket.socket(af, socktype, proto) sock.connect(sockaddr) sock.send('Action: login\r\n') sock.send('Events: off\r\n') sock.send('Username: '+str(ast_server.login)+'\r\n') sock.send('Secret: '+str(ast_server.password)+'\r\n\r\n') #originate call sock.send('Action: originate\r\n') sock.send('Channel: ' + str(user.asterisk_chan_type) + '/' + str(user.internal_number)+'\r\n') sock.send('Timeout: '+str(ast_server.wait_time*1000)+'\r\n') sock.send(

asterisk : Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) [closed]

99封情书 提交于 2019-11-28 23:52:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am learning asterisk. After I installed asterisk, I tried to connect with it using asterisk -rvvvvc. But it gave me the following error message: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) How can I solve this issue? 回答1: It's probably because asterisk is not running on your server.

How to make asterisk server automatically response to SIP call?

六眼飞鱼酱① 提交于 2019-11-28 13:09:05
问题 My objective: I want to use softphone(3CX phone) register with asterisk server, and make call to the server and asterisk act as a server to automatically response something, like play a song. How i did: I installed asteriskNow using virtualbox, and registered the softphone by setting exntension for my SIP device (extension 333). And i write a dialplan in etc/asterisk/extensions.conf . The dialplan is : [incoming] exten =>s,1,Answer() exten =>s,n,Playback(dir-intro-oper) exten =>s,n,Hangup() I

Asterisks in Fortran: Syntax error in argument list at (1)

回眸只為那壹抹淺笑 提交于 2019-11-28 11:33:00
问题 In the following fortran77 code, there is this subroutine definition SUBROUTINE MSIRNS ( D , NOBST , N , X , R , RR , SURFT , , INOBSI , ISUR , IDELTS , IRELPS , , RNOBSI , RSUR , RDELTS , RRELPS , , OBSD , * , * ) what is the meaning of the two last arguments, asterisks? and how can I therefore call the function? I tried all these variants RES = CALL MSIRNS (D, NOBST, N, X, R, RR, SURFT, INOBSI, ISUR, IDELTS, IRELPS, RNOBSI, RSUR, RDELTS, RRELPS, OBSD, *, *) CALL MSIRNS (D, NOBST, N, X, R,