简体   繁体   English

将.so与星号电话集成

[英]Integrating a .so with asterisk telephony

I have an application running on an Asterisk telephony server that alters the voice packets of an incoming call. 我有一个在Asterisk电话服务器上运行的应用程序,该应用程序会更改传入呼叫的​​语音数据包。 To do this, I have followed the steps: 为此,我遵循了以下步骤:
1. I built an so of the application (coded in C ). 1.我构建了一个so的应用程序(用C编码)。
2. Loaded the application onto asterisk. 2.将应用程序加载到星号上。
3. Reloaded the dialplan via dialplan reload 3.通过dialplan reload
4. The function is registered in asterisk by its name SampleFunc 4.该函数以名称SampleFunc在星号中注册。
5. I am calling the function from within the dialplan like so: 5.我从拨号计划中调用该函数,如下所示:
exten => 0,n,SampleFunc()

Ideally, I would like the .so to function as long as the call is on. 理想情况下,只要调用继续,我希望.so起作用。 Right now it just goes into the function as soon as the call connects and then gets out and proceeds with the rest of the dialplan. 现在,它在调用连接后立即进入功能,然后退出并继续进行拨号计划的其余部分。 My question: 我的问题:

  1. How do I get it to loop while the call is on? 如何在通话进行时使其循环播放?
  2. Is there anything else that I may have missed? 还有什么我可能会错过的吗?

PS: This may be few details to go with. PS:这可能是一些细节。 Short of posting the actual code, please let me know in case more details are needed. 缺少实际的代码,如果需要更多详细信息,请告诉我。

如果您需要在对话和拨号计划进行时更改音频,则可以实现对正在使用的星号音频编解码器进行修补。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM