简体   繁体   English

使用pjsip sipstack接收sip呼叫

[英]Receive sip call using pjsip sipstack

I developing VOIP android application that make and receive the sip call.I Build the pjsip lilbrary as described in " http://trac.pjsip.org/repos/wiki/Getting-Started/Android ". 我开发了可以进行sip调用的VOIP android应用程序。我按照“ http://trac.pjsip.org/repos/wiki/Getting-Started/Android ”中的说明构建了pjsip库。

I use the pjsua sample application code for make sip call by using: 我通过使用pjsua示例应用程序代码进行sip调用:

      MyCall call = new MyCall(account, -1);
      prm = new CallOpParam(true);
            try {
                call.makeCall("destination Sip Address", prm);
            } catch (Exception e) {
                call.delete();
                return;
            }

I am able to make Call but not able to receive call.What I do for receive sip call in my application? 我可以拨打电话,但无法接听电话。我如何在应用程序中接收Sip通话?

Thanks. 谢谢。

Recently I was also testing those code samples on Ubuntu 16.04 LTS virtual machine with PJSIP 2.5.5 and got the same problem. 最近,我还在带有PJSIP 2.5.5的Ubuntu 16.04 LTS虚拟机上测试了这些代码示例,并遇到了同样的问题。 Can make outgoing calls to my Asterisk server on a Raspberry Pi or to other clients (btw quality is not so perfect :/) and NO way to receive incoming calls. 可以拨出电话给我的Raspberry Pi上的Asterisk服务器或其他客户端(顺便说一句,质量不是很完美::),也没有办法接听来电。

I'm picking up SIP error 603 我收到SIP错误603

(from Wikipedia: " 603 Decline The destination does not wish to participate in the call, or cannot do so, and additionally the destination knows there are no alternative destinations (such as a voicemail server) willing to accept the call.") (摘自Wikipedia:“ 603拒绝目的地不希望或不能参与呼叫,并且目的地知道没有其他目的地(例如语音邮件服务器)愿意接受呼叫。”)

and info from asterisk console, that user is busy. 以及来自星号控制台的信息,则该用户正忙。

Did you come up with something in that case?? 在这种情况下,您有什么建议吗?

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

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