sip

sipp basic call 脚本

回眸只為那壹抹淺笑 提交于 2020-02-05 06:37:50
1 <?xml version="1.0" encoding="ISO-8859-1" ?> 2 <!DOCTYPE scenario SYSTEM "sipp.dtd"> 3 4 <!-- This program is free software; you can redistribute it and/or --> 5 <!-- modify it under the terms of the GNU General Public License as --> 6 <!-- published by the Free Software Foundation; either version 2 of the--> 7 <!-- License, or (at your option) any later version. --> 8 <!-- --> 9 <!-- This program is distributed in the hope that it will be useful, --> 10 <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of --> 11 <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See

Linphone客户端配置

a 夏天 提交于 2020-01-29 07:08:49
1、安装linphone客户端(以3.4.1版本为例) 2、配置Network settings (1)udp端口,默认5060,若本地开了sip服务器(如brekeke、asterisk)会占用此端口,可以修改linphone(sip客户端)为其它端口 3、配置Manage SIP Accounts (1)代理账户(Proxy accounts)-add/edit,your sip identity和sip proxy address都填: sip账号@sip服务器地址 (或 sip账号@sip服务器地址:5060 ) (2)Default identity:输入displayname和username(可以都输你的sip账号)即可自动生成Your result sip address (3)点击确定后,弹出输入密码的提示框,输入密码后最底下提示成功注册到SIP服务器。 4、options可以选择配置通话时是否开启视频 来源: CSDN 作者: fengruoying93 链接: https://blog.csdn.net/fengruoying93/article/details/104028569

SIP注册流程

拈花ヽ惹草 提交于 2020-01-26 05:41:42
SIP Client SIP Server -------------------------register--------------------> <-----------------401Unauthorize-------------- -------------------------register--------------------> <----------------------200 ok------------------------ 再看注册流程之前需要先了解几个名词 User-Agent 用户代理 用户代理是发送或接收SIP消息并管理SIP会话的逻辑网络端点。用户代理具有客户端和服务器组件。用户代理客户端(UAC)发送SIP请求。用户代理服务器(UAS)接收请求并返回SIP响应。与其他固定客户端和服务器角色的网络协议(例如,HTTP)不同,在网络协议中,Web浏览器仅充当客户端,而不充当服务器,SIP要求两个对等方都实现这两个角色。UAC和UAS的角色仅在SIP事务期间持续。 User Agent Client:用来发起SIP请求的客户程序。 User Agent Server: 收到SIP请求后负责与用户联系并代表用户回送响应的服务程序。该响应可以表示接受、拒绝或重定向请求消息。 请求消息类型包括: INVITE,ACK,OPTIONS,BYE

Android SipManager: android.net.sip.SipException: SipService.createSession() returns null

