[Android] Pjsua2 demo app: don't receive call, crash in outbound

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everyone!

I'm trying to figuring out if pjsip is able to correctly support H264 (main
profile) via x264 for an intercom. Due to this I tried compiling pjsip +
ffmpeg (+ x264) for armeabi-v7a.

So far, so good, I'm able to start the application now, but here start the
problems: when I configure a SIP account, it says "registration success,
status=200 (OK)", but when I try to call this device, nothing seem to
happen.

The SIP server uses UDP port 5060 for the SDP communication. I don't see
much configuration, but as it registers, it should even listen on UDP port
5060 for incoming connections... right?

Also, when I try to call a buddy (sip:1 at host), the app just crashes with a
lib error...

May you please help me out?

Thanks!

I/ActivityManager(  266): START {act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=org.pjsip.pjsua2.app/.MainActivity u=0} from pid 468
I/ActivityManager(  266): Start proc org.pjsip.pjsua2.app for activity
org.pjsip.pjsua2.app/.MainActivity: pid=4183 uid=10066 gids={3003, 1006,
1015, 1028}
D/dalvikvm( 4183): Trying to load lib
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so 0x4134b4b8
D/dalvikvm( 4183): Added shared lib
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so 0x4134b4b8
I/System.out( 4183): 12:17:51.115 sip_endpoint.c  .Module "mod-pjsua-log"
registered
I/System.out( 4183): 12:17:51.117 sip_endpoint.c  .Module "mod-pjsua"
registered
I/System.out( 4183): 12:17:51.118   pjsua_core.c  .Trying STUN server
stun.pjsip.org (1 of 1)..
W/ActivityManager(  266): Activity idle timeout for ActivityRecord{415b9a20
org.pjsip.pjsua2.app/.MainActivity}
I/System.out( 4183): 12:20:31.278   pjsua_core.c  .Error starting STUN
socket for stun.pjsip.org: gethostbyname() has returned error (PJ_ERESOLVE)
I/System.out( 4183): 12:20:31.279   pjsua_core.c  .STUN resolution failed:
gethostbyname() has returned error (PJ_ERESOLVE)
I/System.out( 4183): 12:20:31.279   pjsua_core.c  .Ignoring STUN resolution
failure (by setting)
I/System.out( 4183): 12:20:31.342    pjsua_vid.c  ..Initializing video
subsystem..
D/CameraHal(   92): Calling process is: org.pjsip.pjsua2.app
I/System.out( 4183): 12:20:32.210 sip_endpoint.c  .Module "mod-pjsua-pres"
registered
I/System.out( 4183): 12:20:32.210 sip_endpoint.c  .Module "mod-pjsua-im"
registered
I/System.out( 4183): 12:20:32.210 sip_endpoint.c  .Module
"mod-pjsua-options" registered
I/System.out( 4183): 12:20:32.211   pjsua_core.c  .1 SIP worker threads
created
I/System.out( 4183): 12:20:32.211   pjsua_core.c  .pjsua version 2.4.5-svn
for Linux-3.0.8/armv7l initialized
I/System.out( 4183): 12:20:32.211   pjsua_core.c  .PJSUA state changed:
CREATED --> INIT
I/System.out( 4183): 12:20:32.213   pjsua_core.c  SIP UDP socket reachable
at 192.168.0.135:6000
I/System.out( 4183): 12:20:32.216    pjsua_acc.c  Adding account:
id=sip:localhost
I/System.out( 4183): 12:20:32.216    pjsua_acc.c  .Account sip:localhost
added with id 0
I/System.out( 4183): 12:20:32.217   pjsua_core.c  PJSUA state changed: INIT
--> STARTING
I/System.out( 4183): 12:20:32.217   pjsua_core.c  .PJSUA state changed:
STARTING --> RUNNING
I/ActivityManager(  266): Displayed org.pjsip.pjsua2.app/.MainActivity:
+2m41s366ms
I/System.out( 4183): 12:22:07.438    pjsua_acc.c  Modifying account 0
I/System.out( 4183): 12:22:07.439    pjsua_acc.c  .Invalid local URI:
Invalid URI (PJSIP_EINVALIDURI) [status=171039]
I/System.out( 4183): 12:22:07.441    account.cpp  pjsua_acc_modify(id,
&pj_acc_cfg) error: Invalid URI (PJSIP_EINVALIDURI) (status=171039)
[../src/pjsua2/account.cpp:690]
I/System.out( 4183): 12:22:32.704    pjsua_acc.c  Modifying account 0
I/System.out( 4183): 12:22:32.705    pjsua_acc.c  .Acc 0: setting
unregistration..
I/System.out( 4183): 12:22:32.706    pjsua_acc.c  ..Currently not registered
I/System.out( 4183): 12:22:32.706    pjsua_acc.c  .Ignored failure in
unregistering the old account setting in modifying account: Invalid
operation (PJ_EINVALIDOP) [status=70013]
I/System.out( 4183): 12:22:32.706    pjsua_acc.c  .Acc 0: setting
registration..
I/System.out( 4183): 12:22:32.707   pjsua_core.c  ...TX 516 bytes Request
msg REGISTER/cseq=15476 (tdta0x61ebd008) to UDP 192.168.0.201:5060:
I/System.out( 4183): User-Agent: Pjsua2 Android 2.4.5-svn
I/System.out( 4183): 12:22:32.712    pjsua_acc.c  ..Acc 0: Registration sent
I/System.out( 4183): 12:22:32.799   pjsua_core.c !.RX 334 bytes Response
msg 200/REGISTER/cseq=15476 (rdata0x61e92624) from UDP 192.168.0.201:5060:
I/System.out( 4183): 12:22:32.830    pjsua_acc.c  ....SIP outbound status
for acc 0 is not active
I/System.out( 4183): 12:22:32.833    pjsua_acc.c  ....sip:5 at 192.168.0.201:
registration success, status=200 (OK), will re-register in 300 seconds
I/System.out( 4183): 12:22:32.834    pjsua_acc.c  ....Keep-alive timer
started for acc 0, destination:192.168.0.201:5060, interval:15s
I/System.out( 4183): 12:25:29.897   pjsua_pres.c !Adding buddy:
sip:1 at 192.168.0.201
I/System.out( 4183): 12:25:29.897   pjsua_pres.c  .Buddy 0 added.
I/System.out( 4183): 12:25:29.898   pjsua_pres.c  .Buddy 0: unsubscribing
presence..
I/System.out( 4183): 12:25:29.898   pjsua_pres.c  ..Buddy 0: updating
presence..
I/System.out( 4183): 12:25:43.094   pjsua_call.c  Making call with acc #0
to sip:1 at 192.168.0.201
I/System.out( 4183): 12:25:43.094    pjsua_aud.c  .Set sound device:
capture=-1, playback=-2
I/System.out( 4183): 12:25:43.095    pjsua_aud.c  ..Opening sound device
PCM at 16000/1/20ms
I/System.out( 4183): 12:25:43.134  pjsua_media.c  .Call 0: initializing
media..
I/System.out( 4183): 12:25:43.141  pjsua_media.c  ..Media index 0 selected
for audio call 0
I/ActivityManager(  266): START {flg=0x4000000
cmp=org.pjsip.pjsua2.app/.CallActivity u=0} from pid 4183
F/libc    ( 4183): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread
4296 (jsip.pjsua2.app)
I/DEBUG   (   87): pid: 4183, tid: 4296, name: jsip.pjsua2.app  >>>
org.pjsip.pjsua2.app <<<
I/DEBUG   (   87):     #03  pc 002174c4
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
(pjmedia_sdp_neg_create_w_local_offer+244)
I/DEBUG   (   87):     #00  68d1e8e8  688ce564
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
I/DEBUG   (   87):          68d1e904  688ce564
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
I/DEBUG   (   87):          68d1e91c  688cea5c
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so (__PRETTY_FUNCTION__.6192)
I/DEBUG   (   87):          68d1e920  688cea5c
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so (__PRETTY_FUNCTION__.6192)
I/DEBUG   (   87):          68d1e924  687484c8
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
(pjmedia_sdp_neg_create_w_local_offer+248)
I/DEBUG   (   87):     675a1b40 75736a70 00000061 00000000 00000000
pjsua...........
I/DEBUG   (   87):     675a1b40 75736a70 00000061 00000000 00000000
pjsua...........
W/InputDispatcher(  266): channel '41613f60
org.pjsip.pjsua2.app/org.pjsip.pjsua2.app.MainActivity (server)' ~ Consumer
closed input channel or an error occurred.  events=0x9
E/InputDispatcher(  266): channel '41613f60
org.pjsip.pjsua2.app/org.pjsip.pjsua2.app.MainActivity (server)' ~ Channel
is unrecoverably broken and will be disposed!
W/InputDispatcher(  266): Attempted to unregister already unregistered
input channel '41613f60
org.pjsip.pjsua2.app/org.pjsip.pjsua2.app.MainActivity (server)'
I/WindowManager(  266): WINDOW DIED Window{41613f60
org.pjsip.pjsua2.app/org.pjsip.pjsua2.app.MainActivity paused=false}
I/ActivityManager(  266): Process org.pjsip.pjsua2.app (pid 4183) has died.
I/WindowState(  266): WIN DEATH: Window{41613f60
org.pjsip.pjsua2.app/org.pjsip.pjsua2.app.MainActivity paused=false}
W/ActivityManager(  266): Force removing ActivityRecord{418a19a0
org.pjsip.pjsua2.app/.CallActivity}: app died, no saved state
W/ActivityManager(  266): Force removing ActivityRecord{415b9a20
org.pjsip.pjsua2.app/.MainActivity}: app died, no saved state

Giacomo Furlan
Software developer
Software Solutions Designs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20151016/e0551da1/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux