Setup Voip Call from SIP Account in php

别来无恙 提交于 2019-12-23 03:54:11

问题


I have my CMS built in the php, now I want to integrate Voip call on when admin click on the any user's phone number, but I didn't find any solution to get it done. All I have a SIP details of admin and the second user. I did tried the example shown in below link but not working: https://level7systems.co.uk/en/click_to_call_with_php_sip/ it always returning No final response in fr_timer seconds


回答1:


After a lot of research I have found that SIPML is the solution of my problem, it gives pre-build library to make sip call, below is the demo URL : https://www.doubango.org/sipml5/call.htm?svn=250




回答2:


First you need to have VoIP server which supports some kind of API, probably best one is Asterisk or Freeswitch.(I don't know what server you are using, but you will need not only SIP account, but some kind of API too) If you will use Asterisk you can use AMI interface for triggering call. So when you click on number your PHP script needs to connect to Asterisk management interface and trigger a call.

Here are some examples:

http://www.voip-info.org/wiki/view/Asterisk+manager+Example:+PHP



来源:https://stackoverflow.com/questions/38409716/setup-voip-call-from-sip-account-in-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!