Program terminated with signal 11, Segmentation fault. #0 0x0000000000450caa in ast_variable_browse (config=0x0, category=0x2aaab14732f5 "message") at config.c:232 232 if (category && config->last_browse && (config->last_browse->name == category)) (gdb) bt #0 0x0000000000450caa in ast_variable_browse (config=0x0, category=0x2aaab14732f5 "message") at config.c:232 #1 0x0000000000450d77 in ast_variable_retrieve (config=0x0, category=0x2aaab14732f5 "message", variable=0x2aaab14732ec "callerid") at config.c:255 #2 0x00002aaab145b655 in prep_email_sub_vars (ast=0x1eca94b0, vmu=0x419488a0, msgnum=3, context=0x419488a0 "lmentinc", mailbox=0x419488f0 "600", folder=0x2aaab147314b "INBOX", cidnum=0x1eca8a40 "4164790259", cidname=0x1eca8a20 "Leif Madsen", dur=0x41944940 "0:02", date=0x41944d80 "Thursday, March 19, 2009 at 05:52:52 PM", passdata=0x41943fd0 "3", passdatasize=368, category=0x0) at app_voicemail.c:3028 #3 0x00002aaab145c7b1 in make_email_file (p=0x1eca1b00, srcemail=0x2aaab1679f20 "asterisk", vmu=0x419488a0, msgnum=2, context=0x419488a0 "lmentinc", mailbox=0x419488f0 "600", folder=0x2aaab147314b "INBOX", cidnum=0x1eca8a40 "4164790259", cidname=0x1eca8a20 "Leif Madsen", attach=0x41946240 "/var/spool/asterisk/voicemail/lmentinc/600/INBOX/msg0002", format=0x2aaab1473b72 "WAV", duration=2, attach_user_voicemail=2048, chan=0x1eca83d0, category=0x0, imap=0) at app_voicemail.c:3259 #4 0x00002aaab145d6c0 in sendmail (srcemail=0x2aaab1679f20 "asterisk", vmu=0x419488a0, msgnum=2, context=0x419488a0 "lmentinc", mailbox=0x419488f0 "600", folder=0x2aaab147314b "INBOX", cidnum=0x1eca8a40 "4164790259", cidname=0x1eca8a20 "Leif Madsen", attach=0x41946240 "/var/spool/asterisk/voicemail/lmentinc/600/INBOX/msg0002", format=0x2aaab1473b72 "WAV", duration=2, attach_user_voicemail=2048, chan=0x1eca83d0, category=0x0) at app_voicemail.c:3412 #5 0x00002aaab146360f in notify_new_message (chan=0x1eca83d0, vmu=0x419488a0, msgnum=2, duration=2, fmt=0x41945190 "wav49", cidnum=0x1eca8a40 "4164790259", cidname=0x1eca8a20 "Leif Madsen") at app_voicemail.c:5075 #6 0x00002aaab1460af5 in leave_voicemail (chan=0x1eca83d0, ext=0x41948d50 "600", options=0x419517b0) at app_voicemail.c:4286 #7 0x00002aaab146d13d in vm_exec (chan=0x1eca83d0, data=0x419539b0) at app_voicemail.c:7924 #8 0x0000000000480234 in pbx_exec (c=0x1eca83d0, app=0x2aaaac00d6b0, data=0x419539b0) at pbx.c:537 #9 0x0000000000483a7b in pbx_extension_helper (c=0x1eca83d0, con=0x0, context=0x1eca8620 "phones", exten=0x1eca8670 "600", priority=1, label=0x0, callerid=0x1eca8a40 "4164790259", action=E_SPAWN) at pbx.c:1863 #10 0x0000000000484c53 in ast_spawn_extension (c=0x1eca83d0, context=0x1eca8620 "phones", exten=0x1eca8670 "600", priority=1, callerid=0x1eca8a40 "4164790259") at pbx.c:2320 #11 0x00000000004850cb in __ast_pbx_run (c=0x1eca83d0) at pbx.c:2410 #12 0x000000000048611a in pbx_thread (data=0x1eca83d0) at pbx.c:2636 #13 0x00000000004c7ea3 in dummy_start (data=0x1eca9060) at utils.c:856 #14 0x00000037dc8062f7 in start_thread () from /lib64/libpthread.so.0 #15 0x00000037dbcd1e3d in clone () from /lib64/libc.so.6 (gdb) bt full #0 0x0000000000450caa in ast_variable_browse (config=0x0, category=0x2aaab14732f5 "message") at config.c:232 cat = (struct ast_category *) 0x0 #1 0x0000000000450d77 in ast_variable_retrieve (config=0x0, category=0x2aaab14732f5 "message", variable=0x2aaab14732ec "callerid") at config.c:255 v = (struct ast_variable *) 0x1ecae070 #2 0x00002aaab145b655 in prep_email_sub_vars (ast=0x1eca94b0, vmu=0x419488a0, msgnum=3, context=0x419488a0 "lmentinc", mailbox=0x419488f0 "600", folder=0x2aaab147314b "INBOX", cidnum=0x1eca8a40 "4164790259", cidname=0x1eca8a20 "Leif Madsen", dur=0x41944940 "0:02", date=0x41944d80 "Thursday, March 19, 2009 at 05:52:52 PM", passdata=0x41943fd0 "3", passdatasize=368, category=0x0) at app_voicemail.c:3028 callerid = "\"Leif Madsen\" <4164790259>\000\000\000\000\000\000\000A\224A\000\000\000\000C\000\000\000\000\000\223O\000\000\000\000\000\204\232\036\000\000\000\000>\224A\000\000\000\000@\023s\000\000\000\000\000\001\000\000\000\000\000\000\000\200u", '\0' , "\225\r\000\000\000\000\000\000\212\223O\000\000\000\000\000\\C\000\000\000\000\000\224\036\000\000\000\000\204\232\036\000\000\000\000\223O\000\000\000\000\000\223O\000\000\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000\001\000\000\00031G*\000\00031G"... fromdir = "/var/spool/asterisk/voicemail/lmentinc/600/INBOX\000vO\000\000\000\000\000\001\000\000\000\001\000\000\000\000\000\000\000\001\000\000\000\001\000\000\000\224\036\000\000\000\000 \036", '\0' , "\024\000\000\000\000\000\000\000 \036\000\000\000\000\221\232\036\000\000\000\000R\217O\000\000\000\000\000\223O\000\000\000\000\000\000\020\000\000\000\000\000\000HuO\000\000\000\000\000I\000\000\000\000\237\003\000\000\000\000\000I\000\000\000\000\237\003\000\000\000\000\000@>\224A\000\000\000\000\001\000"... fromfile = "/var/spool/asterisk/voicemail/lmentinc/600/INBOX/msg0003\000\232\036\000\000\000\0000?\224A\000\000\000\0003G*\000\000\v\000\000\000\000\000\000\000<\224A", '\0' , "\221\232\036\000\000\000\000\221\232\036\000\000\000\000\020?\224A\000\000\000\0003G*\000\000wG\000\000\000\000\000\000\020\000\000\000\000\000\000@>\224A\000\000\000\000\21167\000\000\000\001\200\000\000\000\000\223O\000\000\000\000\000\002\224O\000\000\000\000\000\221\232"... txtfile = "p=\224A.txt\000\223O\000\000\000\000\000s\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000P;\224A\000\000\000\000\2237\000\000\000\001\200\000\000\000\000\204\232\036\000\000\000\000\204\232\036\000\000\000\000\204\232\036\000\000\000\0000\000\000\0000\000\000\000(A\224A\000\000\000\000@@\224A\000\000\000\000\204\232\036\000\000\000\000\232\036", '\0' , "0\000\000\0000\000\000\000(A\224A\000\000\000\000@@\224A\000\000\000\000\020\027\036\000\000\000\000\000\000\036", '\0' , "\001", '\0' , "\001\000\000\000\220'\036\000\000\000\000\000"... msg_cfg = (struct ast_config *) 0x0 origcallerid = 0x3000000030
origdate = 0x41944128 "" origcidname = "\000\000\000\000\001\000\000\000\000\000\000\000\002", '\0' , "\"", '\0' , "P;\224A", '\0' , "\232\036\000\000\000\000\204\232\036\000\000\000\000\204\232\036\000\000\000" origcidnum = '\0' , "r\aH", '\0' , "\031\000\000\000\000;\224A\000\000\000\000\230EB\000\000\000\000" #3 0x00002aaab145c7b1 in make_email_file (p=0x1eca1b00, srcemail=0x2aaab1679f20 "asterisk", vmu=0x419488a0, msgnum=2, context=0x419488a0 "lmentinc", mailbox=0x419488f0 "600", folder=0x2aaab147314b "INBOX", cidnum=0x1eca8a40 "4164790259", cidname=0x1eca8a20 "Leif Madsen", attach=0x41946240 "/var/spool/asterisk/voicemail/lmentinc/600/INBOX/msg0002", format=0x2aaab1473b72 "WAV", duration=2, attach_user_voicemail=2048, chan=0x1eca83d0, category=0x0, imap=0) at app_voicemail.c:3259 vmlen = 368 ast = (struct ast_channel *) 0x1eca94b0 date = "Thursday, March 19, 2009 at 05:52:52 PM\000I", '\0' , "I", '\0' , "\0367", '\0' , "\001\000\000\000\000\000\000\000\000\033\036\000\000\000\0007\000\000\000`N\224A\000\000\000\000P\224A\000\000\000\0008\002\000\000\000\000\000\000P\224A", '\0' , "A", '\0' , "M7\000\000" host = "freud.leifmadsen.internal", '\0' who = "asterisk@freud.leifmadsen.internal", '\0' , "\020\000\000\000\000\000\000\000\033\036", '\0' bound = '\0' fname = '\0' dur = "0:02", '\0' , " ", '\0' , "s", '\0' , "0\000\000\000\001\000\000\000\000\000\000\0008\000\000\000\004\000\000\000\001\000\000\000\001", '\0' , "\f", '\0' , "", '\0' tmpcmd = "\000\000\000\000\000\000\000\00007", '\0' , " O\224A\000\000\000\0003G*\000\0003G*\000\000\b\000\000\000\000\000\000\00007\000\000\000N\224A\000\000\000\000\0261G*\000\000\000J\224A", '\0' , "\220P\224A\000\000\000\0003G*\000\0000O\224A\000\000\000\000\0261G*\000\000\000\000\000\000\000\000\000\000M\224A", '\0' , "3G*\000\0003G*\000\000\000\000\000\000\000\000\000\000M\224A\000\000\000\000\000\000\000\000\001"... enc_cidnum = "4164790259", '\0' enc_cidname = "Leif Madsen", '\0' tm = {tm_sec = 52, tm_min = 52, tm_hour = 17, tm_mday = 19, tm_mon = 2, tm_year = 109, tm_wday = 4, tm_yday = 77, tm_isdst = 1, tm_gmtoff = -14400, tm_zone = 0x0} passdata = 0x41943fd0 "3" passdata2 = 0x41944150 "\"Bob\"" len_passdata = 368 len_passdata2 = 368 tmplen = 0 __PRETTY_FUNCTION__ = "make_email_file" #4 0x00002aaab145d6c0 in sendmail (srcemail=0x2aaab1679f20 "asterisk", vmu=0x419488a0, msgnum=2, context=0x419488a0 "lmentinc", mailbox=0x419488f0 "600", folder=0x2aaab147314b "INBOX", cidnum=0x1eca8a40 "4164790259", cidname=0x1eca8a20 "Leif Madsen", attach=0x41946240 "/var/spool/asterisk/voicemail/lmentinc/600/INBOX/msg0002", format=0x2aaab1473b72 "WAV", duration=2, attach_user_voicemail=2048, chan=0x1eca83d0, category=0x0) at app_voicemail.c:3412 p = (FILE *) 0x1eca1b00 tmp = "/tmp/astmail-ApKN13", '\0' tmp2 = '\0' , "\000\000\000\0007", '\0' , "`7", '\0' , "\034P\000\000\000\000\000 \212\036\000\000\000\000`Q\224A\000\000\000\000 \212\036\000\000\000\000`Q\224A\000\000\000\000\0209\225A\000\000\000\000@i\225A\000\000\000\000\000p\225A\000\000\000\000S7\000\000\000 \212\036\000\000\000\000\202\224A\000\000\000\000\0209\225A\000\000\000\000@i\225A\000\000\000\000\000p\225A\000\000\000\000S7\000\000\000(\000\000\0000\000\000\000pQ\224A\000\000\000\000P\224A\000\000\000\000\210\224A", '\0' ... __PRETTY_FUNCTION__ = "sendmail" #5 0x00002aaab146360f in notify_new_message (chan=0x1eca83d0, vmu=0x419488a0, msgnum=2, duration=2, fmt=0x41945190 "wav49", cidnum=0x1eca8a40 "4164790259", cidname=0x1eca8a20 "Leif Madsen") at app_voicemail.c:5075 attach_user_voicemail = 2048 myserveremail = 0x2aaab1679f20 "asterisk" todir = "/var/spool/asterisk/voicemail/lmentinc/600/INBOX\000var/spool/asterisk/voicemail/lmentinc/600/tmp/A3yvka\000\000\000\220Os\000\000\000\000 t\224A\000\000\000\000\201O", '\0' , "Py\224A\000\000\000\000\034P\000\000\000\000\000pO\036\000\000\000\000w\224A\000\000\000\000\217O\000\002\000\000\000\002", '\0' , ""... fn = "/var/spool/asterisk/voicemail/lmentinc/600/INBOX/msg0002\000\201", '\0' , "\225\r\000\000\000\000\000\000\000\020\000\000\000\000\000\000\020\000\000\000\000\000\000\000I", '\0' , "k9G", '\0' , "k9G", '\0' , "Pc\224A", '\0' , "\223\036\000\000\000\000\b\223\036\000\000\000\000\b\223\036\000\000\000\000@e\224A\000\000\000\000N2P\000\000\000\000\000\000\000\000\000\000\000\000\000\020\000\000"... ext_context = "600@lmentinc", '\0' , "w\036\000\000\000\000 S\224A\000\000\000\000O\222I", '\0' , "\2267", '\0' , "\020\031\225A\001", '\0' , "\233\036\000\000\000\000V\036\000\000\000\000R\224A\000\000\000\000]CF", '\0' , "\aEI", '\0' , "\036\000\000\000\000\233\036\000\000\000\000\000\000\000\023\000\000\000_\000\000\000\000\000\000\020\031\225A\000\000\000\000\0209\225A\000\000\000\000@i\225A\000\000\000\000\020\031\225A\000\000\000\000S\224A\000"... stringp = 0x41945196 "gsm|wav" newmsgs = 0 oldmsgs = 0 category = 0x0 __PRETTY_FUNCTION__ = "notify_new_message" #6 0x00002aaab1460af5 in leave_voicemail (chan=0x1eca83d0, ext=0x41948d50 "600", options=0x419517b0) at app_voicemail.c:4286 vms = (struct vm_state *) 0x0 txtfile = "/var/spool/asterisk/voicemail/lmentinc/600/INBOX/msg0002.txt", '\0' , "SIP/2.0 200 OK\r\nVia: SIP/2.0/UDP 192.168.128.138:5501;branch=z9hG4bK278bd9d0805D67A1;received=192.168.128.138\r\nFrom: \"Leif Madsen\""... tmptxtfile = "/var/spool/asterisk/voicemail/lmentinc/600/tmp/A3yvka\000\000\0008\005\225A\000\000\000\0008\005\225A\000\000\000\0008\005\225A\000\000\000\0008\005\225A\000\000\000\000\227\005\225A\000\000\000\000#\025\225A\000\000\000\0008\005\225A\000\000\000\000#\025\225A", '\0' , "\224A\000\000\000\0008\224A\000\000\000\000\000\000\224A", '\0' , "\224A", '\0' , "\000\000\000\000", '\0' , "`7", '\0' ... callerid = "\"Leif Madsen\" <4164790259>\000A\000\000\000\000p\224A\001\000\000\000\000\000\000s", '\0' , " \000\000\0000\000\000\000\200\224A\020", '\0' , "\000\000\000\000\020\000\000\000\000\000\000\000\223\036\000\000\000\000p\224A\000\000\000\000\21167\000\000\000\001\200\000\000\000\000\000\224A\"", '\0' , "\000\000\000\000\000\224A\000\000\000\000\020\224A\000\000\000\000\224A", '\0' , "#\025\225A\000\000\000\0008\005\225A\000\000"... txt = (FILE *) 0x1eca1b00 date = "Thu Mar 19 05:52:49 PM EDT 2009\000Mh*\000\000\000\000\000\000\024\000\000\000\000\004\000\000\000\000\000\000c\003\000\000\000\000\000\0000\224A\000\000\000\000\224A\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\0000\224A\000\000\000\000P\224A\000\000\000\000\020\224A\000\000\000\000Mh*\000\000\224A\000\000\000\000(\224A\000\000\000\000\224A\001", '\0' , "Mh*\000\000Mh*\000\000\000\000\000\000\000\000\000\000h\224A\000\000\000\000 "... txtdes = 26 res = -1 msgnum = 2 duration = 2 ausemacro = 0 ousemacro = 0 ouseexten = 0 dir = "/var/spool/asterisk/voicemail/lmentinc/600/INBOX", '\0' , "\f\000\000\000\000\000\000\000\224A\000\000\000\000Sh*\000\000Sh*\000\000\000\000\000\000\000\000\000\00007\000\000\000p\224A\000\000\000\000\224A\000\000\000\000\220\224A\000\000\000\000\2027\000\000\000\a\000\000\000\000\000\000\000\000\224A\000\000\000\000$Wh*\000\000+Wh*\000\000\000\000\000\000\000\000\000\00007\000\000\000\224A", '\0' ... tmpdir = "/var/spool/asterisk/voicemail/lmentinc/600/tmp", '\0' dest = "/var/spool/asterisk/voicemail/lmentinc/600/temp\000il", '\0' fn = "/var/spool/asterisk/voicemail/lmentinc/600/INBOX/msg0002", '\0' prefile = "/var/spool/asterisk/voicemail/lmentinc/600/unavail", '\0' tempfile = "/var/spool/asterisk/voicemail/lmentinc/600/temp", '\0' ext_context = "600@lmentinc", '\0' fmt = "wav49|gsm|wav", '\0' context = 0x41948d54 "lmentinc" ecodes = "#*", '\0' tmp = "600\000lmentinc", '\0' tmpptr = 0x0 vmu = (struct ast_vm_user *) 0x419488a0 svm = {context = "lmentinc", '\0' , mailbox = "600", '\0' , password = "1234", '\0' , fullname = "Bob", '\0' , email = "leif.madsen@gmail.com", '\0' , pager = '\0' , serveremail = '\0' , mailcmd = '\0' , language = '\0' , zonetag = '\0' , callback = '\0' , dialout = '\0' , uniqueid = '\0' , exit = '\0' , attachfmt = '\0' , flags = 2104, saydurationm = 2, maxmsg = 100, volgain = 0, list = {next = 0x0}} category = 0x0 __PRETTY_FUNCTION__ = "leave_voicemail" #7 0x00002aaab146d13d in vm_exec (chan=0x1eca83d0, data=0x419539b0) at app_voicemail.c:7924 res = 0 u = (struct ast_module_user *) 0x1eca93c0 tmp = 0x419515c0 "600@lmentinc" leave_options = {flags = 5, record_gain = 0 '\0'} flags = {flags = 4} opts = {0x419517d0 "9\225A", 0x0} args = {argc = 2, argv = 0x41951778, argv0 = 0x419515c0 "600@lmentinc", argv1 = 0x419515cd "u"} deprecate_warning = 0 __PRETTY_FUNCTION__ = "vm_exec" #8 0x0000000000480234 in pbx_exec (c=0x1eca83d0, app=0x2aaaac00d6b0, data=0x419539b0) at pbx.c:537 res = 0 saved_c_appl = 0x0 saved_c_data = 0x0 #9 0x0000000000483a7b in pbx_extension_helper (c=0x1eca83d0, con=0x0, context=0x1eca8620 "phones", exten=0x1eca8670 "600", priority=1, label=0x0, callerid=0x1eca8a40 "4164790259", action=E_SPAWN) at pbx.c:1863 e = (struct ast_exten *) 0x1ec42a60 app = (struct ast_app *) 0x2aaaac00d6b0 res = 1100312576 q = {incstack = {0x1ec425f8 "phones", 0x1ec3efe8 "lmentinc_out", 0x1ec40a68 "digium_out", 0x1ec41278 "extensions", 0x1ec418b8 "features", 0x0 }, stacklen = 5, status = 5, swo = 0x0, data = 0x0, foundcontext = 0x1ec429b0 "testing"} passdata = "600@lmentinc|u", '\0' matching_action = 0 __PRETTY_FUNCTION__ = "pbx_extension_helper" #10 0x0000000000484c53 in ast_spawn_extension (c=0x1eca83d0, context=0x1eca8620 "phones", exten=0x1eca8670 "600", priority=1, callerid=0x1eca8a40 "4164790259") at pbx.c:2320 No locals. #11 0x00000000004850cb in __ast_pbx_run (c=0x1eca83d0) at pbx.c:2410 dst_exten = '\0' , "\030", '\0' , "7", '\0' , "\222\036\000\000\000\000\000>\001\000\000\000\000\000\030\000\000\000\000\000\000\0007\000\000\000c/7", '\0' pos = 0 digit = 0 found = 1 res = 0 autoloopflag = 0 error = 0 emc = 0x41956030 "``\225A" __PRETTY_FUNCTION__ = "__ast_pbx_run" #12 0x000000000048611a in pbx_thread (data=0x1eca83d0) at pbx.c:2636 c = (struct ast_channel *) 0x1eca83d0 #13 0x00000000004c7ea3 in dummy_start (data=0x1eca9060) at utils.c:856 __cancel_buf = {__cancel_jmp_buf = {{__cancel_jmp_buf = {0, 5234177940207203742, 0, 1100310848, 1100312576, 4096, 5234177940207203550, 5234177939127757508}, __mask_was_saved = 0}}, __pad = {0x419561d0, 0x0, 0x0, 0x0}} __cancel_routine = (void (*)(void *)) 0x423fb8 __cancel_arg = (void *) 0x41956940 not_first_call = 0 ret = (void *) 0x0 a = {start_routine = 0x4860fd , data = 0x1eca83d0, name = 0x1eca9080 "pbx_thread", ' ' , "started at [ 2660] pbx.c ast_pbx_start()"} #14 0x00000037dc8062f7 in start_thread () from /lib64/libpthread.so.0 No symbol table info available. #15 0x00000037dbcd1e3d in clone () from /lib64/libc.so.6 No symbol table info available. (gdb) quit