Dial Plan Troubles


#1

Hey Guys,

Can anyone spot a problem with this;

[SupportNew]
exten => s,1,Background(supportstart)
exten => s,2,Read(PHONENUMBER)
exten => s,3,Background(supportend)
exten => s,4,Hangup()

Normally there is another step between 2 + 3 that will email PHONENUMBER to me, but I have taken it out to troubleshoot.

Upon running this the CLI throws up " Invalid extension ‘2’, but no rule ‘i’ in context ‘SupportNew’ "

It looks ok to me tho?!

Any thoughts much appreciated :wink:

Cheers
Nick


#2

Appears that background likes to wait for the Exten.

Replaced Background with PlayBack and it was ok.

Nick.


#3

[quote=“Nickbrown”]Upon running this the CLI throws up " Invalid extension ‘2’, but no rule ‘i’ in context ‘SupportNew’ "

It looks ok to me tho?![/quote]
How does it look ok to you? There doesn’t appear to be an extension ‘2’ in that context, or an ‘i’ extension - so the error message makes sense to me.


#4

??

Either way its working now. And ‘i’ is the invalid extension, hence not required.


#5

That’s not extension ‘2’ - that’s extension ‘s’, step 2.