Giter VIP home page Giter VIP logo

sipvoice's Introduction

SipVoice

该 demo 基于https://github.com/VoiSmart/pjsip-android 项目实现语音对讲对讲功能。
还有很多关于 pjsip 的功能和 API 请移步 pjsip-android。

正常运行该 Demo ,需要已有 Sip 服务端,Constants 中配置 ip 和端口。

解决了一个坑,通话2分钟必定断开,在 pjsip-android 提了 issues ,VoiSmart/pjsip-android#89
估计他们使用的服务器不要客户端发心跳,所以一直没有找到答案,不过还是非常感谢 pjsip-android 的团队。

后面通过抓win软件的包,与同事沟通,找资料等方式,得知客户端需要主动发心跳,这才解决。

https://blog.csdn.net/netnote/article/details/3857191
这篇文章也给了我启示

sip是支持发送自定义数据的: SipCall.sendRequest ()
详情看demo中的 CallOutActivity 的 160行

demo 中,实现了基本的语音对讲的功能,拨号,接听,静音,外放,计时等...

拨号方:

接听方:

想要测试的朋友,可以看下这个免费试用的sip服务器,miniSipServer:https://www.myvoipapp.com/download/index.html

只需要更改ip,完美运行。

如果有帮助,点个star吧,老弟。

sipvoice's People

Contributors

zhanglihow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.