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

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

 



Back to Eclipse (didn't figure out how to debug the lib in any case)...

I've caught the error memory dump though, it seems there's something wrong
with pjsip_inv_verify_request...

Any help would REALLY be appreciated.

Thanks

10-19 11:30:54.262: I/System.out(15701): 11:30:54.272   pjsua_core.c  .RX
796 bytes Request msg INVITE/cseq=20 (rdata0x61ed162c) from UDP
192.168.0.201:5060:
10-19 11:30:54.262: I/System.out(15701): INVITE sip:5 at 192.168.0.135:6000
SIP/2.0
10-19 11:30:54.262: I/System.out(15701): Via: SIP/2.0/UDP
192.168.0.201:5060;rport;branch=z9hG4bK662530692

10-19 11:30:54.262: I/System.out(15701): From:
<sip:1009901 at 192.168.0.201>;tag=757335712

10-19 11:30:54.262: I/System.out(15701): To: <sip:5 at 192.168.0.135:6000>
10-19 11:30:54.262: I/System.out(15701): Call-ID: 1200370627
10-19 11:30:54.262: I/System.out(15701): CSeq: 20 INVITE
10-19 11:30:54.262: I/System.out(15701): Contact: <
sip:100 at 192.168.0.201:5060>
10-19 11:30:54.262: I/System.out(15701): Content-Type: application/sdp
10-19 11:30:54.262: I/System.out(15701): Max-Forwards: 70
10-19 11:30:54.262: I/System.out(15701): User-Agent: DnakeVoip v1.0
10-19 11:30:54.262: I/System.out(15701): Content-Length:   428
10-19 11:30:54.262: I/System.out(15701):
10-19 11:30:54.262: I/System.out(15701): v=0
10-19 11:30:54.262: I/System.out(15701): o=dnake 801975887 801975887 IN IP4
192.168.0.201
10-19 11:30:54.262: I/System.out(15701): s=dnake
10-19 11:30:54.262: I/System.out(15701): c=IN IP4 192.168.0.201
10-19 11:30:54.262: I/System.out(15701): t=0 0
10-19 11:30:54.262: I/System.out(15701): m=audio 6000 RTP/AVP 0 8 101
10-19 11:30:54.262: I/System.out(15701): a=rtpmap:0 PCMU/8000/1
10-19 11:30:54.262: I/System.out(15701): a=rtpmap:8 PCMA/8000/1
10-19 11:30:54.262: I/System.out(15701): a=rtpmap:101
telephone-event/8000/1
10-19 11:30:54.262: I/System.out(15701): a=fmtp:101 0-11
10-19 11:30:54.262: I/System.out(15701): a=sendrecv
10-19 11:30:54.262: I/System.out(15701): m=video 6200 RTP/AVP 102
10-19 11:30:54.262: I/System.out(15701): a=rtpmap:102 H264/90000
10-19 11:30:54.262: I/System.out(15701): a=fmtp:102
profile-level-id=4D0029; packetization-mode=1
10-19 11:30:54.262: I/System.out(15701): a=ex_fmtp:102 2CIF=1
10-19 11:30:54.262: I/System.out(15701): a=ex_multicast:102 ip=238.9.0.201;
port=6300
10-19 11:30:54.262: I/System.out(15701): a=sendrecv
10-19 11:30:54.262: I/System.out(15701): --end msg--
10-19 11:30:54.262: I/System.out(15701): 11:30:54.275   pjsua_call.c
.Incoming Request msg INVITE/cseq=20 (rdata0x61ed162c)
10-19 11:30:54.262: I/System.out(15701): 11:30:54.277  pjsua_media.c
..Call 0: initializing media..
10-19 11:30:54.272: I/System.out(15701): 11:30:54.279        icetp00
...Creating ICE stream transport with 2 component(s)
10-19 11:30:54.272: I/System.out(15701): 11:30:54.284        icetp00
....Comp 1: host candidate 192.168.0.135:33179 added
10-19 11:30:54.282: I/System.out(15701): 11:30:54.289        icetp00
....Comp 2: host candidate 192.168.0.135:35801 added
10-19 11:30:54.282: I/System.out(15701): 11:30:54.292        icetp00
....ICE stream transport 0x61ea806c created
10-19 11:30:54.282: I/System.out(15701): 11:30:54.293        icetp01
...Creating ICE stream transport with 2 component(s)
10-19 11:30:54.282: I/System.out(15701): 11:30:54.297        icetp01
....Comp 1: host candidate 192.168.0.135:36974 added
10-19 11:30:54.292: I/System.out(15701): 11:30:54.301        icetp01
....Comp 2: host candidate 192.168.0.135:56251 added
10-19 11:30:54.292: I/System.out(15701): 11:30:54.302        icetp01
....ICE stream transport 0x66f95094 created
10-19 11:30:54.292: I/System.out(15701): 11:30:54.302  pjsua_media.c
...Media index 0 selected for audio call 0
10-19 11:30:54.292: I/System.out(15701): 11:30:54.303   pjsua_core.c
.....TX 251 bytes Response msg 100/INVITE/cseq=20 (tdta0x66f99038) to UDP
192.168.0.201:5060:
10-19 11:30:54.292: I/System.out(15701): SIP/2.0 100 Trying
10-19 11:30:54.292: I/System.out(15701): Via: SIP/2.0/UDP
192.168.0.201:5060;rport=5060;received=192.168.0.201;branch=z9hG4bK662530692

10-19 11:30:54.292: I/System.out(15701): Call-ID: 1200370627
10-19 11:30:54.292: I/System.out(15701): From:
<sip:1009901 at 192.168.0.201>;tag=757335712

10-19 11:30:54.292: I/System.out(15701): To: <sip:5 at 192.168.0.135>
10-19 11:30:54.292: I/System.out(15701): CSeq: 20 INVITE
10-19 11:30:54.292: I/System.out(15701): Content-Length:  0
10-19 11:30:54.292: I/System.out(15701):
10-19 11:30:54.292: I/System.out(15701): --end msg--
10-19 11:30:54.292: I/System.out(15701): ======== Incoming call ========
10-19 11:30:54.292: I/System.out(15701): 11:30:54.307   pjsua_call.c
!Answering call 0: code=180
10-19 11:30:54.292: I/System.out(15701): 11:30:54.307   pjsua_call.c
.Pending answering call 0 upon completion of media transport
10-19 11:30:54.292: I/ActivityManager(266): START {flg=0x4000000
cmp=org.pjsip.pjsua2.app/.CallActivity u=0} from pid 15701
10-19 11:30:54.302: I/System.out(15701): 11:30:54.311        icetp00 !ICE
session created, comp_cnt=2, role is Controlled agent
10-19 11:30:54.302: I/System.out(15701): 11:30:54.311        icetp00  ICE
nomination type set to aggressive
10-19 11:30:54.302: D/dpt(266): setPerformanceMode: 0 ;value: 0
10-19 11:30:54.302: I/System.out(15701): 11:30:54.312        icetp00
Candidate 0 added: comp_id=1, type=host, foundation=Hc0a80087, addr=
192.168.0.135:33179, base=192.168.0.135:33179, prio=0x7effffff (2130706431)
10-19 11:30:54.302: I/System.out(15701): 11:30:54.312        icetp00
Candidate 1 added: comp_id=2, type=host, foundation=Hc0a80087, addr=
192.168.0.135:35801, base=192.168.0.135:35801, prio=0x7efffffe (2130706430)
10-19 11:30:54.302: I/System.out(15701): 11:30:54.313        icetp01  ICE
session created, comp_cnt=2, role is Controlled agent
10-19 11:30:54.302: I/System.out(15701): 11:30:54.314        icetp01  ICE
nomination type set to aggressive
10-19 11:30:54.302: I/System.out(15701): 11:30:54.315        icetp01
Candidate 0 added: comp_id=1, type=host, foundation=Hc0a80087, addr=
192.168.0.135:36974, base=192.168.0.135:36974, prio=0x7effffff (2130706431)
10-19 11:30:54.302: I/System.out(15701): 11:30:54.315        icetp01
Candidate 1 added: comp_id=2, type=host, foundation=Hc0a80087, addr=
192.168.0.135:56251, base=192.168.0.135:56251, prio=0x7efffffe (2130706430)
10-19 11:30:54.302: I/System.out(15701): 11:30:54.316        icetp00
Stopping ICE, reason=No ICE found in SDP offer
10-19 11:30:54.302: I/System.out(15701): 11:30:54.317        icetp00
Destroying ICE session 0x66f9c01c
10-19 11:30:54.302: I/System.out(15701): 11:30:54.317        icetp01
Stopping ICE, reason=No ICE found in SDP offer
10-19 11:30:54.302: I/System.out(15701): 11:30:54.317        icetp01
Destroying ICE session 0x66fa001c
10-19 11:30:54.302: A/libc(15701): Fatal signal 11 (SIGSEGV) at 0xdeadbaad
(code=1), thread 15731 (jsip.pjsua2.app)
10-19 11:30:54.332: D/dpt(266): setPerformanceMode: 0 ;value: 0
10-19 11:30:54.402: I/DEBUG(87): *** *** *** *** *** *** *** *** *** ***
*** *** *** *** *** ***
10-19 11:30:54.402: I/DEBUG(87): Build fingerprint:
'rk30sdk/rk30sdk/rk30sdk:4.1.1/JRO03H/20121026.223441:eng/release-keys'
10-19 11:30:54.412: I/DEBUG(87): pid: 15701, tid: 15731, name:
jsip.pjsua2.app  >>> org.pjsip.pjsua2.app <<<
10-19 11:30:54.412: I/DEBUG(87): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR),
fault addr deadbaad
10-19 11:30:54.522: I/DEBUG(87):     r0 00000027  r1 deadbaad  r2 00000182
r3 00000000
10-19 11:30:54.522: I/DEBUG(87):     r4 00000000  r5 68c1e73c  r6 631fdab0
r7 00000078
10-19 11:30:54.522: I/DEBUG(87):     r8 6881dd2c  r9 00100000  sl 631fdab0
fp 68c1e98c
10-19 11:30:54.522: I/DEBUG(87):     ip fffd330c  sp 68c1e738  lr 4002a9d1
pc 4002706e  cpsr 60000030
10-19 11:30:54.522: I/DEBUG(87):     d0  3d73757461747328  d1
5f616964656d6a70
10-19 11:30:54.522: I/DEBUG(87):     d2  696c61765f706473  d3
735f6c2865746164
10-19 11:30:54.522: I/DEBUG(87):     d4  0000000040dc8000  d5
0000014200000000
10-19 11:30:54.522: I/DEBUG(87):     d6  402a57a786c22800  d7
017fa4808f5c28f6
10-19 11:30:54.522: I/DEBUG(87):     d8  0000000000000000  d9
0000000000000000
10-19 11:30:54.522: I/DEBUG(87):     d10 0000000000000000  d11
0000000000000000
10-19 11:30:54.522: I/DEBUG(87):     d12 0000000000000000  d13
0000000000000000
10-19 11:30:54.522: I/DEBUG(87):     d14 0000000000000000  d15
0000000000000000
10-19 11:30:54.522: I/DEBUG(87):     d16 4177fa4808000000  d17
3fe0000000000000
10-19 11:30:54.522: I/DEBUG(87):     d18 0000000000000000  d19
0000000000000000
10-19 11:30:54.522: I/DEBUG(87):     d20 3fc554e7eb0eb47c  d21
3e66376972bea4d0
10-19 11:30:54.522: I/DEBUG(87):     d22 3f4de16b9c24a98f  d23
3fb0f4a31edab38b
10-19 11:30:54.522: I/DEBUG(87):     d24 3fede16b9c24a98f  d25
3fe55559ee5e69f9
10-19 11:30:54.522: I/DEBUG(87):     d26 0000000000000000  d27
0000000000000000
10-19 11:30:54.522: I/DEBUG(87):     d28 0000000000000005  d29
0000000000000000
10-19 11:30:54.522: I/DEBUG(87):     d30 0000000000000000  d31
0000000000000000
10-19 11:30:54.522: I/DEBUG(87):     scr 80000010
10-19 11:30:54.522: I/DEBUG(87): backtrace:
10-19 11:30:54.522: I/DEBUG(87):     #00  pc 0001806e  /system/lib/libc.so
10-19 11:30:54.522: I/DEBUG(87):     #01  pc 0000e2fc  /system/lib/libc.so
(abort+4)
10-19 11:30:54.522: I/DEBUG(87):     #02  pc 0001ee27  /system/lib/libc.so
(__assert2+30)
10-19 11:30:54.522: I/DEBUG(87):     #03  pc 0019c11c
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
(pjsip_inv_verify_request3+2008)
10-19 11:30:54.522: I/DEBUG(87): stack:
10-19 11:30:54.522: I/DEBUG(87):          68c1e6f8  61f3792c
10-19 11:30:54.522: I/DEBUG(87):          68c1e6fc  ce399a7b
10-19 11:30:54.522: I/DEBUG(87):          68c1e700  400536a4
/system/lib/libc.so
10-19 11:30:54.522: I/DEBUG(87):          68c1e704  61ada028
10-19 11:30:54.522: I/DEBUG(87):          68c1e708  400536a4
/system/lib/libc.so
10-19 11:30:54.522: I/DEBUG(87):          68c1e70c  00000001
10-19 11:30:54.522: I/DEBUG(87):          68c1e710  40053754
/system/lib/libc.so
10-19 11:30:54.522: I/DEBUG(87):          68c1e714  40058cf0
10-19 11:30:54.522: I/DEBUG(87):          68c1e718  00000000
10-19 11:30:54.522: I/DEBUG(87):          68c1e71c  4002a9d1
/system/lib/libc.so (_fwalk+32)
10-19 11:30:54.522: I/DEBUG(87):          68c1e720  00000001
10-19 11:30:54.522: I/DEBUG(87):          68c1e724  68c1e73c
10-19 11:30:54.522: I/DEBUG(87):          68c1e728  631fdab0
10-19 11:30:54.522: I/DEBUG(87):          68c1e72c  00000078
10-19 11:30:54.522: I/DEBUG(87):          68c1e730  df0027ad
10-19 11:30:54.522: I/DEBUG(87):          68c1e734  00000000
10-19 11:30:54.522: I/DEBUG(87):     #00  68c1e738  688be30c
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
10-19 11:30:54.522: I/DEBUG(87):          68c1e73c  fffffbdf
10-19 11:30:54.522: I/DEBUG(87):          68c1e740  40049b54
/system/lib/libc.so
10-19 11:30:54.522: I/DEBUG(87):          68c1e744  631fdab0
10-19 11:30:54.522: I/DEBUG(87):          68c1e748  00000078
10-19 11:30:54.522: I/DEBUG(87):          68c1e74c  40029f3d
/system/lib/libc.so (fprintf+16)
10-19 11:30:54.522: I/DEBUG(87):          68c1e750  400536f8
/system/lib/libc.so
10-19 11:30:54.522: I/DEBUG(87):          68c1e754  688be30c
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
10-19 11:30:54.522: I/DEBUG(87):          68c1e758  40049b54
/system/lib/libc.so
10-19 11:30:54.522: I/DEBUG(87):          68c1e75c  4001d300
/system/lib/libc.so (__pthread_clone)
10-19 11:30:54.522: I/DEBUG(87):     #01  68c1e760  68c1e760
10-19 11:30:54.522: I/DEBUG(87):          68c1e764  4002de2b
/system/lib/libc.so (__assert2+34)
10-19 11:30:54.522: I/DEBUG(87):     #02  68c1e768  0000046f
10-19 11:30:54.522: I/DEBUG(87):          68c1e76c  688bf220
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so (__PRETTY_FUNCTION__.9894)
10-19 11:30:54.522: I/DEBUG(87):          68c1e770  688bf220
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so (__PRETTY_FUNCTION__.9894)
10-19 11:30:54.522: I/DEBUG(87):          68c1e774  686cd120
/data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
(pjsip_inv_verify_request3+2012)
10-19 11:30:54.522: I/DEBUG(87): memory near r5:
10-19 11:30:54.522: I/DEBUG(87):     68c1e71c 4002a9d1 00000001 68c1e73c
631fdab0  ... at ....<..h...c
10-19 11:30:54.522: I/DEBUG(87):     68c1e72c 00000078 df0027ad 00000000
688be30c  x....'.........h
10-19 11:30:54.522: I/DEBUG(87):     68c1e73c fffffbdf 40049b54 631fdab0
00000078  ....T.. at ...cx...
10-19 11:30:54.522: I/DEBUG(87):     68c1e74c 40029f3d 400536f8 688be30c
40049b54  =.. at .6.@xxxxx..@
10-19 11:30:54.522: I/DEBUG(87):     68c1e75c 4001d300 68c1e760 4002de2b
0000046f  ...@`..h+.. at o...
10-19 11:30:54.522: I/DEBUG(87): memory near r6:
10-19 11:30:54.522: I/DEBUG(87):     631fda90 75736a00 00000061 00000000
00000007  .jsua...........
10-19 11:30:54.522: I/DEBUG(87):     631fdaa0 00000005 ffffffff 12000008
ffffffff  ................
10-19 11:30:54.522: I/DEBUG(87):     631fdab0 75736a70 00000061 00000000
00000000  pjsua...........
10-19 11:30:54.522: I/DEBUG(87):     631fdac0 00000000 00000000 00000000
00000000  ................
10-19 11:30:54.522: I/DEBUG(87):     631fdad0 62027900 686a67b4 00000000
00000000  .y.b.gjh........
10-19 11:30:54.522: I/DEBUG(87): memory near r8:
10-19 11:30:54.532: I/DEBUG(87):     6881dd0c ebffff68 e1a03000 e1a00003
e24bd004  h....0........K.
10-19 11:30:54.532: I/DEBUG(87):     6881dd1c e8bd8800 000edde8 000d8244
000edd78  ........D...x...
10-19 11:30:54.532: I/DEBUG(87):     6881dd2c e92d4800 e28db004 e24dd018
e50b0018  .H-.......M.....
10-19 11:30:54.532: I/DEBUG(87):     6881dd3c e51b3018 e50b3008 e59f30b0
e08f3003  .0...0...0...0..
10-19 11:30:54.532: I/DEBUG(87):     6881dd4c e5933000 e1a00003 e51b1008
eb0002c1  .0..............
10-19 11:30:54.532: I/DEBUG(87): memory near r9:
10-19 11:30:54.532: I/DEBUG(87):     000fffe0 ffffffff ffffffff ffffffff
ffffffff  ................
10-19 11:30:54.532: I/DEBUG(87):     000ffff0 ffffffff ffffffff ffffffff
ffffffff  ................
10-19 11:30:54.532: I/DEBUG(87):     00100000 ffffffff ffffffff ffffffff
ffffffff  ................
10-19 11:30:54.532: I/DEBUG(87):     00100010 ffffffff ffffffff ffffffff
ffffffff  ................
10-19 11:30:54.532: I/DEBUG(87):     00100020 ffffffff ffffffff ffffffff
ffffffff  ................
10-19 11:30:54.532: I/DEBUG(87): memory near sl:
10-19 11:30:54.532: I/DEBUG(87):     631fda90 75736a00 00000061 00000000
00000007  .jsua...........
10-19 11:30:54.532: I/DEBUG(87):     631fdaa0 00000005 ffffffff 12000008
ffffffff  ................
10-19 11:30:54.532: I/DEBUG(87):     631fdab0 75736a70 00000061 00000000
00000000  pjsua...........
10-19 11:30:54.532: I/DEBUG(87):     631fdac0 00000000 00000000 00000000
00000000  ................
10-19 11:30:54.532: I/DEBUG(87):     631fdad0 62027900 686a67b4 00000000
00000000  .y.b.gjh........
10-19 11:30:54.532: I/DEBUG(87): memory near fp:
10-19 11:30:54.532: I/DEBUG(87):     68c1e96c 00000000 00000000 00000000
00000000  ................
10-19 11:30:54.532: I/DEBUG(87):     68c1e97c 00000000 00000002 688ffca4
68c1e9dc  ...........h...h
10-19 11:30:54.532: I/DEBUG(87):     68c1e98c 6869afa8 61eace04 00000000
61e8706c  ..ih...a....lp.a
10-19 11:30:54.532: I/DEBUG(87):     68c1e99c 68c1e9b4 689157cc 00000000
68c1e9dc  ...h.W.h.......h
10-19 11:30:54.532: I/DEBUG(87):     68c1e9ac 00000000 00000000 00000000
61eace04  ...............a
10-19 11:30:54.532: I/DEBUG(87): memory near sp:
10-19 11:30:54.532: I/DEBUG(87):     68c1e718 00000000 4002a9d1 00000001
68c1e73c  ....... at ....<..h
10-19 11:30:54.532: I/DEBUG(87):     68c1e728 631fdab0 00000078 df0027ad
00000000  ...cx....'......
10-19 11:30:54.532: I/DEBUG(87):     68c1e738 688be30c fffffbdf 40049b54
631fdab0  ...h....T.. at ...c
10-19 11:30:54.532: I/DEBUG(87):     68c1e748 00000078 40029f3d 400536f8
688be30c  x...=.. at .6.@...h
10-19 11:30:54.532: I/DEBUG(87):     68c1e758 40049b54 4001d300 68c1e760
4002de2b  T.. at ...@`..h+..@
10-19 11:30:54.532: I/DEBUG(87): code around pc:
10-19 11:30:54.532: I/DEBUG(87):     4002704c e000b164 6823461c d1fb2b00
68e3e026  d....F#h.+..&..h
10-19 11:30:54.532: I/DEBUG(87):     4002705c 4a17b123 447a2401 47986014
20274911  #..J.$zD.`.G.I'
10-19 11:30:54.532: I/DEBUG(87):     4002706c 70082400 e876f7f5 f7f62106
a902e9b6  .$.p..v..!......
10-19 11:30:54.532: I/DEBUG(87):     4002707c f04f2006 460a5380 94029304
f7f59403  . O..S.F........
10-19 11:30:54.532: I/DEBUG(87):     4002708c 4629ed94 20024622 ed9cf7f5
e862f7f5  ..)F"F. ......b.
10-19 11:30:54.532: I/DEBUG(87): code around lr:
10-19 11:30:54.532: I/DEBUG(87):     4002a9b0 41f0e92d 4c0b2600 447c4680
68a56824  -..A.&.L.F|D$h.h
10-19 11:30:54.532: I/DEBUG(87):     4002a9c0 e0076867 300cf9b5 dd022b00
47c04628  gh.....0.+..(F.G
10-19 11:30:54.532: I/DEBUG(87):     4002a9d0 35544306 d5f53f01 2c006824
4630d1ef  .CT5.?..$h.,..0F
10-19 11:30:54.532: I/DEBUG(87):     4002a9e0 81f0e8bd 00028b26 43f0e92d
fb01461f  ....&...-..C.F..
10-19 11:30:54.532: I/DEBUG(87):     4002a9f0 f8dff602 b0878058 44f8460c
8000f8d8  ....X....F.D....
10-19 11:30:54.532: I/DEBUG(87): memory map around fault addr deadbaad:
10-19 11:30:54.532: I/DEBUG(87):     be950000-be971000 [stack]
10-19 11:30:54.532: I/DEBUG(87):     (no map for address)
10-19 11:30:54.532: I/DEBUG(87):     ffff0000-ffff1000 [vectors]

Giacomo Furlan
Software developer
Software Solutions Designs

2015-10-19 8:50 GMT+02:00 Giacomo Furlan <giacomo.furlan at be-ssd.com>:

> Good morning,
>
> I'd like to debug the library. In order to do so, I'd like to compile the
> library inside of Android Studio (which from 1.4 I think it supports NDK
> debugging). The problem is now that it can't
>
> I've set the gradle version to 2.5:
>
> distributionBase=GRADLE_USER_HOME
> distributionPath=wrapper/dists
> zipStoreBase=GRADLE_USER_HOME
> zipStorePath=wrapper/dists
> distributionUrl=https\://services.gradle.org/distributions/gradle-2.5-all.zip
>
> Then I've set the Android build tools to gradle-experimental 0.2.0 (to enable NDK debugging):
>
> buildscript {
>     repositories {
>         jcenter()
>     }
>     dependencies {
>         classpath 'com.android.tools.build:gradle-experimental:0.2.0'
>     }
> }
>
> allprojects {
>     repositories {
>         jcenter()
>     }
> }
>
> Eventually I've set the project as follows:
>
> apply plugin: 'com.android.model.application'
>
> model {
>     android {
>         compileSdkVersion = 15
>         buildToolsVersion = "23.0.1"
>
>         defaultConfig.with {
>             applicationId = "org.pjsip.pjsua2.app"
>             minSdkVersion.apiLevel = 11
>             targetSdkVersion.apiLevel = 15
>             versionCode = 1
>             versionName = "1.0"
>         }
>     }
>
>     android.ndk {
>         CFlags += "-I/home/elegos/src/pjproject/pjlib/include"
>     }
>
>     android.buildTypes {
>         release {
>             minifyEnabled = false
>             proguardFiles  += file('proguard-rules.txt')
>
>             ndk.with {
>                 debuggable = true
>             }
>         }
>     }
>
>     android.sources {
>         main {
>             java {
>                 source {
>                     srcDir 'src'
>                 }
>             }
>
>             jni {
>                 source {
>                     srcDir '/home/elegos/src/pjproject/pjlib/src'
>                 }
>             }
>         }
>     }
>
>     android.ndk {
>         moduleName = "libpjsua2"
>     }
> }
>
> dependencies {
>     compile fileTree(dir: 'libs', include: ['*.jar'])
> }
>
> Still it now complains about not finding "pj/compat/sprintf.h", "Error:(54, 5) error: expected ':', ',', ';', '}' or '__attribute__' before 'pj_sock_t'" (in ioqueue_linux_kernel.c)...
>
> What am I doing wrong?
>
> Alternatviely, is it possible to debug the code in Eclipse? If yes, how?
>
> Thanks
>
>
>
> Giacomo Furlan
> Software developer
> Software Solutions Designs
>
> 2015-10-16 12:46 GMT+02:00 Giacomo Furlan <giacomo.furlan at be-ssd.com>:
>
>> Ok, I read through the log and found out I had to call on port 6000...
>> did, call received, but as soon as I received the call, the crash happens
>> again!
>>
>> W/ActivityManager(  266): No content provider found for permission
>> revoke: file:///data/local/tmp/Pjsua2.apk
>> W/ActivityManager(  266): No content provider found for permission
>> revoke: file:///data/local/tmp/Pjsua2.apk
>> I/PackageManager(  266): Running dexopt on: org.pjsip.pjsua2.app
>> I/ActivityManager(  266): Force stopping package org.pjsip.pjsua2.app
>> uid=10066
>> D/PackageManager(  266): New package installed in
>> /data/app/org.pjsip.pjsua2.app-1.apk
>> W/PackageManager(  266): Not granting permission
>> android.permission.READ_LOGS to package org.pjsip.pjsua2.app
>> (protectionLevel=50 flags=0x8be46)
>> D/BackupManagerService(  266): Received broadcast Intent {
>> act=android.intent.action.PACKAGE_ADDED dat=package:org.pjsip.pjsua2.app
>> flg=0x8000010 (has extras) }
>> D/PackageBroadcastService(  731): Received broadcast
>> action=android.intent.action.PACKAGE_ADDED and uri=org.pjsip.pjsua2.app
>> I/ConfigFetchService(  731): onStartCommand Intent {
>> act=android.intent.action.PACKAGE_ADDED dat=package:org.pjsip.pjsua2.app
>> cmp=com.google.android.gms/.config.ConfigFetchService (has extras) }
>> I/ActivityManager(  266): START {act=android.intent.action.MAIN
>> cat=[android.intent.category.LAUNCHER] flg=0x10000000
>> cmp=org.pjsip.pjsua2.app/.MainActivity u=0} from pid 5308
>> I/ActivityManager(  266): Start proc org.pjsip.pjsua2.app for activity
>> org.pjsip.pjsua2.app/.MainActivity: pid=5320 uid=10066 gids={3003, 1006,
>> 1015, 1028}
>> D/dalvikvm( 5320): Trying to load lib
>> /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so 0x4134bfd8
>> D/dalvikvm( 5320): Added shared lib
>> /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so 0x4134bfd8
>> I/System.out( 5320): 12:42:33.674 sip_endpoint.c  .Module "mod-pjsua-log"
>> registered
>> I/System.out( 5320): 12:42:33.677 sip_endpoint.c  .Module "mod-pjsua"
>> registered
>> I/System.out( 5320): 12:42:33.714    pjsua_vid.c  ..Initializing video
>> subsystem..
>> D/CameraHal(   92): Calling process is: org.pjsip.pjsua2.app
>> I/System.out( 5320): 12:42:34.682 sip_endpoint.c  .Module
>> "mod-pjsua-pres" registered
>> I/System.out( 5320): 12:42:34.683 sip_endpoint.c  .Module "mod-pjsua-im"
>> registered
>> I/System.out( 5320): 12:42:34.683 sip_endpoint.c  .Module
>> "mod-pjsua-options" registered
>> I/System.out( 5320): 12:42:34.683   pjsua_core.c  .1 SIP worker threads
>> created
>> I/System.out( 5320): 12:42:34.684   pjsua_core.c  .pjsua version
>> 2.4.5-svn for Linux-3.0.8/armv7l initialized
>> I/System.out( 5320): 12:42:34.684   pjsua_core.c  .PJSUA state changed:
>> CREATED --> INIT
>> I/System.out( 5320): 12:42:34.687   pjsua_core.c  SIP UDP socket
>> reachable at 192.168.0.135:6000
>> I/System.out( 5320): 12:42:34.689   pjsua_core.c  PJSUA state changed:
>> INIT --> STARTING
>> I/System.out( 5320): 12:42:34.690   pjsua_core.c  .PJSUA state changed:
>> STARTING --> RUNNING
>> I/System.out( 5320): 12:42:34.693    pjsua_acc.c  Adding account:
>> id=sip:localhost
>> I/System.out( 5320): 12:42:34.693    pjsua_acc.c  .Account sip:localhost
>> added with id 0
>> I/ActivityManager(  266): Displayed org.pjsip.pjsua2.app/.MainActivity:
>> +1s305ms
>> I/System.out( 5320): 12:43:38.824    pjsua_acc.c  Modifying account 0
>> I/System.out( 5320): 12:43:38.825    pjsua_acc.c  .Acc 0: setting
>> unregistration..
>> I/System.out( 5320): 12:43:38.827    pjsua_acc.c  ..Currently not
>> registered
>> I/System.out( 5320): 12:43:38.828    pjsua_acc.c  .Ignored failure in
>> unregistering the old account setting in modifying account: Invalid
>> operation (PJ_EINVALIDOP) [status=70013]
>> I/System.out( 5320): 12:43:38.831    pjsua_acc.c  .Acc 0: setting
>> registration..
>> I/System.out( 5320): 12:43:38.837   pjsua_core.c  ...TX 516 bytes Request
>> msg REGISTER/cseq=12409 (tdta0x66f45438) to UDP 192.168.0.201:5060:
>> I/System.out( 5320): User-Agent: Pjsua2 Android 2.4.5-svn
>> I/System.out( 5320): 12:43:38.845    pjsua_acc.c  ..Acc 0: Registration
>> sent
>> I/System.out( 5320): 12:43:38.942   pjsua_core.c !.RX 335 bytes Response
>> msg 200/REGISTER/cseq=12409 (rdata0x61ed162c) from UDP 192.168.0.201:5060
>> :
>> I/System.out( 5320): 12:43:38.952    pjsua_acc.c  ....SIP outbound status
>> for acc 0 is not active
>> I/System.out( 5320): 12:43:38.958    pjsua_acc.c  ....sip:5 at 192.168.0.201:
>> registration success, status=200 (OK), will re-register in 300 seconds
>> I/System.out( 5320): 12:43:38.961    pjsua_acc.c  ....Keep-alive timer
>> started for acc 0, destination:192.168.0.201:5060, interval:15s
>> I/System.out( 5320): 12:44:53.156   pjsua_core.c  .RX 798 bytes Request
>> msg INVITE/cseq=20 (rdata0x61ed162c) from UDP 192.168.0.201:5060:
>> I/System.out( 5320): 12:44:53.178   pjsua_call.c  .Incoming Request msg
>> INVITE/cseq=20 (rdata0x61ed162c)
>> I/System.out( 5320): 12:44:53.183  pjsua_media.c  ..Call 0: initializing
>> media..
>> I/System.out( 5320): 12:44:53.195  pjsua_media.c  ...Media index 0
>> selected for audio call 0
>> I/System.out( 5320): 12:44:53.196   pjsua_core.c  .....TX 251 bytes
>> Response msg 100/INVITE/cseq=20 (tdta0x66f96220) to UDP
>> 192.168.0.201:5060:
>> I/System.out( 5320): 12:44:53.201   pjsua_call.c !Answering call 0:
>> code=180
>> I/System.out( 5320): 12:44:53.203   pjsua_call.c  .Pending answering call
>> 0 upon completion of media transport
>> I/ActivityManager(  266): START {flg=0x4000000
>> cmp=org.pjsip.pjsua2.app/.CallActivity u=0} from pid 5320
>> F/libc    ( 5320): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1),
>> thread 5350 (jsip.pjsua2.app)
>> I/DEBUG   (   87): pid: 5320, tid: 5350, name: jsip.pjsua2.app  >>>
>> org.pjsip.pjsua2.app <<<
>> I/DEBUG   (   87):     #03  pc 0019c11c
>> /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
>> (pjsip_inv_verify_request3+2008)
>> I/DEBUG   (   87):     #00  68d1e738  689be30c
>> /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
>> I/DEBUG   (   87):          68d1e754  689be30c
>> /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
>> I/DEBUG   (   87):          68d1e76c  689bf220
>> /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so (__PRETTY_FUNCTION__.9894)
>> I/DEBUG   (   87):          68d1e770  689bf220
>> /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so (__PRETTY_FUNCTION__.9894)
>> I/DEBUG   (   87):          68d1e774  687cd120
>> /data/data/org.pjsip.pjsua2.app/lib/libpjsua2.so
>> (pjsip_inv_verify_request3+2012)
>> I/DEBUG   (   87):     631fdab0 75736a70 00000061 00000000 00000000
>> pjsua...........
>> I/DEBUG   (   87):     631fdab0 75736a70 00000061 00000000 00000000
>> pjsua...........
>> I/WindowState(  266): WIN DEATH: Window{417f46d0
>> org.pjsip.pjsua2.app/org.pjsip.pjsua2.app.MainActivity paused=false}
>> I/ActivityManager(  266): Process org.pjsip.pjsua2.app (pid 5320) has
>> died.
>> W/ActivityManager(  266): Force removing ActivityRecord{41611028
>> org.pjsip.pjsua2.app/.CallActivity}: app died, no saved state
>> W/ActivityManager(  266): Force removing ActivityRecord{4174b710
>> org.pjsip.pjsua2.app/.MainActivity}: app died, no saved state
>>
>> Giacomo Furlan
>> Software developer
>> Software Solutions Designs
>>
>> 2015-10-16 12:30 GMT+02:00 Giacomo Furlan <giacomo.furlan at be-ssd.com>:
>>
>>> 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/20151019/9dce331b/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