--[ UxBoD ]--
2010-Jan-11 15:23 UTC
[asterisk-users] Asterisk core dumps when using PrivacyManager
Hi,
why would Asterisk core dump with the following test dialplan extension ?
exten => 8100,1,Answer()
exten => 8100,n,Set(CALLERID(all)="")
exten => 8100,n,PrivacyManager()
exten => 8100,n,GotoIf(${[${PRIVACYMGRSTATUS} = FAILED]}?:nocid)
exten => 8100,n,NoOp(Number is ${CALLERID(num)})
exten => 8100,n,Hangup()
exten => 8100,n(nocid),Playback(vm-goodbye)
exten => 8100,n,Hangup()
I ran in foreground with full debug output but nothing showed :(
== Using SIP RTP CoS mark 5
-- Executing [8100 at test:1] Answer("SIP/1001-00000000",
"") in new stack
-- Executing [8100 at test:2] Set("SIP/1001-00000000",
"CALLERID(all)=""") in new stack
-- Executing [8100 at test:3] PrivacyManager("SIP/1001-00000000",
"") in new stack
-- <SIP/1001-00000000> Playing 'privacy-unident.g729'
(language 'en')
-- <SIP/1001-00000000> Playing 'privacy-prompt.g729' (language
'en')
voip*CLI>
Disconnected from Asterisk server
/usr/sbin/safe_asterisk: line 146: 21648 Segmentation fault
--
Thanks, Phil
Olle E. Johansson
2010-Jan-11 16:12 UTC
[asterisk-users] Asterisk core dumps when using PrivacyManager
11 jan 2010 kl. 16.23 skrev --[ UxBoD ]--:> Hi, > > why would Asterisk core dump with the following test dialplan extension ? > > exten => 8100,1,Answer() > exten => 8100,n,Set(CALLERID(all)="") > exten => 8100,n,PrivacyManager() > exten => 8100,n,GotoIf(${[${PRIVACYMGRSTATUS} = FAILED]}?:nocid) > exten => 8100,n,NoOp(Number is ${CALLERID(num)}) > exten => 8100,n,Hangup() > exten => 8100,n(nocid),Playback(vm-goodbye) > exten => 8100,n,Hangup() > > I ran in foreground with full debug output but nothing showed :( > > == Using SIP RTP CoS mark 5 > -- Executing [8100 at test:1] Answer("SIP/1001-00000000", "") in new stack > -- Executing [8100 at test:2] Set("SIP/1001-00000000", "CALLERID(all)=""") in new stack > -- Executing [8100 at test:3] PrivacyManager("SIP/1001-00000000", "") in new stack > -- <SIP/1001-00000000> Playing 'privacy-unident.g729' (language 'en') > -- <SIP/1001-00000000> Playing 'privacy-prompt.g729' (language 'en') > voip*CLI> > Disconnected from Asterisk server > /usr/sbin/safe_asterisk: line 146: 21648 Segmentation faultAsterisk should not core dump. Please open a bug report in issues.asterisk.org. Read the bug guidelines and try to add as much as the information as possible, according to those instructions. You'll find them while opening a new bug report. Thanks for helping the dev team to locate this bug and fix it. Regards, /Olle
Barry Miller
2010-Jan-11 16:30 UTC
[asterisk-users] Asterisk core dumps when using PrivacyManager
On Mon, Jan 11, 2010 at 03:23:33PM +0000, --[ UxBoD ]-- wrote:> Hi, > > why would Asterisk core dump with the following test dialplan extension ? > > exten => 8100,1,Answer() > exten => 8100,n,Set(CALLERID(all)="") > exten => 8100,n,PrivacyManager() > exten => 8100,n,GotoIf(${[${PRIVACYMGRSTATUS} = FAILED]}?:nocid) > exten => 8100,n,NoOp(Number is ${CALLERID(num)}) > exten => 8100,n,Hangup() > exten => 8100,n(nocid),Playback(vm-goodbye) > exten => 8100,n,Hangup() >It shouldn't coredump, but what happens if you remove the extra '{}' from the GotoIf, like so: exten => 8100,n,GotoIf($[${PRIVACYMGRSTATUS} = FAILED]?:nocid) -- Barry