How Does Linphone Toggle SIP Contact?
来源:互联网 发布:mysql删除自增长 编辑:程序博客网 时间:2024/06/05 08:45
- Linphone client monitors the user’s contact info, if changed use LibLinphone to synchronize the contact.
- How synchronize?
- Linphone use a struct named LinphonePorxy to manager the settings of Linphone, all changed contact info should should save to Linphone Core Store via it.
- In order to toggle the contact, firstly validate new contact info. Only all details are correct, it will turn to next, otherwise do alert that “Toggle Contact Failed!”
- If all the new contact info has passed the checks, Liblinphone can use its methods to Unregister the old contact and then REGISTER new contact.
- In the codes, just use both methods
linphone_proxy_config_edit(cfg);
andlinphone_proxy_config_done(cfg);
to stop a struct named Refresher, then the refresher can automatically send a SIP REGISTER message with “Expires: 0” to OpenSIPS. Although SIP server will send a “401 Unauthorized” message, linphone will discard the stateless response [401] - Then, use
linphone_core_add_proxy_config(lc, proxycfg)
to set a new proxy to “Linphone Core”. In this method, it will send a new REGISTER message with new contact info and “Expires: 3600” to register the newly contact.
- In the codes, just use both methods
0 0
- How Does Linphone Toggle SIP Contact?
- 开源sip电话 linphone
- linphone sip 处理
- linphone之sip分析
- Sip 注册和Linphone结构图
- LinPhone开发文档一:SIP和VOIP简单介绍
- Android上试用Linphone(Free SIP VOIP Client)
- linphone-获取sip:name@192.168.1.24中的name
- How does netstat work
- How Does it End()?
- How does XVCL work?
- How does JNA work?
- How does cas work
- how does wifi work?
- How MySQL Does Sorting
- how does RemoteFX works?
- How does google work
- How does browsersync work?
- java中泛型小结
- 常见报错
- [华为机试练习题]11.最大递减数
- linux下安装boost
- CODEVS1039
- How Does Linphone Toggle SIP Contact?
- Android应用程序打包时,出现错误:"XXX" is not translated in "af" (Afrikaans), "am" (Amharic), "ar" (Arabic).....
- Spring配置文件中突然出现异常Referenced file contains errors
- ASP.NET导入Excel到数据库(SQL)
- CorePlot学习
- 按比例布局
- 数据挖掘中,分类与聚类的区别
- JAVA_OPTS各参数的含意及配置
- hdu 3394 railway (BCC缩点)