[Freeswitch-dev] FreeSWITCH Core Dump

Michael Jerris mike at jerris.com
Wed Mar 28 17:34:42 EDT 2007


The line:

2007-03-28 21:07:58 [DEBUG] mod_dingaling.c:706 activate_rtp() No valid
candidates received!

is the key one here.  Can you turn on the debug in your dingaling.conf
so we can see the actual jabber messages received and which candidates
you are actually getting from the client?

Mike

> -----Original Message-----
> From: freeswitch-dev-bounces at lists.freeswitch.org
[mailto:freeswitch-dev-
> bounces at lists.freeswitch.org] On Behalf Of Peter Nixon
> Sent: Wednesday, March 28, 2007 5:10 PM
> To: freeswitch-dev at lists.freeswitch.org
> Subject: Re: [Freeswitch-dev] FreeSWITCH Core Dump
> 
> Hi Mike
> 
> Your patch prevents the core dump. You are current in that the call
still
> doesnt go through to where I think it is supposed to. My dingaling
config
> is:
> 
>   <profile type="client">
>     <param name="name" value="$${domain}"/>
>     <param name="login" value="suntel at suntel.com.tr/talk"/>
>     <param name="password" value="XXXXXXX"/>
>     <param name="dialplan" value="XML"/>
>     <param name="rtp-ip" value="auto"/>
>     <param name="auto-login" value="true"/>
>     <param name="auto-reply" value="Press *Call* to call Suntel"/>
>     <!-- SASL "plain" or "md5" -->
>     <param name="sasl" value="plain"/>
>     <!-- if the server where the jabber is hosted is not the same as
the
> one
> in the jid -->
>     <param name="server" value="xmpp.suntel.com.tr"/>
>     <!-- Enable TLS or not -->
>     <param name="tls" value="true"/>
>     <!-- disable to trade async for more calls -->
>     <param name="use-rtp-timer" value="true"/>
>     <!-- or -->
>     <!-- <param name="rtp-ip" value="auto"/> -->
>     <!-- <param name="ext-rtp-ip" value="stun:stun.server.com"/> -->
>     <!-- default extension (if one cannot be determined) -->
>     <param name="exten" value="1234"/>
>     <!-- VAD choose one -->
>     <!-- <param name="vad" value="in"/> -->
>     <!-- <param name="vad" value="out"/> -->
>     <param name="vad" value="both"/>
>   </profile>
> 
> And in default_context.xml:
> 
>   <extension name="testmusic">
>     <condition field="destination_number" expression="^1234$">
>       <!-- Request a certain tone/file to be played while you wait for
the
> call to be answered-->
>       <action application="set" data="ringback=${us-ring}"/>
>       <!--<action application="set"
data="ringback=/home/ring.wav"/>-->
>       <action application="bridge"
> data="sofia/$${domain}/1234 at conference.freeswitch.org"/>
>     </condition>
>   </extension>
> 
> As far as I understand this should route a call for
> xmpp:suntel at suntel.com.tr -> 1234 -> 1234 at conference.freeswitch.org
> 
> Am I misunderstanding something? A call to suntel at suntel.com.tr give
the
> following debug presently:
> 
> 2007-03-28 21:07:48 [DEBUG] mod_dingaling.c:2474 handle_signalling()
> Creating
> an identity for 3327183289 user at gmail.com/jabbin
<user at gmail.com/jabbin>
> 1234
> 2007-03-28 21:07:48 [NOTICE] switch_channel.c:347
> switch_channel_set_name()
> New Chan DingaLing/1234 [61b92364-dd70-11db-a805-b12f80a7836d]
> 2007-03-28 21:07:48 [DEBUG] mod_dingaling.c:2505 handle_signalling()
> Creating
> a session for 3327183289
> 2007-03-28 21:07:48 [NOTICE] switch_channel.c:347
> switch_channel_set_name()
> New Chan DingaLing/new [61b92364-dd70-11db-a805-b12f80a7836d]
> 2007-03-28 21:07:48 [DEBUG] mod_dingaling.c:2509 handle_signalling()
> DingaLing/new State Change CS_NEW -> CS_INIT
> 2007-03-28 21:07:48 [DEBUG] mod_dingaling.c:2594 handle_signalling() 2
> payloads
> 2007-03-28 21:07:48 [DEBUG] mod_dingaling.c:2596 handle_signalling()
> Available Payload speex 110
> 2007-03-28 21:07:48 [DEBUG] mod_dingaling.c:2603 handle_signalling()
> compare
> speex 110/8000 to speex 98/8000
> 2007-03-28 21:07:48 [DEBUG] mod_dingaling.c:2614 handle_signalling()
> Choosing
> Payload index 0 speex 110
> 2007-03-28 21:07:48 [DEBUG] mod_dingaling.c:929 do_describe() Send
> Describe
> [speex at 8000]
> 2007-03-28 21:07:48 [DEBUG] switch_core.c:3436
switch_core_session_run()
> (DingaLing/new) State INIT
> 2007-03-28 21:07:48 [NOTICE] mod_dingaling.c:959 negotiate_media()
Ring-
> Ready
> DingaLing/new!
> 2007-03-28 21:07:58 [DEBUG] mod_dingaling.c:861 do_candidates() Send
> Candidate 66.135.41.84:16386 [NP1OlALFRG8QNIFS]
> 2007-03-28 21:07:58 [DEBUG] mod_dingaling.c:706 activate_rtp() No
valid
> candidates received!
> 2007-03-28 21:07:58 [DEBUG] mod_dingaling.c:594 terminate_session()
> Terminate
> called from line 1024 state=CS_INIT
> 2007-03-28 21:07:58 [NOTICE] mod_dingaling.c:609 terminate_session()
> Hangup
> DingaLing/new [CS_INIT] [DESTINATION_OUT_OF_ORDER]
> 2007-03-28 21:07:58 [INFO] switch_channel.c:993
> switch_channel_perform_hangup() Kill DingaLing/new [KILL]
> 2007-03-28 21:07:58 [DEBUG] mod_dingaling.c:1182
channel_kill_channel()
> DingaLing/new CHANNEL KILL
> 2007-03-28 21:07:58 [DEBUG] switch_core.c:3399
switch_core_session_run()
> (DingaLing/new) State HANGUP
> 2007-03-28 21:07:58 [DEBUG] mod_dingaling.c:1137 channel_on_hangup()
> DingaLing/new CHANNEL HANGUP
> 2007-03-28 21:07:58 [DEBUG] switch_core.c:3078
> switch_core_standard_on_hangup() Standard HANGUP DingaLing/new, cause:
> DESTINATION_OUT_OF_ORDER
> 2007-03-28 21:07:58 [DEBUG] switch_core.c:3842
> switch_core_session_thread()
> Session 2 (DingaLing/new) Locked, Waiting on external entities
> 2007-03-28 21:07:58 [INFO] switch_core.c:3847
switch_core_session_thread()
> Session 2 (DingaLing/new) Ended
> 2007-03-28 21:07:58 [NOTICE] switch_core.c:3723
> switch_core_session_destroy()
> Close Channel DingaLing/new
> 
> Cheers
> 
> Peter
> 
> On Wed 28 Mar 2007 15:40, Michael Jerris wrote:
> > I added some protection in the core that will keep this from
happening,
> > but there is something definitely not right here.  I assume this is
only
> > on a call that has no match in the dialplan, correct?  Can you post
a
> > FreeSWITCH(tm) debug trace of this call as well?
> >
> > Mike
> >
> > > -----Original Message-----
> > > From: freeswitch-dev-bounces at lists.freeswitch.org
> >
> > [mailto:freeswitch-dev-
> >
> > > bounces at lists.freeswitch.org] On Behalf Of Peter Nixon
> > > Sent: Wednesday, March 28, 2007 4:55 AM
> > > To: FreeSWITCH Dev
> > > Subject: Re: [Freeswitch-dev] FreeSWITCH Core Dump
> > >
> > > On Wed 28 Mar 2007 11:37, Peter Nixon wrote:
> > > > Hi Guys
> > > >
> > > > I managed to track down the core dump I was seeing. It occurs
> >
> > whenever I
> >
> > > > use dingaling with mod_cdr loaded. If mod_cdr is not loaded it
> >
> > doesn't
> >
> > > > crash.
> > >
> > > Here is the bt with symbols:
> > >
> > > # gdb /opt/freeswitch/bin/freeswitch core.9370
> > > GNU gdb 6.4
> > > Copyright 2005 Free Software Foundation, Inc.
> > > GDB is free software, covered by the GNU General Public License,
and
> >
> > you
> >
> > > are
> > > welcome to change it and/or distribute copies of it under certain
> > > conditions.
> > > Type "show copying" to see the conditions.
> > > There is absolutely no warranty for GDB.  Type "show warranty" for
> > > details.
> > > This GDB was configured as "i586-suse-linux"...Using host
libthread_db
> > > library "/lib/libthread_db.so.1".
> > >
> > > Core was generated by `/opt/freeswitch/bin/freeswitch'.
> > > Program terminated with signal 11, Segmentation fault.
> > >
> > > warning: Can't read pathname for load map: Input/output error.
> > > Reading symbols from
/opt/freeswitch/lib/libfreeswitch.so.1...Reading
> > > symbols
> > > from
> > >
/usr/lib/debug/opt/freeswitch/lib/libfreeswitch.so.1.0.0.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/lib/libfreeswitch.so.1
> > > Reading symbols from /usr/lib/libsqlite3.so.0...done.
> > > Loaded symbols for /usr/lib/libsqlite3.so.0
> > > Reading symbols from /lib/libm.so.6...done.
> > > Loaded symbols for /lib/libm.so.6
> > > Reading symbols from /lib/librt.so.1...done.
> > > Loaded symbols for /lib/librt.so.1
> > > Reading symbols from /lib/libdl.so.2...done.
> > > Loaded symbols for /lib/libdl.so.2
> > > Reading symbols from /lib/libcrypt.so.1...done.
> > > Loaded symbols for /lib/libcrypt.so.1
> > > Reading symbols from /lib/libpthread.so.0...done.
> > > Loaded symbols for /lib/libpthread.so.0
> > > Reading symbols from /lib/libc.so.6...done.
> > > Loaded symbols for /lib/libc.so.6
> > > Reading symbols from /lib/ld-linux.so.2...done.
> > > Loaded symbols for /lib/ld-linux.so.2
> > > Reading symbols from /opt/freeswitch/mod/mod_console.so...Reading
> >
> > symbols
> >
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_console.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_console.so
> > > Reading symbols from /opt/freeswitch/mod/mod_syslog.so...Reading
> >
> > symbols
> >
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_syslog.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_syslog.so
> > > Reading symbols from /opt/freeswitch/mod/mod_enum.so...Reading
symbols
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_enum.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_enum.so
> > > Reading symbols from /opt/freeswitch/mod/mod_xml_rpc.so...Reading
> >
> > symbols
> >
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_xml_rpc.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_xml_rpc.so
> > > Reading symbols from /opt/freeswitch/mod/mod_cdr.so...Reading
symbols
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_cdr.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_cdr.so
> > > Reading symbols from /usr/lib/libstdc++.so.6...done.
> > > Loaded symbols for /usr/lib/libstdc++.so.6
> > > Reading symbols from /lib/libgcc_s.so.1...done.
> > > Loaded symbols for /lib/libgcc_s.so.1
> > > Reading symbols from
/opt/freeswitch/mod/mod_dingaling.so...Reading
> > > symbols
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_dingaling.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_dingaling.so
> > > Reading symbols from /usr/lib/libgnutls.so.12...done.
> > > Loaded symbols for /usr/lib/libgnutls.so.12
> > > Reading symbols from /lib/libz.so.1...done.
> > > Loaded symbols for /lib/libz.so.1
> > > Reading symbols from /usr/lib/libgcrypt.so.11...done.
> > > Loaded symbols for /usr/lib/libgcrypt.so.11
> > > Reading symbols from /lib/libnsl.so.1...done.
> > > Loaded symbols for /lib/libnsl.so.1
> > > Reading symbols from /usr/lib/libgpg-error.so.0...done.
> > > Loaded symbols for /usr/lib/libgpg-error.so.0
> > > Reading symbols from /opt/freeswitch/mod/mod_sofia.so...Reading
> >
> > symbols
> >
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_sofia.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_sofia.so
> > > Reading symbols from /usr/lib/libssl.so.0.9.8...done.
> > > Loaded symbols for /usr/lib/libssl.so.0.9.8
> > > Reading symbols from /usr/lib/libcrypto.so.0.9.8...done.
> > > Loaded symbols for /usr/lib/libcrypto.so.0.9.8
> > > Reading symbols from
/opt/freeswitch/mod/mod_bridgecall.so...Reading
> > > symbols
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_bridgecall.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_bridgecall.so
> > > Reading symbols from /lib/libnss_files.so.2...done.
> > > Loaded symbols for /lib/libnss_files.so.2
> > > Reading symbols from /lib/libnss_dns.so.2...done.
> > > Loaded symbols for /lib/libnss_dns.so.2
> > > Reading symbols from /lib/libresolv.so.2...done.
> > > Loaded symbols for /lib/libresolv.so.2
> > > Reading symbols from /opt/freeswitch/mod/mod_commands.so...Reading
> >
> > symbols
> >
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_commands.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_commands.so
> > > Reading symbols from
/opt/freeswitch/mod/mod_conference.so...Reading
> > > symbols
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_conference.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_conference.so
> > > Reading symbols from /opt/freeswitch/mod/mod_dptools.so...Reading
> >
> > symbols
> >
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_dptools.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_dptools.so
> > > Reading symbols from /opt/freeswitch/mod/mod_echo.so...Reading
symbols
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_echo.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_echo.so
> > > Reading symbols from /opt/freeswitch/mod/mod_playback.so...Reading
> >
> > symbols
> >
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_playback.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_playback.so
> > > Reading symbols from
/opt/freeswitch/mod/mod_dialplan_xml.so...Reading
> > > symbols
> > > from
> >
> > /usr/lib/debug/opt/freeswitch/mod/mod_dialplan_xml.so.debug...done.
> >
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_dialplan_xml.so
> > > Reading symbols from /opt/freeswitch/mod/mod_g711.so...Reading
symbols
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_g711.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_g711.so
> > > Reading symbols from /opt/freeswitch/mod/mod_gsm.so...Reading
symbols
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_gsm.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_gsm.so
> > > Reading symbols from /opt/freeswitch/mod/mod_ilbc.so...Reading
symbols
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_ilbc.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_ilbc.so
> > > Reading symbols from /opt/freeswitch/mod/mod_l16.so...Reading
symbols
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_l16.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_l16.so
> > > Reading symbols from /opt/freeswitch/mod/mod_speex.so...Reading
> >
> > symbols
> >
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_speex.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_speex.so
> > > Reading symbols from /opt/freeswitch/mod/mod_sndfile.so...Reading
> >
> > symbols
> >
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_sndfile.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_sndfile.so
> > > Reading symbols from
/opt/freeswitch/mod/mod_native_file.so...Reading
> > > symbols
> > > from
> >
> > /usr/lib/debug/opt/freeswitch/mod/mod_native_file.so.debug...done.
> >
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_native_file.so
> > > Reading symbols from
/opt/freeswitch/mod/mod_softtimer.so...Reading
> > > symbols
> > > from
/usr/lib/debug/opt/freeswitch/mod/mod_softtimer.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_softtimer.so
> > > Reading symbols from /opt/freeswitch/mod/mod_say_en.so...Reading
> >
> > symbols
> >
> > > from /usr/lib/debug/opt/freeswitch/mod/mod_say_en.so.debug...done.
> > > done.
> > > Loaded symbols for /opt/freeswitch/mod/mod_say_en.so
> > > #0  0xb7ed1d99 in switch_channel_get_caller_extension
> >
> > (channel=0x80ef130)
> >
> > > at
> > > src/switch_channel.c:955
> > > 955     src/switch_channel.c: No such file or directory.
> > >         in src/switch_channel.c
> > > (gdb) bt full
> > > #0  0xb7ed1d99 in switch_channel_get_caller_extension
> >
> > (channel=0x80ef130)
> >
> > > at
> > > src/switch_channel.c:955
> > >         extension = (switch_caller_extension_t *) 0x80eaf70
> > >         __PRETTY_FUNCTION__ =
"switch_channel_get_caller_extension"
> > > #1  0xb52b36a4 in CDRContainer::add_cdr (this=0x807bf18,
> > > session=0x80eaf70)
> > > at cdrcontainer.cpp:217
> > >         newchannel = (switch_mod_cdr_newchannel_t *) 0x80a6da0
> > >         __func__ = "add_cdr"
> > >         __PRETTY_FUNCTION__ = "void
> > > CDRContainer::add_cdr(switch_core_session_t*)"
> > > #2  0xb52b3505 in my_on_hangup (session=0x80eaf70) at
mod_cdr.cpp:119
> > > No locals.
> > > #3  0xb7edba4e in switch_core_session_run (session=0x80eaf70) at
> > > src/switch_core.c:3375
> > >         index = 1
> > >         proceed = 1
> > >         exception = 0 '\0'
> > >         state = CS_HANGUP
> > >         laststate = CS_INIT
> > >         midstate = CS_HANGUP
> > >         endstate = CS_HANGUP
> > >         endpoint_interface = (const switch_endpoint_interface_t *)
> > > 0xb3dc9108
> > >         driver_state_handler = (const switch_state_handler_table_t
*)
> > > 0xb3dc90c0
> > >         application_state_handler = (const
> >
> > switch_state_handler_table_t *)
> >
> > > 0xb52cb1a0
> > >         __PRETTY_FUNCTION__ = "switch_core_session_run"
> > >         __func__ = "switch_core_session_run"
> > > #4  0xb7edcb01 in switch_core_session_thread (thread=0x80ef6c8,
> > > obj=0x80eaf70) at src/switch_core.c:3797
> > >         session = (switch_core_session_t *) 0x80eaf70
> > >         __func__ = "switch_core_session_thread"
> > > #5  0xb7f130b8 in dummy_worker (opaque=0x80ef6c8) at
> > > threadproc/unix/thread.c:138
> > >         thread = (apr_thread_t *) 0x80ef6c8
> > > #6  0xb7dde34b in start_thread () from /lib/libpthread.so.0
> > > No symbol table info available.
> > > #7  0xb7d7665e in clone () from /lib/libc.so.6
> > > No symbol table info available.
> > >
> > >
> > > --
> > >
> > > Peter Nixon
> > > http://www.peternixon.net/
> > > PGP Key: http://www.peternixon.net/public.asc
> > >
> > > _______________________________________________
> > > Freeswitch-dev mailing list
> > > Freeswitch-dev at lists.freeswitch.org
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> > >
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> > > http://www.freeswitch.org
> >
> > _______________________________________________
> > Freeswitch-dev mailing list
> > Freeswitch-dev at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> >
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> > http://www.freeswitch.org
> 
> --
> 
> Peter Nixon
> http://www.peternixon.net/
> PGP Key: http://www.peternixon.net/public.asc
> 
> _______________________________________________
> Freeswitch-dev mailing list
> Freeswitch-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org



More information about the Freeswitch-dev mailing list