简体   繁体   English

jain sip API无法将通知发送到同一台计算机上的端点

[英]jain sip API not able to send notify to endpoints at same machine

I am trying to send SIP notify to a SIP Endpoint but Getting error if SIP Endpoint is at the same machine. 我正在尝试将SIP通知发送到SIP端点,但是如果SIP端点在同一台计算机上,则会出现错误。 If i use two different machines it works. 如果我使用两台不同的机器,它就可以工作。

sipCoreComponentService.sendCheckSyncNotify(to, destination,destPort, false);

the this function has : 该函数具有:

        ClientTransaction trans= sipLayer.sipProvider.getNewClientTransaction(notifyRequest);
        trans.sendRequest(); // Send it out-of-dialog
        trans.setApplicationData(this);

What could be the problem? 可能是什么问题呢?

I am getting this error: 我收到此错误:

 Exception javax.sip.SipException: Cannot assign requested address: Datagram send failed
 gov.nist.javax.sip.stack.SIPClientTransaction.sendRequest(SIPClientTransaction.java:972)

I have seen this error when the target address is an invalid IP such as using broadcast/multicast address as destination in an unicast transaction. 当目标地址是无效的IP(例如在单播事务中使用广播/多播地址作为目标)时,我已经看到此错误。 Can you paste the whole exception and what is the SIP message that you build (key being request URI and Route/Via headers), if you are using private DNS, what does the dest DNS name resolve to? 您是否可以粘贴整个异常以及要构建的SIP消息是什么(键为请求URI和Route / Via标头),如果您使用的是私有DNS,dest DNS名称将解析为什么?

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

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