Core was generated by `asterisk -gcvvvvvvvvddddddd'. Program terminated with signal 11, Segmentation fault. #0 0xb6975031 in sip_hangup (ast=0x827c818) at /home/caio1982/trunk/include/asterisk/strings.h:34 34 return (!s || (*s == '\0')); (gdb) bt full #0 0xb6975031 in sip_hangup (ast=0x827c818) at /home/caio1982/trunk/include/asterisk/strings.h:34 p = (struct sip_pvt *) 0x827f138 needcancel = 1 needdestroy = 0 oldowner = (struct ast_channel *) 0x827c818 __PRETTY_FUNCTION__ = "sip_hangup" #1 0x0808c672 in ast_hangup (chan=0x827c818) at channel.c:1619 res = 0 cdr = (struct ast_cdr *) 0x827db18 __PRETTY_FUNCTION__ = "ast_hangup" #2 0xb673fc08 in chanavail_exec (chan=0x827d270, data=0xb62b1ec8) at app_chanisavail.c:128 res = -1 inuse = -1 option_state = 0 string_compare = 0 status = 0 info = 0xb62af8d0 "SIP" tmp = "0\000P/999\000�\235\030\b��*�\001\000\000\000\b\000\000\000\200o\003\000\000\000\000\000\000\000\017\000\000\000\030e'\b\000\000\000\000\000\000\000\000\002\000\000\000\000\000\000\000!\031ʷ����\000\000\000\000\b\000\000\000M\000\000\000\021\000\000\000\177\005\000\000\002\000\000\000\000\000\000\000\020\000\000\000����ȫշ&\000\000\000��·�K+�-\234\030\b��*���·\000\000\000\0007x\000\000Y�·�\177-\234\030\b-\234\030\b��*���*�\001\000\000\000\001\000\000\000A�·@�·\001\000\000\000�_÷��·�\177-\234\030\b"... trychan = "\003\000\000\000�\217շ�\217շ�\002\000\000\000\000\000\000\000\020\000\000\235�˷�\177:\177շ�\205'\b@�*���˷�\177\214�*��\032�\205'\b~�*�\002\000\000\000 \221\017\000\000\000�\177\017\000\000\000!\031ʷ\210�*�\226\201ʷ\030\000\000\000,\221\001\003\000\000\000\000\000\000\000\000\000\000]A\006\000�\201\000\000\001", '\0' , "�\002\000\000\000\000\000\000\000\020\000\000\002\000\000\000����\002\000\000\000\000\000\000\000�\213�F\000\000\000\0005��G\000\000\000\000]A\006\000\000\000\000\000\200o\003\000\000\000\000"... peers = 0xb62af8d0 "SIP" tech = 0xb62af8d0 "SIP" number = 0xb62af8d4 "999" rest = 0x0 cur = 0xb62af8d0 "SIP" tempchan = (struct ast_channel *) 0x827c818 args = {argc = 1, argv = 0xb62af904, reqchans = 0xb62af8d0 "SIP", options = 0x0} __PRETTY_FUNCTION__ = "chanavail_exec" #3 0x080efccb in pbx_exec (c=0x827d270, app=0x822c588, data=0xb62b1ec8) at pbx.c:733 res = 149 u = (struct ast_module_user *) 0x8276510 ---Type to continue, or q to quit--- saved_c_appl = 0x0 saved_c_data = 0x0 #4 0x080f5e28 in pbx_extension_helper (c=0x827d270, con=0x0, context=0x827d4b4 "default", exten=0x827d504 "555", priority=1, label=0x0, callerid=0x82760c0 "999", action=E_SPAWN, found=0xb62b430c, combined_find_spawn=1) at pbx.c:2770 e = (struct ast_exten *) 0x8225e30 app = (struct ast_app *) 0x822c588 res = -1238676576 q = {incstack = {0x0 }, stacklen = 0, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x827d4b4 "default"} passdata = "SIP/999", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #5 0x080f79c7 in ast_spawn_extension (c=0x827d270, context=0x827d4b4 "default", exten=0x827d504 "555", priority=1, callerid=0x82760c0 "999", found=0xb62b430c, combined_find_spawn=1) at pbx.c:3261 No locals. #6 0x080f8119 in __ast_pbx_run (c=0x827d270) at pbx.c:3360 dst_exten = "\000\000\000\000\000\000\000\000\033\003ʷ�\177 \221(\b\000\000,B+�('ʷ", '\0' , "\004\000\000\000`\225X\225X\221\000\000\000\000@\b\000\000\000\000\000\0000\b", '\0' , "X\221\000\000\000\000X\000\000\000\000\000\000\000 ", '\0' , "�#ʷ\000\000\000\000�\177 \221(\b\000\000\b�'\b\210>ʷ\b�'\b\000\000\000\000,\b\000\000\001�\001\000\000�'\b(\b\000\000�_÷\000\000\000\000�K+�\230B+��3\024\b\001\000\000\000(\b\000\000\000\000\000" pos = 0 digit = 0 found = 1 res = 0 autoloopflag = 0 error = 0 __PRETTY_FUNCTION__ = "__ast_pbx_run" #7 0x080f9327 in pbx_thread (data=0x827d270) at pbx.c:3622 c = (struct ast_channel *) 0x827d270 #8 0x081457e6 in dummy_start (data=0x827e678) at utils.c:870 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {-1211932684, 0, -1238676576, -1238678568, 1394728850, -316749290}, __mask_was_saved = 0}}, __pad = {0xb62b4490, 0x0, 0x0, 0x0}} __cancel_routine = (void (*)(void *)) 0x806d651 __cancel_arg = (void *) 0xb62b4ba0 not_first_call = 0 ret = (void *) 0x0 a = {start_routine = 0x80f9310 , data = 0x827d270, ---Type to continue, or q to quit--- name = 0x827e810 "pbx_thread", ' ' , "started at [ 3643] pbx.c ast_pbx_start()"} lock_info = (struct thr_lock_info *) 0x827e908 mutex_attr = {__size = "\001\000\000", __align = 1} #9 0xb7c2a192 in start_thread () from /lib/i686/libpthread.so.0 No symbol table info available. #10 0xb7d0790e in clone () from /lib/i686/libc.so.6 No symbol table info available. (gdb)