简体   繁体   English

星号C#-记录文件名

[英]Asterisk C# - Recording filename

I have developed an application in C# which listens for Asterisk events and does certain actions. 我已经用C#开发了一个应用程序,该应用程序侦听Asterisk事件并执行某些操作。 I am using the Asterisk.Net DLL. 我正在使用Asterisk.Net DLL。

I would like to know how I can get the recording file name through my application and save it to a table in my database. 我想知道如何通过应用程序获取记录文件名并将其保存到数据库中的表中。 I realize it is a uniquely generated number but the DLL does not seem to return it. 我意识到这是一个唯一生成的数字,但DLL似乎没有返回它。

Almost each AMI event have uniqueid. 几乎每个AMI事件都有唯一的ID。 You need catch NewExten event with Mixmonitor(or Record), and got from it filename. 您需要使用Mixmonitor(或Record)捕获NewExten事件,并从中获取文件名。

Other option - from dialplan send that filename using UserEvent command. 其他选项-从Dialplan使用UserEvent命令发送该文件名。

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

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