如何检测Invite IN和OUT [英] How to detect Invite IN and OUT

查看:104
本文介绍了如何检测Invite IN和OUT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用默认Lync记录器我可以看到两个邀请( Out
邀请 和IN邀请)


使用MSPL,我只能抓住INCOMING邀请。


这是我的应用程序清单


< LC:requestFilter方法名= QUOT; INVITE,MESSAGE,BYE"

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; strictRoute = QUOT;真"

&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; &NBSP; domainSupported =" false" />

  < lc:responseFilter reasonCodes =" NONE" />



如何使用MSPL检测In和OUT邀请?


--- 邀请收集样本


Direction :incoming


同行 :YY.YYY.YYY.YYY:YYYY


消息类型 :request


起始线
邀请 sip:ocstest1@xxxxxxx.it SIP / 2.0


来自 :< sip:OCSTest2 @ xxxxxxx 。it> ;; tag = ab26f41eb3; epid = c5b6773519


:< sip:ocstest1 @ xxxxxxx 。它>


CSeq :1 INVITE



--- 邀请结果样本


方向 :传出


同行
YY.YYY.YYY.YYY:YYYY


消息类型 :request


起始线
b $ b sip:
YY.YYY.YYY.YYY:YYYY <强> ;运输= TLS; MS- opaque = c44b1a6d4f; ms-received-cid = 5C300
SIP / 2.0


来自 :" OCSTest2"< sip:OCSTest2 @ xxxxxxx 。it> ;; tag = ab26f41eb3; epid = c5b6773519


:< sip:ocstest1 @ xxxxxxx 。it> ;; epid = 7a45f6832f


CSeq :1 INVITE

解决方案

如果我理解你的问题,那么我认为发生的事情是:



  • 您的MSPL应用程序看到INVITE进入服务器,然后将其传递给其他MSPL应用程序或服务器代码本机进行处理
  • 服务器和链接的MSPL应用程序完成SIP数据包处理后,服务器会通过网络将其发送给目标。此响应不会传回MSPL应用程序,它刚刚在网络上发送。
  • 由于日志记录应用程序在网络级别进行日志记录,它确实会看到传出的SIP数据包并将该数据写入日志文件。

Trying to use default Lync logger I can see two invite (Out invite and IN Invite)

Using MSPL, I can catch only INCOMING invite.

This is my application manifest

<lc:requestFilter methodNames="INVITE,MESSAGE,BYE"
                    strictRoute="true"
                    domainSupported="false"/>
  <lc:responseFilter reasonCodes="NONE"/>

How can I detect between In and OUT invite using MSPL?

--- INVITE INCOMING SAMPLE

Direction: incoming

Peer: YY.YYY.YYY.YYY:YYYY

Message-Type: request

Start-Line: INVITE sip:ocstest1@xxxxxxx.it SIP/2.0

From: <sip:OCSTest2@xxxxxxx.it>;tag=ab26f41eb3;epid=c5b6773519

To: <sip:ocstest1@xxxxxxx.it>

CSeq: 1 INVITE

--- INVITE OUTGOING SAMPLE

Direction: outgoing

Peer: YY.YYY.YYY.YYY:YYYY

Message-Type: request

Start-Line: INVITE sip:YY.YYY.YYY.YYY:YYYY;transport=tls;ms-opaque=c44b1a6d4f;ms-received-cid=5C300 SIP/2.0

From: "OCSTest2"<sip:OCSTest2@xxxxxxx.it>;tag=ab26f41eb3;epid=c5b6773519

To: <sip:ocstest1@xxxxxxx.it>;epid=7a45f6832f

CSeq: 1 INVITE

解决方案

If I'm understanding your question, then I think that what is happening is:

  • Your MSPL app is seeing the INVITE come in to the server and then passes it on to other MSPL apps or to the server code itself for processing
  • Once the SIP packet processing is completed by the server and the chained MSPL apps, then the server sends it over the network to the target.  This response is not passed back to the MSPL apps, it's just sent out on the network.
  • Since the logging app is logging at the network level, it does see the outgoing SIP packet and writes that data to the log file.


这篇关于如何检测Invite IN和OUT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