Raspbian and PJSUA - No Sound - Help welcome

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

 



Hello,

I have some trouble with the setup of PJSUA on a Raspberry Pi with Raspbian.

I compiled everything and installed [1], but whenever I try to make a call 
via the pjsua application, I get so sound - in both directions.

I have one cheap USB audio adapter running at my Raspberry. In other 
application this adapter is running, but not with pjusa.

pjmedia-test tells me at the end, everything seems to be okay.

pjystest give me a lot of errors, as I cannot change the clock-rate, which 
is necessary with this device. pjsua gives me the same errors when I leave 
the clock-rate unspecified.

Here the list of my devices:
Audio Device List
Found 6 devices
   0: PA [bcm2835 ALSA: bcm2835 ALSA (hw:0,0)] (0/2)
   1: PA [bcm2835 ALSA: bcm2835 IEC958/HDMI (hw:0,1)] (0/2)
   2: PA [C-Media USB Headphone Set: USB Audio (hw:1,0)] (1/2)
   3: PA [sysdefault] (0/128)
   4: PA [default] (0/128)
   5: PA [dmix] (0/2)

Please find attached the log entries of a sample call[2] executing with the 
following options:
./pjsua-armv6l-unknown-linux-gnueabihf --app-log-level=6 \
    --log-level=6 --snd-clock-rate=48000 --registrar="sip:192.168.0.15" \
    --realm="*" --username="user" --password="pass" --local-port=5061 \
    --no-vad --clock-rate=48000

Does anybody see some irregularities or some mistakes I've made?

I would really appreciate your help!

Best Regards,
Bernhard

[1] Installed upfront: libasound2 libasound2-dev libasound2-plugins 
alsa-utils libportaudio2 portaudio19-dev

[2] I have an asterisk server on localhost (192.168.0.15) and I'm calling 
for test purposes a Gigaset IP-telephone directly - without the asterisk.
-------------- next part --------------
pi at raspberrypi:~/pjproject-2.4.5/pjsip-apps/bin $ ./pjsua-armv6l-unknown-linux-gnueabihf --app-log-level=6 \
   --log-level=6 --snd-clock-rate=48000 --registrar="sip:192.168.0.15" \
   --realm="*" --username="user" --password="pass" --local-port=5061 \
   --no-vad --clock-rate=48000

