Dialplan executing everything twice

Greetings,

I’m having problems with my server where it is running Dialplan commands twice. Regarding the ‘300’ extension below, I am hearing the tones starting to play twice. ie they sound like they are stuttering.

I am dialing this extension from an X-Lite softphone.

Here’s the related extensions.conf:

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]
CONSOLE=SIP/phone1
IAXINFO=guest
TRUNK=Zap/g1
TRUNKMSD=1

[testing]
exten => 300,1,Playtones(info)
exten => 300,2,Wait(30)
exten => 300,3,StopPlaytones()
exten => 300,4,Goto(incoming,s,1)

; End of extensions.conf ===================

Here’s the logger output at Verbosity 7 when I run this:

-- Executing Goto("SIP/jr_at_home-f864", "incoming|300|1") in new stack
-- Executing Goto("SIP/jr_at_home-f864", "incoming|300|1") in new stack
-- Goto (incoming,300,1)
-- Goto (incoming,300,1)
-- Executing PlayTones("SIP/jr_at_home-f864", "info") in new stack
-- Executing PlayTones("SIP/jr_at_home-f864", "info") in new stack
-- Executing Wait("SIP/jr_at_home-f864", "30") in new stack
-- Executing Wait("SIP/jr_at_home-f864", "30") in new stack

== Spawn extension (incoming, 300, 2) exited non-zero on ‘SIP/jr_at_home-f864’
== Spawn extension (incoming, 300, 2) exited non-zero on ‘SIP/jr_at_home-f864’

; End of log

Any help would be appreciated; please accept my apologies if this has been posted elsewhere. If it has, could you redirect me to that thread?

Thanks,
JR

I have not seen that before. Are you sure it is executing twice? Have you started your Asterisk with the option ‘-vvv’ and then also done an ‘asterisk -r’ to watch the console? That would explain why things are appearing on your screen twice and then maybe the ‘stutter’ is a different issue.

Which version of Asterisk are you using?

MuppetMaster,

Thanks for your reply.

You were correct.

It turns out that I had started the asterisk daemon, then connected to it, then dropped to the shell (! from CLI), then reconnected to it at high verbosity, and then it started outputting double eventlogs.

Thanks for helping me out!

/jr

How does one prevent the duplicate CLI output? It’s normal to start Asterisk with -vvv and then reconnect later with -r. Will there always be duplicate output?

not sure you understand. at the Asterisk CLI > interface, if you type a single ‘!’ and press enter you’ll drop to a shell prompt. you should then type ‘exit’ to go back to the CLI, but if you type ‘asterisk -r’ then you have 2 consoles running in the same shell.

Oh, I see what you mean. I’m not doing that but still getting duplicate CLI output when using Trixbox.

Boot computer
Type 'asterisk -r’
Get duplicate CLI output.

Really annoying but not too serious.