Can't dial out of a conference

Hi,
I am trying to dynamically add users to a conference, like the example in the ConfBridge documentation:

wiki.asterisk.org/wiki/display/ … fBridge+10

I defined a custom menu which uses dialplan_exec when I dial 0. The problem is that I am getting this error:

WARNING[15621][C-00000000] pbx.c: Channel ‘SIP/SpeakEZAdmin-00000000’ sent to invalid extension but no invalid handler: context,exten,priority=addcaller, 1006,1

the addcaller context, and extension 1006 exist in my extensions.conf file:

[addcaller]
exten => 1006, 1, GotoIf($["${NEXT_PARTICIPANT}"="${NUM_PARTICIPANTS}"]?done)
same => n,Set(CALLEE,${PARTICIPANT${NEXT_PARTICIPANT})
same => n,Originate(${CALLEE}, exten, conferences, 1007, 1)
same => n,Set(NEXT_PARTICIPANT=$[${NEXT_PARTICIPANT} + 1])
same => n(done),NoOp

[conferences]
exten => 1007,1,Answer
same => n,ConfBridge(1234,speakez_bridge,speakez_user)
same => n,Hangup

it also shows when I type dialplan show addcaller in the CLI:

dialplan show addcaller
[ Context ‘addcaller’ created by ‘pbx_config’ ]
‘1006’ => 1. GotoIf($["${NEXT_PARTICIPANT}"="${NUM_PARTICIPANTS}"]?done) [pbx_config]
2. Set(CALLEE,${PARTICIPANT${NEXT_PARTICIPANT}) [pbx_config]
3. Originate(${CALLEE}, exten, conferences, 1007, 1) [pbx_config]
4. Set(NEXT_PARTICIPANT=$[${NEXT_PARTICIPANT} + 1]) [pbx_config]
[done] 5. NoOp() [pbx_config]

What am I doing wrong?

Thanks.

But extension " 1006" doesn’t exist in it.

Thanks! newbie mistake, I didn’t know extension names could have blanks in them.