22:11:16.554 os_core_unix.c !pjlib 2.4.5 for POSIX initialized
22:11:16.563 sip_endpoint.c  .Creating endpoint instance...
22:11:16.566          pjlib  .select() I/O Queue created (0xc32f78)
22:11:16.567 sip_endpoint.c  .Module "mod-msg-print" registered
22:11:16.568 sip_transport.  .Transport manager created.
22:11:16.570   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
22:11:16.572 sip_endpoint.c  .Module "mod-pjsua-log" registered
22:11:16.574 sip_endpoint.c  .Module "mod-tsx-layer" registered
22:11:16.575 sip_endpoint.c  .Module "mod-stateful-util" registered
22:11:16.576 sip_endpoint.c  .Module "mod-ua" registered
22:11:16.578 sip_endpoint.c  .Module "mod-100rel" registered
22:11:16.578 sip_endpoint.c  .Module "mod-pjsua" registered
22:11:16.578 sip_endpoint.c  .Module "mod-invite" registered
22:11:16.823       pa_dev.c  ..PortAudio sound library initialized, status=0
22:11:16.824       pa_dev.c  ..PortAudio host api count=2
22:11:16.825       pa_dev.c  ..Sound device count=6
22:11:16.827          pjlib  ..select() I/O Queue created (0xc622cc)
22:11:16.830   conference.c  ..Creating conference bridge with 254 ports
22:11:16.832   Master/sound  ..Using delay buffer with WSOLA.
22:11:16.884 sip_endpoint.c  .Module "mod-evsub" registered
22:11:16.885 sip_endpoint.c  .Module "mod-presence" registered
22:11:16.887        evsub.c  .Event pkg "presence" registered by mod-presence
22:11:16.888 sip_endpoint.c  .Module "mod-mwi" registered
22:11:16.889        evsub.c  .Event pkg "message-summary" registered by mod-mwi
22:11:16.890 sip_endpoint.c  .Module "mod-refer" registered
22:11:16.891        evsub.c  .Event pkg "refer" registered by mod-refer
22:11:16.891 sip_endpoint.c  .Module "mod-pjsua-pres" registered
22:11:16.893 sip_endpoint.c  .Module "mod-pjsua-im" registered
22:11:16.894 sip_endpoint.c  .Module "mod-pjsua-options" registered
22:11:16.895   pjsua_core.c  .1 SIP worker threads created
22:11:16.896   pjsua_core.c  .pjsua version 2.4.5 for Linux-4.1.13/armv6l/glibc-2.19 initialized
22:11:16.897   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
22:11:16.897 sip_endpoint.c  Module "mod-default-handler" registered
22:11:16.900   pjsua_core.c  SIP UDP socket reachable at 192.168.0.15:5061
22:11:16.903    udp0xc79bf8  SIP UDP transport started, published address is 192.168.0.15:5061
22:11:16.904    pjsua_acc.c  Adding account: id=<sip:192.168.0.15:5061>
22:11:16.905    pjsua_acc.c  .Account <sip:192.168.0.15:5061> added with id 0
22:11:16.906    pjsua_acc.c  Modifying account 0
22:11:16.907    pjsua_acc.c  Acc 0: setting online status to 1..
22:11:16.911     tcptp:5061  SIP TCP listener ready for incoming connections at 192.168.0.15:5061
22:11:16.912    pjsua_acc.c  Adding account: id=<sip:192.168.0.15:5061;transport=TCP>
22:11:16.913    pjsua_acc.c  .Account <sip:192.168.0.15:5061;transport=TCP> added with id 1
22:11:16.915    pjsua_acc.c  Modifying account 1
22:11:16.916    pjsua_acc.c  Acc 1: setting online status to 1..
22:11:16.917   pjsua_core.c  PJSUA state changed: INIT --> STARTING
22:11:16.918 sip_endpoint.c  .Module "mod-unsolicited-mwi" registered
22:11:16.918   pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
22:11:16.918         main.c  Ready: Success
>>>>
Account list:
  [ 0] <sip:192.168.0.15:5061>: does not register
       Online status: Online
 *[ 1] <sip:192.168.0.15:5061;transport=TCP>: does not register
       Online status: Online
Buddy list:
 -none-

