Get the called extension to custom destination

Dear all,

i have around 200 extensions and i want the people to get notified when the extension is busy and then ring again on the current extension.

I went the extension Optional Destinations and set a Announcement that say “extensions is busy please wait”.
The Announcement have as destination a custom destination called busy-ext-plan with a target ( busy-ext-plan,s,1 ).

The question is how i will get the extension as variable since it’s start with “s” custom context bellow

exten => s,1,NoOp(Dial the exten)
same => n,set(timeoutd=60) ; hard set timeout in seconds
same => n,Macro(blkvm-set, ); block vm
same => n,NoOP( the EXTEN is ${EXTEN} )
same => n,dial(local/${EXTEN}@from-internal,${timeoutd})

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.