简体   繁体   English

通过SIP NOTIFY获取Freeswitch事件

[英]Get Freeswitch events via SIP NOTIFY

Freeswitch server has a lot of events and can be handled with event_socket_libray. Freeswitch服务器有很多事件,可以用event_socket_libray处理。

I want to subscribe to those events from a sip client and get notified if a particular event is fired. 我想从Sip客户端订阅这些事件,并在发生特定事件时得到通知。

Any Idea how to do that? 任何想法如何做到这一点?

Thank you. 谢谢。

You can generate NOTIFY events by firing specially crafted events via ESL: http://lists.freeswitch.org/pipermail/freeswitch-users/2012-October/088961.html 您可以通过ESL触发特制事件来生成NOTIFY事件: http//lists.freeswitch.org/pipermail/freeswitch-users/2012-October/088961.html

So, you need a software agent that listens to events of your interest and then sends the NOTIFY events. 因此,您需要一个软件代理来侦听您感兴趣的事件,然后发送NOTIFY事件。 Should be quite easy to do with any programming language that you prefer. 使用您喜欢的任何编程语言都应该很容易做到。 You can also use some other means to deliver the messages -- for example, push them into a Redis queue. 您还可以使用其他方式来传递消息,例如,将它们推送到Redis队列中。

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

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