How to get the digited internal number

Hi!
I’m trying to get the digited internal to which then transferring the call:
I’m doing in a test area, so first of all i have set up that I call 1111

exten => 1111,1,Goto(intro,s,1)

where I have defined “intro” as follow

[intro]
exten => s,1,Ringing
exten => s,2,Wait,2
exten => s,3,Playback(intro_voice)
exten => s,6,Dial(Sip/${EXTEN})

Unfortunately, when I digit the extension, it seems the system is not able
to handle the digited number: where am I wrong? Shall i set a timeout
in the digit or what?
Any help will be very appreciated.
Thanks!!

Arcetrax

Littler confused on what you are trying to do but I think you will need to try
exten => s,3,Background(intro_voice)
exten => s,4,Dial(Sip/${EXTEN})

amd I also think you will need an include = to include the context where the extensions are defined

the ${EXTEN} variable will be the extension for the given context. In your [intro] context, the extension is ‘s’, which means that you would need an [s] in your sip.conf for that to work. Probably, you want a macro that looks more like this:

[default]
exten => 1111,1,Macro(DialMe,${EXTEN})

[macro-DialMe]
exten => s,1,Ringing
exten => s,2,Wait,2
exten => s,3,Playback(intro_voice)
exten => s,6,Dial(SIP/${ARG1})