[Home]

Summary:ASTERISK-05884: Asterisk crash with voicemail realtime
Reporter:cripito (cripito)Labels:
Date Opened:2005-12-21 20:30:37.000-0600Date Closed:2005-12-21 20:33:41.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Asterisk crash when u don't specify the context in voicemailmain

   -- Executing Set("SIP/5006-c270", "Peername=5006") in new stack
   -- Executing VoiceMailMain("SIP/5006-c270", "5006") in new stack
Dec 21 22:45:28 DEBUG[26922]: channel.c:774 channel_find_locked: Avoiding initial deadlock for 'SIP/5006-c270'
asterisk1*CLI>
Disconnected from Asterisk server

in voicemail.conf

searchcontexts=yes

in app_voicemail.c : 585

Context is NULL check the dump from dgb. plz

              if ((!strcasecmp(context, cur->context)) && (!strcasecmp(mailbox, cur->mailbox)))
                       break;
               cur=cur->next;




****** ADDITIONAL INFORMATION ******

#0  0x005282a9 in strcasecmp () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x00f26067 in find_user (ivm=0xb7a1a470, context=0x0, mailbox=0xb7a1a910 "5006")
   at app_voicemail.c:585
       vmu = (struct ast_vm_user *) 0x0
       cur = (struct ast_vm_user *) 0x8e8d9e0
#2  0x00f37a18 in vm_execmain (chan=0x90733c0, data=0xb7a19bb4) at strings.h:34
       gain = 0
       res = 0
       cmd = -1214142188
       valid = 0
       u = (struct localuser *) 0x9000f08
       prefixstr = '\0' <repeats 79 times>
       ext_context = '\0' <repeats 255 times>
       box = 0
       useadsi = 0
       skipuser = 0
       vms = {curbox = '\0' <repeats 79 times>, username = "5006", '\0' <repeats 75 times>,
 curdir = '\0' <repeats 255 times>, vmbox = '\0' <repeats 255 times>,
 fn = '\0' <repeats 255 times>, fn2 = '\0' <repeats 255 times>, deleted = 0x0, heard = 0x0,
 curmsg = 0, lastmsg = -1, newmessages = 0, oldmessages = 0, starting = 0, repeats = 0}
       vmu = (struct ast_vm_user *) 0x0
       vmus = {context = '\0' <repeats 79 times>, mailbox = '\0' <repeats 79 times>,
 password = '\0' <repeats 79 times>, fullname = '\0' <repeats 79 times>,
 email = '\0' <repeats 79 times>, pager = '\0' <repeats 79 times>,
 serveremail = '\0' <repeats 79 times>, mailcmd = '\0' <repeats 159 times>,
 language = '\0' <repeats 19 times>, zonetag = '\0' <repeats 79 times>,
 callback = '\0' <repeats 79 times>, dialout = '\0' <repeats 79 times>,
 uniqueid = '\0' <repeats 19 times>, exit = '\0' <repeats 79 times>, flags = 0,
 saydurationm = 0, maxmsg = 0, next = 0x0}
       context = 0x0
       silentexit = 0
       flags = {flags = 0}
       record_gain = 0 '\0'
       __PRETTY_FUNCTION__ = "vm_execmain"
#3  0x080905ad in pbx_extension_helper (c=0x90733c0, con=0x0, context=0x9073510 "default",
   exten=0x9073604 "8000", priority=2, label=0x0, callerid=0xb7a1f0b0 "5006", action=0)
   at pbx.c:544
       e = (struct ast_exten *) 0x8f8f7c0
       sw = (struct ast_switch *) 0x0
       data = 0x0
       foundcontext = 0x9073510 "default"
       newstack = 1
       res = 0
       status = 5
       incstack = {0x0, 0x1 <Address 0x1 out of bounds>, 0x20 <Address 0x20 out of bounds>,
 0xb7a21190 "ô\037^", 0x51d664 "\201Ã\220I\f", 0x4bc650 "È é\b\032",
 0x2 <Address 0x2 out of bounds>, 0x5e1ff4 "<\035^",
 0xb7a21120 "\001\200­û`\022¢·`\022¢·`\022¢·`\022¢·\177\022¢·¯\022¢·`\022¢·¯\022¢·",
 0xb7a210fc "\f\022¢·v\221Q",
 0x51e971 "\211~\020\213U\024\211~\f\211~\004\205Òt6\213U\024\213}ð\211V\024\211V\b1Ò\211~\030\211\226\230",
 0xb7a21120 "\001\200­û`\022¢·`\022¢·`\022¢·`\022¢·\177\022¢·¯\022¢·`\022¢·¯\022¢·",
 0xb7a21260 "\"Michael J. Allen\" <6782295006>", 0xb7a212af "", 0x0, 0xb7a212af "",
 0x5e1ff4 "<\035^", 0x80fc302 "\"%s\" <%s>", 0xb7a2123c "ø\tæ\b\020Ù\002\t",
 0xb7a2120c "(\022¢·Ò\026P", 0x519176 "\213\215\fÿÿÿ\211Â9\2150ÿÿÿt\t\213µ(ÿÿÿÆ\006",
 0xb7a21120 "\001\200­û`\022¢·`\022¢·`\022¢·`\022¢·\177\022¢·¯\022¢·`\022¢·¯\022¢·",
 0x80fc302 "\"%s\" <%s>", 0xb7a21244 "", 0xb7a21260 "\"Michael J. Allen\" <6782295006>", 0x0,  
       passdata = "5006", '\0' <repeats 8187 times>
       stacklen = 0
       tmp = "VoiceMailMain", '\0' <repeats 66 times>
       tmp2 = "SIP/5006-73ce", '\0' <repeats 66 times>
       tmp3 = "5006\000ame=5006", '\0' <repeats 8178 times>
       atmp = "STACK-default-8000-2", '\0' <repeats 59 times>
       atmp2 = "VoiceMailMain(\"SIP/5006-73ce\", \"5006\") in new stack\000w stack", '\0' <repeats 8232 times>
       __PRETTY_FUNCTION__ = "pbx_extension_helper"
#4  0x08091876 in __ast_pbx_run (c=0x90733c0) at pbx.c:2220
       digit = 0
       exten = '\0' <repeats 255 times>
       pos = 0
       waittime = 2
       res = 0
       __PRETTY_FUNCTION__ = "__ast_pbx_run"
ASTERISK-1  0x080932dc in pbx_thread (data=0x0) at pbx.c:2507
No locals.
Comments:By: Jason Parker (jparker) 2005-12-21 20:32:33.000-0600

See ASTERISK-5812 for fix.