Hi, I'm new to sofia and I'm playing with the sofsip demo application
(version 0.16) to get familiar with the stack and a fully functional
example.
But I'm having an error, which I can't figure out how to fix. In one of
the clients (I'm running 2 clients in different boxes) I get this error:
** (<unknown>:28760): CRITICAL **: priv_update_tx_elements: assertion
`self->sm_udpsink != NULL' failed
Then I can't see any RTP traffic between the 2 boxes (I can see the SIP
signaling, which seems fine). At the end I pasted the complete log for
both clients.
Also, in the box I get that error, I can only run sofsip under GDB,
otherwise I get a SIGSEGV with this backtrace:
#0 __strlen_sse2 () at ../sysdeps/x86_64/multiarch/../strlen.S:31
#1 0x00007fae08493d52 in g_strdup () from /lib/libglib-2.0.so.0
#2 0x00007fae08b59420 in g_value_set_string () from
/usr/lib/libgobject-2.0.so.0
#3 0x000000000040dcb5 in ssc_media_get_property (object=0x1ce9000, prop_id=1,
value=0x7fff80df15f0, pspec=0x1ce2500) at ssc_media.c:229
#4 0x00007fae08b3566c in g_object_get_valist () from
/usr/lib/libgobject-2.0.so.0
#5 0x00007fae08b35984 in g_object_get () from /usr/lib/libgobject-2.0.so.0
#6 0x00000000004090fe in priv_media_state_cb (context=0x1ce9000, state=2,
data=0x1d11810) at ssc_sip.c:891
#7 0x00007fae08b30a6e in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#8 0x00007fae08b46de7 in ?? () from /usr/lib/libgobject-2.0.so.0
#9 0x00007fae08b482a6 in g_signal_emit_valist () from
/usr/lib/libgobject-2.0.so.0
#10 0x00007fae08b485f8 in g_signal_emit_by_name () from
/usr/lib/libgobject-2.0.so.0
#11 0x000000000040e423 in ssc_media_signal_state_change (sscm=0x1ce9000,
state=sm_active) at ssc_media.c:441
#12 0x000000000040fd44 in priv_cb_ready (netsocket=0x0, data=0x1ce9000) at
ssc_media_gst.c:624
#13 0x000000000040f513 in priv_setup_rtpelements (self=0x1ce9000) at
ssc_media_gst.c:497
#14 0x000000000040ef8f in priv_activate_gst (parent=0x1ce9000) at
ssc_media_gst.c:354
#15 0x000000000040e123 in ssc_media_activate (self=0x1ce9000) at ssc_media.c:368
#16 0x000000000040936d in ssc_answer (ssc=0x1ce8200, status=200,
phrase=0x419728 "OK") at ssc_sip.c:957
#17 0x0000000000406302 in sofsip_handle_input_cb (input=0x1d11da0 "a") at
sofsip_cli.c:410
#18 0x00007fae0821b19e in rl_callback_read_char () from /lib/libreadline.so.6
#19 0x0000000000406d1a in ssc_input_read_char () at ssc_input.c:108
#20 0x0000000000406089 in sofsip_handle_input (cli=0x7fff80df2280, w=0x1ce7df0,
p=0x0) at sofsip_cli.c:365
#21 0x00007fae099123ed in ?? () from /usr/lib/libsofia-sip-ua-glib.so.3
#22 0x00007fae08473342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#23 0x00007fae084772a8 in ?? () from /lib/libglib-2.0.so.0
#24 0x00007fae084777b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#25 0x0000000000405afa in sofsip_mainloop_run (cli=0x7fff80df2280) at
sofsip_cli.c:208
#26 0x00000000004059d6 in main (ac=1, av=0x7fff80df2418) at sofsip_cli.c:173
I hope it is OK to ask about problems with sofsip here. Any pointers
would help, since I'm not familiar either with sofia, sofsip or
gstreamer.
Thank you.
------------------------------------------------------------------------
Log for client 1, the caller (192.168.0.48):
sofsip-cli-0.16$ ./src/sofsip_cli
** Message: This program is linked against GStreamer 0.10.30
su_source_port_create() returns 0x9bebcbc
** (<unknown>:16759): DEBUG: priv_verify_required_elements:191
** Message: Verifying GST element "mulawenc" -> OK
** Message: Verifying GST element "mulawdec" -> OK
** Message: Verifying GST element "udpsink" -> OK
** Message: Verifying GST element "udpsrc" -> OK
** (<unknown>:16759): DEBUG: ssc_media_class_init:124
** (<unknown>:16759): DEBUG: ssc_media_gst_class_init:138
** (<unknown>:16759): DEBUG: ssc_media_init:169
** Message: Selecting media implementation: gstreamer
** (<unknown>:16759): DEBUG: priv_static_capabilities_gst
sofsip> UA: unknown event 'nua_r_set_params' (23): 200 OK
::tag_null: 0
NOTE: destroying handle (nil).
sofsip> UA: nua_r_getparams: 200 OK
sip::from: <sip:192.168.0.48>
sip::from_str: "<sip:192.168.0.48>"
nua::retry_count: 3
nua::max_subscriptions: 20
nua::media_enable: true
nua::enableInvite: true
nua::autoAlert: true
nua::early_media: false
nua::only183_100rel: false
nua::autoAnswer: false
nua::autoACK: true
nua::invite_timer: 120
nua::session_timer: 0
nua::min_se: 120
nua::session_refresher: 0
nua::update_refresh: false
nua::enableMessage: true
nua::enableMessenger: false
nua::callee_caps: false
nua::media_features: false
nua::service_route_enable: true
nua::path_enable: true
nua::refer_expires: 300
nua::refer_with_id: true
nua::substate: 2
nua::substate: 3600
sip::supported: timer, 100rel
sip::supported_str: "timer, 100rel"
sip::allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE
sip::allow_str: "INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE,
SUBSCRIBE, NOTIFY, REFER, UPDATE"
nua::appl_method: "INVITE, REGISTER, PUBLISH, SUBSCRIBE"
sip::user_agent: sofia-sip/1.12.10
sip::user_agent_str: "sofia-sip/1.12.10"
nua::user_agent: "sofia-sip/1.12.10"
nua::keepalive: 120000
nua::outbound: "natify"
nta::contact: <sip:192.168.0.48>
nta::udp_mtu: 1300
nta::max_proceeding: 4294967295
nta::sip_t1: 500
nta::sip_t2: 4000
nta::sip_t4: 5000
nta::sip_t1x64: 32000
nta::debug_drop_prob: 0
nta::default_proxy: <null>
nta::aliases: <NONE>
nta::sipflags: 2
soa::caps_sdp: v=0
o=- 4067830498792808204 6010489873761820001 IN IP4 192.168.0.48
s=-
c=IN IP4 192.168.0.48
t=0 0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
soa::caps_sdp_str: "v=0
o=- 4067830498792808204 6010489873761820001 IN IP4 192.168.0.48
s=-
c=IN IP4 192.168.0.48
t=0 0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
"
soa::user_sdp: v=0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
soa::user_sdp_str: "v=0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
"
soa::local_sdp_str: <null>
soa::af: 3
soa::srtp_enable: false
soa::srtp_confidentiality: false
soa::srtp_integrity: false
::tag_null: 0
Starting sofsip-cli in interactive mode. Issue 'h' to get list of available
commands.
sofsip> i 192.168.0.53
** (<unknown>:17669): DEBUG: priv_activate_gst
** (<unknown>:17669): DEBUG: priv_activate_gst
** (<unknown>:17669): DEBUG: priv_setup_rtpelements
Succesfully bound to local port 16384.
** (<unknown>:17669): DEBUG: priv_cb_ready
** Message: Created audio sink of type 'ALSA' for playback.
** (<unknown>:17669): DEBUG: priv_update_rx_elements
** (<unknown>:17669): DEBUG: priv_update_tx_elements
** Message: No RTP destination available (r_sdp=0x8f99274).
** Message: Starting the pipeline.
Signaling media subsystem change from 4 to 2.
** (<unknown>:17669): DEBUG: priv_media_state_cb, state 2
UA: about to make a call with local SDP:
v=0
o=- 7432798708315601226 487429849769508668 IN IP4 192.168.0.48
s=-
c=IN IP4 192.168.0.48
t=0 0
m=audio 16384 RTP/AVP 0
a=rtpmap:0 PCMU/8000
UA: INVITE to sip:192.168.0.53
UA: INVITE to sip:192.168.0.53 pending
sofsip> ** (<unknown>:17669): DEBUG: priv_set_local_sdp
** (<unknown>:17669): DEBUG: priv_update_tx_elements
** Message: No RTP destination available (r_sdp=0x8f99274).
sofsip> priv_cb_pipeline_bus: Unhandled bus message from element
audiosrcringbuffer1 (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
UA: INVITE: 180 Ringing
sofsip> sofsip> b
UA: BYE to sip:192.168.0.53
sofsip> tport_udp_error: Connection refused (111) [icmp type=3 code=3]
reported by [192.168.0.53]:0
nta: CANCEL (10115447): Connection refused (111) with udp/[192.168.0.53]:5060
nta: INVITE (10115447): Connection refused (111) with udp/[192.168.0.53]:5060
UA: BYE: 503 Service Unavailable
sofsip> UA: INVITE: 503 Service Unavailable
sofsip> UA: call to sip:192.168.0.53 is terminated
** (<unknown>:17669): DEBUG: priv_deactivate_gst
sofsip> i 192.168.0.53
** (<unknown>:17669): DEBUG: priv_activate_gst
** (<unknown>:17669): DEBUG: priv_activate_gst
** (<unknown>:17669): DEBUG: priv_setup_rtpelements
Succesfully bound to local port 16384.
** (<unknown>:17669): DEBUG: priv_cb_ready
** Message: Created audio sink of type 'ALSA' for playback.
** (<unknown>:17669): DEBUG: priv_update_rx_elements
** (<unknown>:17669): DEBUG: priv_update_tx_elements
** Message: No RTP destination available (r_sdp=0x8f99274).
** Message: Starting the pipeline.
Signaling media subsystem change from 4 to 2.
** (<unknown>:17669): DEBUG: priv_media_state_cb, state 2
UA: about to make a call with local SDP:
v=0
o=- 9047105101145426193 8652794482270655366 IN IP4 192.168.0.48
s=-
c=IN IP4 192.168.0.48
t=0 0
m=audio 16384 RTP/AVP 0
a=rtpmap:0 PCMU/8000
UA: INVITE to sip:192.168.0.53
UA: INVITE to sip:192.168.0.53 pending
sofsip> ** (<unknown>:17669): DEBUG: priv_set_local_sdp
** (<unknown>:17669): DEBUG: priv_update_tx_elements
** Message: No RTP destination available (r_sdp=0x8f99274).
sofsip> priv_cb_pipeline_bus: Unhandled bus message from element
audiosrcringbuffer2 (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
UA: INVITE: 180 Ringing
sofsip> sofsip> UA: INVITE: 200 OK
sofsip> ** (<unknown>:17669): DEBUG: priv_set_remote_sdp
** (<unknown>:17669): DEBUG: priv_update_tx_elements
** Message: RTP destination is: 192.168.0.53:16384.
UA: call to sip:192.168.0.53 is active => 'ready'
audio sendrecv, video inactive, chat inactive.
sofsip> sofsip>
------------------------------------------------------------------------
Log for client 2, the calee (192.168.0.53):
** Message: This program is linked against GStreamer 0.10.30
su_source_port_create() returns 0x4242d0
** (<unknown>:29971): DEBUG: priv_verify_required_elements:191
** Message: Verifying GST element "mulawenc" -> OK
** Message: Verifying GST element "mulawdec" -> OK
** Message: Verifying GST element "udpsink" -> OK
** Message: Verifying GST element "udpsrc" -> OK
** (<unknown>:29971): DEBUG: ssc_media_class_init:124
** (<unknown>:29971): DEBUG: ssc_media_gst_class_init:138
** (<unknown>:29971): DEBUG: ssc_media_init:169
** Message: Selecting media implementation: gstreamer
** (<unknown>:29971): DEBUG: priv_static_capabilities_gst
sofsip> UA: unknown event 'nua_r_set_params' (23): 200 OK
::tag_null: 0
NOTE: destroying handle (nil).
sofsip> UA: nua_r_getparams: 200 OK
sip::from: <sip:192.168.0.53>
sip::from_str: "<sip:192.168.0.53>"
nua::retry_count: 3
nua::max_subscriptions: 20
nua::media_enable: true
nua::enableInvite: true
nua::autoAlert: true
nua::early_media: false
nua::only183_100rel: false
nua::autoAnswer: false
nua::autoACK: true
nua::invite_timer: 120
nua::session_timer: 0
nua::min_se: 120
nua::session_refresher: 0
nua::update_refresh: false
nua::enableMessage: true
nua::enableMessenger: false
nua::callee_caps: false
nua::media_features: false
nua::service_route_enable: true
nua::path_enable: true
nua::refer_expires: 300
nua::refer_with_id: true
nua::substate: 2
nua::substate: 3600
sip::supported: timer, 100rel
sip::supported_str: "timer, 100rel"
sip::allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE,
NOTIFY, REFER, UPDATE
sip::allow_str: "INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE,
SUBSCRIBE, NOTIFY, REFER, UPDATE"
nua::appl_method: "INVITE, REGISTER, PUBLISH, SUBSCRIBE"
sip::user_agent: sofia-sip/1.12.10
sip::user_agent_str: "sofia-sip/1.12.10"
nua::user_agent: "sofia-sip/1.12.10"
nua::keepalive: 120000
nua::outbound: "natify"
nta::contact: <sip:192.168.0.53>
nta::udp_mtu: 1300
nta::max_proceeding: 4294967295
nta::sip_t1: 500
nta::sip_t2: 4000
nta::sip_t4: 5000
nta::sip_t1x64: 32000
nta::debug_drop_prob: 0
nta::default_proxy: <null>
nta::aliases: <NONE>
nta::sipflags: 2
soa::caps_sdp: v=0
o=- 4350820387331044660 1484019383770946390 IN IP4 192.168.0.53
s=-
c=IN IP4 192.168.0.53
t=0 0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
soa::caps_sdp_str: "v=0
o=- 4350820387331044660 1484019383770946390 IN IP4 192.168.0.53
s=-
c=IN IP4 192.168.0.53
t=0 0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
"
soa::user_sdp: v=0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
soa::user_sdp_str: "v=0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
"
soa::local_sdp_str: <null>
soa::af: 3
soa::srtp_enable: false
soa::srtp_confidentiality: false
soa::srtp_integrity: false
::tag_null: 0
Starting sofsip-cli in interactive mode. Issue 'h' to get list of available
commands.
sofsip> UA: incoming call
From: <sip:192.168.0.48>;tag=25XXBXBN98UBF
To: <sip:192.168.0.53>
Please Answer(a), decline(d) or Decline(D) the call
sofsip> ** (<unknown>:29971): DEBUG: priv_set_remote_sdp
** (<unknown>:29971): DEBUG: priv_update_tx_elements
** (<unknown>:29971): CRITICAL **: priv_update_tx_elements: assertion
`self->sm_udpsink != NULL' failed
sofsip> a
** (<unknown>:29971): DEBUG: priv_activate_gst
** (<unknown>:29971): DEBUG: priv_static_capabilities_gst
Set local SDP based on capabilities: v=0
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000
** (<unknown>:29971): DEBUG: priv_set_local_sdp
** (<unknown>:29971): DEBUG: priv_update_tx_elements
** (<unknown>:29971): CRITICAL **: priv_update_tx_elements: assertion
`self->sm_udpsink != NULL' failed
** (<unknown>:29971): DEBUG: priv_activate_gst
** (<unknown>:29971): DEBUG: priv_setup_rtpelements
Succesfully bound to local port 16384.
** (<unknown>:29971): DEBUG: priv_cb_ready
** Message: Created audio sink of type 'ALSA' for playback.
** (<unknown>:29971): DEBUG: priv_update_rx_elements
** (<unknown>:29971): DEBUG: priv_update_tx_elements
** Message: RTP destination is: 192.168.0.48:16384.
** Message: Starting the pipeline.
Signaling media subsystem change from 0 to 2.
** (<unknown>:29971): DEBUG: priv_media_state_cb, state 2
UA: about to respond with local SDP:
v=0
m=audio 16384 RTP/AVP 0
a=rtpmap:0 PCMU/8000
UA: answering to the offer received from <sip:192.168.0.48>;tag=25XXBXBN98UBF
sofsip> ** (<unknown>:29971): DEBUG: priv_set_local_sdp
** (<unknown>:29971): DEBUG: priv_update_tx_elements
** Message: RTP destination is: 192.168.0.48:16384.
sofsip> priv_cb_pipeline_bus: Unhandled bus message from element
audiosrcringbuffer0 (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
priv_cb_pipeline_bus: Unhandled bus message from element src (stream-status).
sofsip> UA: call to <sip:192.168.0.48>;tag=25XXBXBN98UBF is active => 'ready'
audio sendrecv, video inactive, chat inactive.
sofsip> sofsip>
--
Leandro Lucarella
Integratech S.A.
4571-5252
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel