[Freeswitch-users] Behavior of deflect

Andy Spitzer woof at nortel.com
Thu Nov 20 11:16:30 PST 2008


Woof!

Thanks for the changes!

On Wed, 19 Nov 2008 21:09:19 -0500, Anthony Minessale <anthony.minessale at gmail.com> wrote:

> try latest code and see how that works.

FreeSWITCH Version 1.0.trunk (10481)

No difference with just "deflect"--the call does not clear when the REFER is 
completed, nor are there any events published on the outbound socket vis-a-vis 
the NOTIFYs.

The behavior that would work the best for me would be an event with the final 
response (success or fail), so my app can wait for it and know if it can hang up 
the call (on success), or it needs to do something else on failure.

An event on each and every NOTIFY would be acceptable as well (not the just the final), 
but that would probably push some of the SIPishness of parsing the fragments into 
the application.


> I also added api command "uuid_deflect <uuid> sip:foo at bar.com" that should reply
> with the sipfrag.

Alas, that one caused a core dump:

*** glibc detected *** /usr/local/freeswitch/bin/freeswitch: free(): invalid pointer: 0xb2980de8 ***
======= Backtrace: =========
/lib/libc.so.6[0xba9ac1]
/lib/libc.so.6(cfree+0x90)[0xbad0f0]
/usr/local/freeswitch/mod/mod_commands.so[0x48ce91]
/usr/local/freeswitch/lib/libfreeswitch.so.1(switch_api_execute+0xbd)[0x160b0d]
/usr/local/freeswitch/mod/mod_event_socket.so[0x2f008d]
/usr/local/freeswitch/mod/mod_event_socket.so[0x2f0e73]
/usr/local/freeswitch/mod/mod_event_socket.so[0x2f2531]
/usr/local/freeswitch/lib/libfreeswitch.so.1[0x1b60b6]
/lib/libpthread.so.0[0x27450b]
/lib/libc.so.6(clone+0x5e)[0xc13b2e]

Program terminated with signal 6, Aborted.
#0  0x00110416 in __kernel_vsyscall ()
(gdb) where
#0  0x00110416 in __kernel_vsyscall ()
#1  0x00b69690 in raise () from /lib/libc.so.6
#2  0x00b6af91 in abort () from /lib/libc.so.6
#3  0x00ba19eb in __libc_message () from /lib/libc.so.6
#4  0x00ba9ac1 in _int_free () from /lib/libc.so.6
#5  0x00bad0f0 in free () from /lib/libc.so.6
#6  0x0048ce91 in uuid_deflect (
    cmd=0x9ce1809 "0852cadf-1156-4bac-87a2-7475da4930b9 sip:206 at woof.us.nortel.com", session=0x0, stream=0xace929a8) at mod_commands.c:1289
#7  0x00160b0d in switch_api_execute (cmd=0x9ce17fc "uuid_deflect", 
    arg=0x9ce1809 "0852cadf-1156-4bac-87a2-7475da4930b9 sip:206 at woof.us.nortel.com", session=0x0, stream=0xace929a8) at src/switch_loadable_module.c:1527
#8  0x002f008d in api_exec (thread=0x0, obj=0xace92a54)
    at mod_event_socket.c:1090
#9  0x002f0e73 in parse_command (listener=0xb2920cd0, event=0xace93390, 
    reply=0xace93124 "", reply_len=512) at mod_event_socket.c:1415
#10 0x002f2531 in listener_run (thread=0xacef5b68, obj=0xb2920cd0)
    at mod_event_socket.c:1786
#11 0x001b60b6 in dummy_worker (opaque=0xacef5b68)
    at threadproc/unix/thread.c:138
#12 0x0027450b in start_thread () from /lib/libpthread.so.0
#13 0x00c13b2e in clone () from /lib/libc.so.6


--Woof!



More information about the Freeswitch-users mailing list