Skip to main content

Extension dialing between Tenants help

Posted by trinicom on Tue, 02/28/2012

Greetings all,

I followed the suggestions from Erik from an old post and I can not get it to work.

I set up the script in the Script Library called Transfers4RSMTW"
put this into it
exten => s,1,Goto(from-inside-RSMTW,${EXTEN},1)

set up the outbound route to trigger it

_8xx

When I dial i get this error in the console
sent into invalid extension 's' in context 'from-inside-RSMTW', but no invalid handler

However when I do this in the script library

exten => s,1,Goto(from-inside-RSMTW,814,1)

it works perfect.

it is like the ${EXTEN} varible is not being passed along.

I am sure it is something super simple I am missing

thanks in advance!

Keith


Submitted by eeman on Wed, 02/29/2012 Permalink

the ${EXTEN} variable is in fact NOT being passed along :-) that variable always matches the value to the right of => , in this case 's'. You're looking for ${MACRO_EXTEN} if you want to know the extension number before invoking a macro.

Submitted by trinicom on Wed, 02/29/2012 Permalink

Excellent, thanks again works perfect

_3XXX runs a Goto(from-inside-${ARG1},${MACRO_EXTEN},1)
and ARG1= tenantname

Cheers!

Keith