青春壹個敷衍的年華 提交于 2020-01-24 02:40:06
问题 So, I've been coding this Android Sip application using Androids Sip library for some time, but i can't get the registration to work. Currently it gives me the following error when i call SipManager.register() : android.net.sip.SipException: SipService.createSession() returns null . My code: public static void Register(final String username, final String password, final String domain, final String cbf) throws ParseException, SipException { Log.d(MainActivity.LOGTAG, "testi:

socket编程(inet_ntoa、inet_addr、htol、htos)

自闭症网瘾萝莉.ら 提交于 2020-01-22 22:51:36
目录 1. inet_addr() 2. inet_ntoa() 3. htonl()、htons() 1. inet_addr() 将一个点分十进制的字符串IP转换成一长整型的“网络字节序(大端或小端模式)” char sIP[] = "127.0.0.1"; DWORD dwStr2HexIP = inet_addr(sIP); printf("dwStr2HexIP=0x%08x\n", dwStr2HexIP); 输出结果: dwStr2HexIP = 0x0100007f 2. inet_ntoa() 将网络字节序的整型值(大端或小端模式)转换成字符串形式的点分十进制IP地址 char sIP[] = "127.0.0.1"; char sHex2StrIP[32] = {0}; DWORD dwStr2HexIP = inet_addr(sIP); strcpy(sHex2StrIP, inet_ntoa(*(struct in_addr*)&dwStr2HexIP)); printf("sHex2StrIP=%s\n", sHex2StrIP); 输出结果: sHex2StrIP="127.0.0.1" 3. htonl()、htons() 将主机IP地址/端口转换成无符号整型的“网络字节顺序(大端或小端模式)”; DWORD dwIP = 0x7f000001; /

Where can I find “SIP Communicator” library [closed]

余生长醉 提交于 2020-01-22 02:32:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm developing Sip Client for Android. And I need this library to complete my project. there is an open source code using this library but i can't find it anywhere 回答1: A well-known open-source Android SIP client CSipSimple relies on PJSIP which has a dual, GPL + probably commercial, license. 回答2: As of Android

Where can I find “SIP Communicator” library [closed]

≯℡__Kan透↙ 提交于 2020-01-22 02:32:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm developing Sip Client for Android. And I need this library to complete my project. there is an open source code using this library but i can't find it anywhere 回答1: A well-known open-source Android SIP client CSipSimple relies on PJSIP which has a dual, GPL + probably commercial, license. 回答2: As of Android

SIP之GB28181注册、注销详解

前提是你 提交于 2020-01-22 01:39:26
GB28181定义了基于SIP架构的视频监控互联规范,而对于多数私有协议实现的监控如果想接入SIP架构,就要借助网关,GB28181规范了实现 SIP 监控域与非SIP 监控域互联。基本注册采用IETF RFC 3261规定的基于数字摘要的挑战应答式安全技术进行注册,具体注册流程: 注册流程说明: a) 1:SIP 代理向SIP 服务器发送 Register 请求; b) 2:SIP 服务器向 SIP 代理发送响应401, 并在响应的消息头 WWW_Authenticate 字段中给出 适合SIP 代理的认证体制和参数; c) 3:SIP 代理重新向SIP 服务器发送 Register 请求, 在请求的 Authorization 字段给出信任书, 包含认证信息; d) 4:SIP 服务器对请求进行验证, 如果检查出 SIP 代理身份合法, 向 SIP 代理发送成功响应 200 OK, 如果身份不合法则发送拒绝服务应答。 注:“SIP代理”这里指的UAC(User Agent Client) "SIP服务器"这里指的是UAS(User Agent Server) 当UAS接收到消息后,回送一个401消息“Unauthorized”在消息包头添加如下字段 WWW-Authenticate: Digest realm="3402000000",qop="auth",nonce=

SIP相关

让人想犯罪 __ 提交于 2020-01-21 15:45:37
SDP包 其中的Connection Information 后面的192.168.11.105 就是RTP的IP地址 audio 后面的5100 就是RTP 的端口。 RTP/AVP 后面的0 8 101 表示支持的编码 0 表示G.711 Ulaw, 8表示G.711的Alaw,101 是表示 支持电话按键事件 后面的很多Media Attribute 是对媒体属性的具体描述。 总结一下:SDP 的核心有几个: A.说明媒体的来源IP地址 B.说明媒体的来源的端口port C.说明自己有哪些媒体能力(能说几个语言) D.包括对dtmf 按键的是否支持是说明。 一旦两个软电话要对话,就要对比交换上面这些信息。比如FreeSwitch默认要求rfc2833模式的 DTMF按键(上面抓包里面的rtpmap:101 telephone-event/8000),但是假如软电话上没有设置rfc2833的 DTMF,那么SDP就没有101,协商就不会成功,从而导致通话无法建立。 编码占用带宽 VOIP的数据包包括SIP 数据包和RTP 数据包,SIP只是传输控制命令,跟RTP的语音媒体数据包比较 起来简直就是九牛一毛,完全可以忽略不计。 下面仅仅计算RTP的数据包 RTP的数据包=以太网地址+IP类型+IP包头+UDP包头+RTP包头+语音编码之后的负载 以太网地址12字节 IP类型2字节

Is sprop-parameter-sets or profile-level-id the SDP parameter required to decode H264?

孤人 提交于 2020-01-21 05:19:24
问题 I'm trying to understand what is the required parameter in SDP to be able to decode H264 from RTP packets. This is an related to this question, for the answer to that one works only in small number of cases. Example I am streaming from VLC with the following command. vlc -vvv sample_video/big_buck_bunny_480p_h264.mov --sout '#transcode{vcodec=h264,vb=700,fps=20,scale=0.25,acodec=none}:rtp{dst=10.5.110.117,port=5004,ttl=1}' This transcodes the video to: Bitrate: 700kbps Frame rate: 20 per