同时在Android两个pjsua应用 [英] Two pjsua application at the same time on Android

查看:1408
本文介绍了同时在Android两个pjsua应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个应用程序,使用pjsua。但我不能在同一时间一个Android设备上同时运行。运行第二个应用程序后,它与异常崩溃:

I have two application, that uses pjsua. But I can not run both at the same time on a single android device. After running second application it crashes with exception:

java.lang.Exception的:标题:pjsua_transport_create(类型,和放大器; TCFG,
  &安培; TID)06-26 14:49:56.355 code:120098 06-26 14:49:56.355
  说明:地址已在使用06-26 14:49:56.355地点:结果
  ../src/pjsua2/endpoint.cpp:1519 06-26 14:49:56.355 14:49:56.361结果
  pjsua_core.c PJSUA状态变为:INIT - >启动06-26
  14:49:56.355 14:49:56.362 sip_endpoint.c .Module
  MOD-不请自来,MWI注册06-26 14:49:56.360
  28512-28512 / com.lemondo.biz.intelphone I / System.out的:14:49:56.363结果
  pjsua_core.c .PJSUA状态变为:开始 - >运行06-26
  14:49:56.365 A / libc中:../src/pjsua-lib/pjsua_acc.c:404:
  pjsua_acc_add:断言pjsua_var.tpdata [0] .data.ptr =((无效*)0)!
  失败

java.lang.Exception: Title: pjsua_transport_create(type, &tcfg, &tid) 06-26 14:49:56.355 Code: 120098 06-26 14:49:56.355 Description: Address already in use 06-26 14:49:56.355 Location:
../src/pjsua2/endpoint.cpp:1519 06-26 14:49:56.355 14:49:56.361
pjsua_core.c PJSUA state changed: INIT --> STARTING 06-26 14:49:56.355 14:49:56.362 sip_endpoint.c .Module "mod-unsolicited-mwi" registered 06-26 14:49:56.360 28512-28512/com.lemondo.biz.intelphone I/System.out﹕ 14:49:56.363
pjsua_core.c .PJSUA state changed: STARTING --> RUNNING 06-26 14:49:56.365 A/libc﹕ ../src/pjsua-lib/pjsua_acc.c:404: pjsua_acc_add: assertion "pjsua_var.tpdata[0].data.ptr != ((void *)0)" failed

你知道我怎么能解决这个问题?

Do you know how I can solve this problem?

推荐答案

设置独特的本地端口(可能在配置中也被描述为绑定端口)为这些应用。对于纯pjsua这是--local-port参数。

Set unique local ports (might be also described as bind ports in configuration) for these applications. For plain pjsua this is --local-port parameter.

这篇关于同时在Android两个pjsua应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