Hi,
You can use this small dial plan that I have wrote for you. Add it to the extensions_custom.conf
file and then run this command from the linux console (not the Asterisk console): asterisk -rx'dialplan reload'
[from-internal-custom]
exten => _+49-X.,1,Set(LDAP_CONTACT=${CUT(EXTEN,,4)})
exten => _+49-X.,n,NoOp(LDAP_CONTACT is: ${LDAP_CONTACT})
exten => _+49-X.,n,Goto(from-internal,${LDAP_CONTACT},1)
exten => _+49-X.,n,Hangup
Please report back for your results.
Thank you,
Daniel Friedman
Trixton LTD.