+=============================================================================+
|       Call Commands:         |   Buddy, IM & Presence:  |     Account:      |
|                              |                          |                   |
|  m  Make new call            | +b  Add new buddy       .| +a  Add new accnt |
|  M  Make multiple calls      | -b  Delete buddy         | -a  Delete accnt. |
|  a  Answer call              |  i  Send IM              | !a  Modify accnt. |
|  h  Hangup call  (ha=all)    |  s  Subscribe presence   | rr  (Re-)register |
|  H  Hold call                |  u  Unsubscribe presence | ru  Unregister    |
|  v  re-inVite (release hold) |  t  ToGgle Online status |  >  Cycle next ac.|
|  U  send UPDATE              |  T  Set online status    |  <  Cycle prev ac.|
| ],[ Select next/prev call    +--------------------------+-------------------+
|  x  Xfer call                |      Media Commands:     |  Status & Config: |
|  X  Xfer with Replaces       |                          |                   |
|  #  Send RFC 2833 DTMF       | cl  List ports           |  d  Dump status   |
|  *  Send DTMF with INFO      | cc  Connect port         | dd  Dump detailed |
| dq  Dump curr. call quality  | cd  Disconnect port      | dc  Dump config   |
|                              |  V  Adjust audio Volume  |  f  Save config   |
|  S  Send arbitrary REQUEST   | Cp  Codec priorities     |                   |
+-----------------------------------------------------------------------------+
|  q  QUIT   L  ReLoad   sleep MS   echo [0|1|txt]     n: detect NAT type     |
+=============================================================================+
You have 0 active call
>>> m
(You currently have 0 calls)
Buddy list:
 -none-

Choices:
   0         For current dialog.
  -1         All 0 buddies in buddy list
  [1 - 0]    Select from buddy list
  URL        An URL
  <Enter>    Empty input (or 'q') to cancel
Make call: sip:192.168.0.16
22:11:22.965   pjsua_call.c  Making call with acc #1 to sip:192.168.0.16
22:11:22.966    pjsua_aud.c  .Set sound device: capture=-1, playback=-2
22:11:22.967    pjsua_app.c  ..Turning sound device ON
22:11:22.968    pjsua_aud.c  ..Opening sound device PCM at 48000/1/20ms
22:11:22.978       pa_dev.c  ...Opened device C-Media USB Headphone Set: USB Audio (hw:1,0)(ALSA)/C-Media USB Headphone Set: USB Audio (hw:1,0)(ALSA) for recording and playback, sample rate=48000, ch=1, bits=16, 960 samples per frame, input latency=100 ms, output latency=140 ms
22:11:22.979     ec0xc61030  ...Creating AEC
22:11:22.994     ec0xc61030  ...AEC created, clock_rate=48000, channel=1, samples per frame=960, tail length=200 ms, latency=0 ms
22:11:22.996       pa_dev.c  ...Starting C-Media USB Headphone Set: USB Audio (hw:1,0) stream..
22:11:23.001       pa_dev.c  ...Done, status=0
22:11:23.004    dlg0xcfcd04  .UAC dialog created
22:11:23.007   tcpc0xcfd8cc  .TCP client transport created
22:11:23.011     tcptp:5061 !TCP listener 192.168.0.15:5061: got incoming TCP connection from 192.168.0.15:50012, sock=9
22:11:23.014   tcpc0xcfd8cc !.TCP transport 192.168.0.15:50012 is connecting to 192.168.0.15:5061...
22:11:23.016 tcps0xb1d0069c !TCP server transport created
22:11:23.017    pjsua_app.c  SIP TCP transport is connected to [192.168.0.15:50012]
22:11:23.019   tcpc0xcfd8cc  TCP transport 192.168.0.15:50012 is connected to 192.168.0.15:5061
22:11:23.021    pjsua_app.c  SIP TCP transport is connected to [192.168.0.15:5061]
22:11:23.022    dlg0xcfcd04 !..Session count inc to 2 by mod-pjsua
22:11:23.026  pjsua_media.c !.Call 0: initializing media..
22:11:23.025       pa_dev.c !Recorder thread started
22:11:23.036  pjsua_media.c  ..RTP socket reachable at 192.168.0.15:4000
22:11:23.042  pjsua_media.c  ..RTCP socket reachable at 192.168.0.15:4001
22:11:23.044  pjsua_media.c  ..Media index 0 selected for audio call 0
22:11:23.046    dlg0xcfcd04  ..Session count dec to 2 by mod-pjsua
22:11:23.048    dlg0xcfcd04  .Module mod-invite added as dialog usage, data=0xd032d4
22:11:23.050    dlg0xcfcd04  ..Session count inc to 4 by mod-invite
22:11:23.052    dlg0xcfcd04  .Module mod-100rel added as dialog usage, data=0xd03fbc
22:11:23.054    dlg0xcfcd04  .100rel module attached
22:11:23.057    inv0xcfcd04  .UAC invite session created for dialog dlg0xcfcd04
22:11:23.058       endpoint  .Request msg INVITE/cseq=3123 (tdta0xd044d8) created.
22:11:23.062    inv0xcfcd04  ..Sending Request msg INVITE/cseq=3123 (tdta0xd044d8)
22:11:23.064    dlg0xcfcd04  ...Sending Request msg INVITE/cseq=3123 (tdta0xd044d8)
22:11:23.067    tsx0xd064ec  ....Transaction created for Request msg INVITE/cseq=3122 (tdta0xd044d8)
22:11:23.068    tsx0xd064ec  ...Sending Request msg INVITE/cseq=3122 (tdta0xd044d8) in state Null
22:11:23.070  sip_resolve.c  ....Target '192.168.0.16:0' type=Unspecified resolved to '192.168.0.16:5060' type=UDP (UDP transport)
22:11:23.076   pjsua_core.c  ....TX 1105 bytes Request msg INVITE/cseq=3122 (tdta0xd044d8) to UDP 192.168.0.16:5060:
INVITE sip:192.168.0.16 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.15:5061;rport;branch=z9hG4bKPja02f29a0-e25c-4a88-bd0e-3856ce61fc1c
Max-Forwards: 70
From: <sip:192.168.0.15>;tag=0336a46b-8d88-4734-bea2-28e605a53b64
To: sip:192.168.0.16
Contact: <sip:192.168.0.15:5061;ob>
Call-ID: ef9afeb7-173f-4d93-bdaf-247f42a79550
CSeq: 3122 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: PJSUA v2.4.5 Linux-4.1.13/armv6l/glibc-2.19
Content-Type: application/sdp
Content-Length:   473

v=0
o=- 3661708283 3661708283 IN IP4 192.168.0.15
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 9 96
c=IN IP4 192.168.0.15
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.0.15
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16

--end msg--
22:11:23.084    tsx0xd064ec  ....State changed from Null to Calling, event=TX_MSG
22:11:23.085    dlg0xcfcd04  .....Transaction tsx0xd064ec state changed to Calling
22:11:23.091    pjsua_app.c  .......Call 0 state changed to CALLING
>>> 22:11:23.107 os_core_unix.c !Info: possibly re-registering existing thread
22:11:23.109       pa_dev.c !Player thread started
22:11:23.155 sip_endpoint.c !Processing incoming message: Response msg 100/INVITE/cseq=3122 (rdata0xc7b22c)
22:11:23.156   pjsua_core.c  .RX 387 bytes Response msg 100/INVITE/cseq=3122 (rdata0xc7b22c) from UDP 192.168.0.16:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.0.15:5061;rport=5061;branch=z9hG4bKPja02f29a0-e25c-4a88-bd0e-3856ce61fc1c
From: <sip:192.168.0.15>;tag=0336a46b-8d88-4734-bea2-28e605a53b64
To: <sip:192.168.0.16>;tag=1226339705
Call-ID: ef9afeb7-173f-4d93-bdaf-247f42a79550
CSeq: 3122 INVITE
Contact: <sip:192.168.0.16:5060>
User-Agent: C610A IP/42.207.00.000.000
Content-Length: 0


--end msg--
22:11:23.157    tsx0xd064ec  .Incoming Response msg 100/INVITE/cseq=3122 (rdata0xc7b22c) in state Calling
22:11:23.158    tsx0xd064ec  ..State changed from Calling to Proceeding, event=RX_MSG
22:11:23.160    dlg0xcfcd04  ...Received Response msg 100/INVITE/cseq=3122 (rdata0xc7b22c)
22:11:23.161    dlg0xcfcd04  ...Transaction tsx0xd064ec state changed to Proceeding
22:11:23.175 sip_endpoint.c  Processing incoming message: Response msg 180/INVITE/cseq=3122 (rdata0xb1d040cc)
22:11:23.177   pjsua_core.c  .RX 438 bytes Response msg 180/INVITE/cseq=3122 (rdata0xb1d040cc) from UDP 192.168.0.16:5060:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.0.15:5061;rport=5061;branch=z9hG4bKPja02f29a0-e25c-4a88-bd0e-3856ce61fc1c
From: <sip:192.168.0.15>;tag=0336a46b-8d88-4734-bea2-28e605a53b64
To: <sip:192.168.0.16>;tag=1226339705
Call-ID: ef9afeb7-173f-4d93-bdaf-247f42a79550
CSeq: 3122 INVITE
Contact: <sip:192.168.0.16:5060>
Allow-Events: message-summary, refer, ua-profile
User-Agent: C610A IP/42.207.00.000.000
Content-Length: 0


--end msg--
22:11:23.178    tsx0xd064ec  .Incoming Response msg 180/INVITE/cseq=3122 (rdata0xb1d040cc) in state Proceeding
22:11:23.179    tsx0xd064ec  ..State changed from Proceeding to Proceeding, event=RX_MSG
22:11:23.180    dlg0xcfcd04  ...Received Response msg 180/INVITE/cseq=3122 (rdata0xb1d040cc)
22:11:23.181    dlg0xcfcd04  ....Route-set updated
22:11:23.183    dlg0xcfcd04  ...Transaction tsx0xd064ec state changed to Proceeding
22:11:23.184    pjsua_aud.c  .....Conf connect: 1 --> 0
22:11:23.191   conference.c  ......Port 1 (ringback) transmitting to port 0 (C-Media USB Headphone Set: USB Audio (hw:1,0))
22:11:23.192    pjsua_app.c  .....Call 0 state changed to EARLY (180 Ringing)
22:11:24.889 sip_endpoint.c  Processing incoming message: Response msg 200/INVITE/cseq=3122 (rdata0xb1d040cc)
22:11:24.891   pjsua_core.c  .RX 726 bytes Response msg 200/INVITE/cseq=3122 (rdata0xb1d040cc) from UDP 192.168.0.16:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.15:5061;rport=5061;branch=z9hG4bKPja02f29a0-e25c-4a88-bd0e-3856ce61fc1c
From: <sip:192.168.0.15>;tag=0336a46b-8d88-4734-bea2-28e605a53b64
To: <sip:192.168.0.16>;tag=1226339705
Call-ID: ef9afeb7-173f-4d93-bdaf-247f42a79550
CSeq: 3122 INVITE
Contact: <sip:192.168.0.16:5060>
Supported: replaces
Allow-Events: message-summary, refer, ua-profile
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, SUBSCRIBE, NOTIFY, REFER
Content-Type: application/sdp
Content-Length: 205

v=0
o=1000 5018 38 IN IP4 192.168.0.16
s=Mapping
c=IN IP4 192.168.0.16
t=0 0
m=audio 5018 RTP/AVP 0 96
a=rtpmap:0 PCMU/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
a=sendrecv
a=ptime:20

--end msg--
22:11:24.894    tsx0xd064ec  .Incoming Response msg 200/INVITE/cseq=3122 (rdata0xb1d040cc) in state Proceeding
22:11:24.895    tsx0xd064ec  ..State changed from Proceeding to Terminated, event=RX_MSG
22:11:24.897    dlg0xcfcd04  ...Received Response msg 200/INVITE/cseq=3122 (rdata0xb1d040cc)
22:11:24.898    dlg0xcfcd04  ....Route-set updated
22:11:24.898    dlg0xcfcd04  ....Route-set frozen
22:11:24.899    dlg0xcfcd04  ...Transaction tsx0xd064ec state changed to Terminated
22:11:24.899    pjsua_app.c  .....Call 0 state changed to CONNECTING
22:11:24.900    inv0xcfcd04  ....Got SDP answer in Response msg 200/INVITE/cseq=3122 (rdata0xb1d040cc)
22:11:24.900    inv0xcfcd04  ....SDP negotiation done, status=0
22:11:24.901   pjsua_call.c  .....Call 0: remote NAT type is 0 (Unknown)
22:11:24.902  pjsua_media.c  .....Call 0: updating media..
22:11:24.902    pjsua_aud.c  ......Audio channel update..
22:11:24.904          rtp.c  .......pjmedia_rtp_session_init: ses=0xb1d08ef0, default_pt=0, ssrc=0x30bc0c3d
22:11:24.905          rtp.c  .......pjmedia_rtp_session_init: ses=0xb1d09578, default_pt=0, ssrc=0x30bc0c3d
22:11:24.906       stream.c  .......Stream strm0xb1d07044 created
22:11:24.907 strm0xb1d07044  .......Encoder stream started
22:11:24.908 strm0xb1d07044  .......Decoder stream started
22:11:24.911     resample.c  .......resample created: high qualiy, large filter, in/out rate=8000/48000
22:11:24.911     resample.c  .......resample created: high qualiy, large filter, in/out rate=48000/8000
22:11:24.911  pjsua_media.c  ......Audio updated, stream #0: PCMU (sendrecv)
22:11:24.912    pjsua_app.c  .....Call 0 media 0 [type=audio], status is Active
22:11:24.913    pjsua_aud.c  .....Conf disconnect: 1 -x- 0
22:11:24.913   conference.c  ......Port 1 (ringback) stop transmitting to port 0 (C-Media USB Headphone Set: USB Audio (hw:1,0))
22:11:24.913    pjsua_aud.c  .....Conf connect: 3 --> 0
22:11:24.914   conference.c  ......Port 3 (sip:192.168.0.16) transmitting to port 0 (C-Media USB Headphone Set: USB Audio (hw:1,0))
22:11:24.916    pjsua_aud.c  .....Conf connect: 0 --> 3
22:11:24.917   conference.c  ......Port 0 (C-Media USB Headphone Set: USB Audio (hw:1,0)) transmitting to port 3 (sip:192.168.0.16)
22:11:24.917    inv0xcfcd04  ....Received Response msg 200/INVITE/cseq=3122 (rdata0xb1d040cc), sending ACK
22:11:24.918       endpoint  ....Request msg ACK/cseq=3122 (tdta0xb1d0c350) created.
22:11:24.918    dlg0xcfcd04  .....Sending Request msg ACK/cseq=3122 (tdta0xb1d0c350)
22:11:24.918  sip_resolve.c  .....Target '192.168.0.16:5060' type=Unspecified resolved to '192.168.0.16:5060' type=UDP (UDP transport)
22:11:24.919   pjsua_core.c  .....TX 337 bytes Request msg ACK/cseq=3122 (tdta0xb1d0c350) to UDP 192.168.0.16:5060:
ACK sip:192.168.0.16:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.15:5061;rport;branch=z9hG4bKPj90c4cb12-83c7-4906-9e73-b5e2d45dec8e
Max-Forwards: 70
From: <sip:192.168.0.15>;tag=0336a46b-8d88-4734-bea2-28e605a53b64
To: sip:192.168.0.16;tag=1226339705
Call-ID: ef9afeb7-173f-4d93-bdaf-247f42a79550
CSeq: 3122 ACK
Content-Length:  0


--end msg--
22:11:24.921    pjsua_app.c  .....Call 0 state changed to CONFIRMED
22:11:24.922    tsx0xd064ec  Timeout timer event
22:11:24.924    tsx0xd064ec  .State changed from Terminated to Destroyed, event=TIMER
22:11:24.924    tsx0xd064ec  Transaction destroyed!
22:11:25.006 strm0xb1d07044 !RTP status: badpt=0, badssrc=0, dup=0, outorder=0, probation=-1, restart=0

>>>>
Account list:
  [ 0] <sip:192.168.0.15:5061>: does not register
       Online status: Online
 *[ 1] <sip:192.168.0.15:5061;transport=TCP>: does not register
       Online status: Online
Buddy list:
 -none-

+=============================================================================+
|       Call Commands:         |   Buddy, IM & Presence:  |     Account:      |
|                              |                          |                   |
|  m  Make new call            | +b  Add new buddy       .| +a  Add new accnt |
|  M  Make multiple calls      | -b  Delete buddy         | -a  Delete accnt. |
|  a  Answer call              |  i  Send IM              | !a  Modify accnt. |
|  h  Hangup call  (ha=all)    |  s  Subscribe presence   | rr  (Re-)register |
|  H  Hold call                |  u  Unsubscribe presence | ru  Unregister    |
|  v  re-inVite (release hold) |  t  ToGgle Online status |  >  Cycle next ac.|
|  U  send UPDATE              |  T  Set online status    |  <  Cycle prev ac.|
| ],[ Select next/prev call    +--------------------------+-------------------+
|  x  Xfer call                |      Media Commands:     |  Status & Config: |
|  X  Xfer with Replaces       |                          |                   |
|  #  Send RFC 2833 DTMF       | cl  List ports           |  d  Dump status   |
|  *  Send DTMF with INFO      | cc  Connect port         | dd  Dump detailed |
| dq  Dump curr. call quality  | cd  Disconnect port      | dc  Dump config   |
|                              |  V  Adjust audio Volume  |  f  Save config   |
|  S  Send arbitrary REQUEST   | Cp  Codec priorities     |                   |
+-----------------------------------------------------------------------------+
|  q  QUIT   L  ReLoad   sleep MS   echo [0|1|txt]     n: detect NAT type     |
+=============================================================================+
You have 1 active call
Current call id=0 to sip:192.168.0.16 [CONFIRMED]
>>> h
22:11:28.597   pjsua_call.c !Call 0 hanging up: code=0..
22:11:28.598       endpoint  ..Request msg BYE/cseq=3124 (tdta0xc7b218) created.
22:11:28.600    inv0xcfcd04  ..Sending Request msg BYE/cseq=3124 (tdta0xc7b218)
22:11:28.602    dlg0xcfcd04  ...Sending Request msg BYE/cseq=3124 (tdta0xc7b218)
22:11:28.604    tsx0xd064ec  ....Transaction created for Request msg BYE/cseq=3123 (tdta0xc7b218)
22:11:28.605    tsx0xd064ec  ...Sending Request msg BYE/cseq=3123 (tdta0xc7b218) in state Null
22:11:28.607  sip_resolve.c  ....Target '192.168.0.16:5060' type=Unspecified resolved to '192.168.0.16:5060' type=UDP (UDP transport)
22:11:28.609   pjsua_core.c  ....TX 394 bytes Request msg BYE/cseq=3123 (tdta0xc7b218) to UDP 192.168.0.16:5060:
BYE sip:192.168.0.16:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.15:5061;rport;branch=z9hG4bKPjd122ebe7-5884-4622-82d7-1ebcc86d2401
Max-Forwards: 70
From: <sip:192.168.0.15>;tag=0336a46b-8d88-4734-bea2-28e605a53b64
To: sip:192.168.0.16;tag=1226339705
Call-ID: ef9afeb7-173f-4d93-bdaf-247f42a79550
CSeq: 3123 BYE
User-Agent: PJSUA v2.4.5 Linux-4.1.13/armv6l/glibc-2.19
Content-Length:  0


--end msg--
22:11:28.611    tsx0xd064ec  ....State changed from Null to Calling, event=TX_MSG
22:11:28.612    dlg0xcfcd04  .....Transaction tsx0xd064ec state changed to Calling
>>> 22:11:28.725 sip_endpoint.c !Processing incoming message: Response msg 200/BYE/cseq=3123 (rdata0xb1d040cc)
22:11:28.728   pjsua_core.c  .RX 475 bytes Response msg 200/BYE/cseq=3123 (rdata0xb1d040cc) from UDP 192.168.0.16:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.0.15:5061;rport=5061;branch=z9hG4bKPjd122ebe7-5884-4622-82d7-1ebcc86d2401
From: <sip:192.168.0.15>;tag=0336a46b-8d88-4734-bea2-28e605a53b64
To: <sip:192.168.0.16>;tag=1226339705
Call-ID: ef9afeb7-173f-4d93-bdaf-247f42a79550
CSeq: 3123 BYE
Contact: <sip:192.168.0.16:5060>
Supported: replaces
User-Agent: C610A IP/42.207.00.000.000
Allow: INVITE, ACK, CANCEL, BYE, OPTIONS, INFO, SUBSCRIBE, NOTIFY, REFER
Content-Length: 0


--end msg--
22:11:28.730    tsx0xd064ec  .Incoming Response msg 200/BYE/cseq=3123 (rdata0xb1d040cc) in state Calling
22:11:28.731    tsx0xd064ec  ..State changed from Calling to Completed, event=RX_MSG
22:11:28.732    dlg0xcfcd04  ...Received Response msg 200/BYE/cseq=3123 (rdata0xb1d040cc)
22:11:28.732    dlg0xcfcd04  ...Transaction tsx0xd064ec state changed to Completed
22:11:28.733    pjsua_app.c  .....Call 0 is DISCONNECTED [reason=200 (Normal call clearing)]
22:11:28.733    pjsua_app.c  .....Call 0 disconnected, dumping media stats..
22:11:28.734 pjsua_app_comm  .....
  [DISCONNCTD] To: sip:192.168.0.16;tag=1226339705
    Call time: 00h:00m:03s, 1st res in 181 ms, conn in 1918ms
    #0 audio PCMU @8kHz, sendrecv, peer=192.168.0.16:5018
       SRTP status: Not active Crypto-suite:
       RX pt=0, last update:00h:00m:03.549s ago
          total 182pkt 29.1KB (36.4KB +IP hdr) @avg=60.8Kbps/76.0Kbps
          pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   0.252   1.000   0.375   0.244
       TX pt=0, ptime=20, last update:never
          total 0pkt 0B (0B +IP hdr) @avg=0bps/0bps
          pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   0.000   0.000   0.000   0.000
       RTT msec      :   0.000   0.000   0.000   0.000   0.000
22:11:28.736  pjsua_media.c  .....Call 0: deinitializing media..
22:11:28.738 strm0xb1d07044  .......JB summary:
  size=50/eff=50 prefetch=0 level=0
  delay (min/max/avg/dev)=0/0/0/0 ms
  burst (min/max/avg/dev)=0/0/0/0 frames
  lost=0 discard=314 empty=0
22:11:28.739  pjsua_media.c  .......Media stream call00:0 is destroyed
22:11:28.739 tdta0xb1d0c350  ....Destroying txdata Request msg ACK/cseq=3122 (tdta0xb1d0c350)
22:11:28.740   tdta0xd044d8  ....Destroying txdata Request msg INVITE/cseq=3122 (tdta0xd044d8)
22:11:28.740    dlg0xcfcd04  .....Session count dec to 1 by mod-invite
22:11:29.738    pjsua_aud.c  Closing sound device after idle for 1 second(s)
22:11:29.739    pjsua_app.c  .Turning sound device OFF
22:11:29.740    pjsua_aud.c  .Closing C-Media USB Headphone Set: USB Audio (hw:1,0) sound playback device and C-Media USB Headphone Set: USB Audio (hw:1,0) sound capture device

>>>>
q22:11:31.769       pa_dev.c  .Stopping stream..





[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