Hi Mathias,
hier der Outout aus der Cli.
-- Executing Goto("SIP/administrator-b6b06a30", "mdc_trunk-1|5367377|1") in new stack
-- Goto (mdc_trunk-1,5367377,1)
-- Executing Set("SIP/administrator-b6b06a30", "__MDC_DIALCALLERNUM=0170*******") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CDR(mdcinitsrc)=0170*******") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "LANGUAGE()=de") in new stack
-- Executing MacroIf("SIP/administrator-b6b06a30", "0?internat|00") in new stack
-- Executing Macro("SIP/administrator-b6b06a30", "nat2int|0170*******|00|49|0|8431") in new stack
-- Executing NoOp("SIP/administrator-b6b06a30", "macro-nat2int:: CALLERID(num): 0170******* - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 8431") in new stack
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?s-int|1") in new stack
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?s-int|1") in new stack
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?s-intshort|1") in new stack
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?s-natshort|1") in new stack
-- Executing GotoIf("SIP/administrator-b6b06a30", "1?s-nat|1") in new stack
-- Goto (macro-nat2int,s-nat,1)
-- Executing NoOp("SIP/administrator-b6b06a30", "national") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "MDC_LONGEXTEN=0049170*******") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CALLERID(num)=0049170*******") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CDR(mdcsrc)=0049170*******") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CDR(mdctrubez)=Telekom") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CDR(mdcprefix)=0") in new stack
-- Executing Macro("SIP/administrator-b6b06a30", "int2nat|0049170*******|00|49|0|8431") in new stack
-- Executing NoOp("SIP/administrator-b6b06a30", "macro-int2nat:: EXTEN: 0049170******* - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 8431") in new stack
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?nat") in new stack
-- Executing GotoIf("SIP/administrator-b6b06a30", "1?s-internat|1") in new stack
-- Goto (macro-int2nat,s-internat,1)
-- Executing Set("SIP/administrator-b6b06a30", "MDC_EXTEN=0170*******") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CALLERID(num)=0170*******") in new stack
-- Executing Macro("SIP/administrator-b6b06a30", "ldap||CALLERID(name)|0170*******|0049170*******|0170*******|+49170*******") in new stack
-- Executing NoOp("SIP/administrator-b6b06a30", "macro-ldap:: Ldappraefix: Variable: CALLERID(name) MDC_DIALCALLERNUM: 0170******* MDC_LONGEXTEN: 0049170******* MDC_EXTEN: 0170******* +MDC_LONGEXTEN: +49170*******") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "TMP_NAME=") in new stack
-- Executing Macro("SIP/administrator-b6b06a30", "ldapsearch|0170*******|TMP_NAME") in new stack
-- Executing NoOp("SIP/administrator-b6b06a30", "macro-ldapsearch:: Nummer: 0170******* Variable: TMP_NAME") in new stack
-- Executing LDAPget("SIP/administrator-b6b06a30", "TMP_NAME=cidname/0170*******|0170*******|0170*******") in new stack
-- LDAPget: varname=TMP_NAME, config-section=cidname, keys=0170*******|0170*******|0170*******
== Parsing '/etc/asterisk/ldap.conf': Found
-- LDAPget: ldap://localhost/dc=mobydick?cn?sub?(&(objectClass=person)(|(telephoneNumber=0170*******)(mobile=0170*******)(homephone=0170*******)))
-- LDAPget: bind to localhost as cn=admin,dc=telefonbuch,dc=mobydick
-- LDAPget: Value not found in directory.
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?hit") in new stack
-- Executing Macro("SIP/administrator-b6b06a30", "ldapsearch|0049170*******|TMP_NAME") in new stack
-- Executing NoOp("SIP/administrator-b6b06a30", "macro-ldapsearch:: Nummer: 0049170******* Variable: TMP_NAME") in new stack
-- Executing LDAPget("SIP/administrator-b6b06a30", "TMP_NAME=cidname/0049170*******|0049170*******|0049170*******") in new stack
-- LDAPget: varname=TMP_NAME, config-section=cidname, keys=0049170*******|0049170*******|0049170*******
== Parsing '/etc/asterisk/ldap.conf': Found
-- LDAPget: ldap://localhost/dc=mobydick?cn?sub?(&(objectClass=person)(|(telephoneNumber=0049170*******)(mobile=0049170*******)(homephone=0049170*******)))
-- LDAPget: bind to localhost as cn=admin,dc=telefonbuch,dc=mobydick
-- LDAPget: Value not found in directory.
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?hit") in new stack
-- Executing Macro("SIP/administrator-b6b06a30", "ldapsearch|0170*******|TMP_NAME") in new stack
-- Executing NoOp("SIP/administrator-b6b06a30", "macro-ldapsearch:: Nummer: 0170******* Variable: TMP_NAME") in new stack
-- Executing LDAPget("SIP/administrator-b6b06a30", "TMP_NAME=cidname/0170*******|0170*******|0170*******") in new stack
-- LDAPget: varname=TMP_NAME, config-section=cidname, keys=0170*******|0170*******|0170*******
== Parsing '/etc/asterisk/ldap.conf': Found
-- LDAPget: ldap://localhost/dc=mobydick?cn?sub?(&(objectClass=person)(|(telephoneNumber=0170*******)(mobile=0170*******)(homephone=0170*******)))
-- LDAPget: bind to localhost as cn=admin,dc=telefonbuch,dc=mobydick
-- LDAPget: Value not found in directory.
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?hit") in new stack
-- Executing Macro("SIP/administrator-b6b06a30", "ldapsearch|+49170*******|TMP_NAME") in new stack
-- Executing NoOp("SIP/administrator-b6b06a30", "macro-ldapsearch:: Nummer: +49170******* Variable: TMP_NAME") in new stack
-- Executing LDAPget("SIP/administrator-b6b06a30", "TMP_NAME=cidname/+49170*******|+49170*******|+49170*******") in new stack
-- LDAPget: varname=TMP_NAME, config-section=cidname, keys=+49170*******|+49170*******|+49170*******
== Parsing '/etc/asterisk/ldap.conf': Found
-- LDAPget: ldap://localhost/dc=mobydick?cn?sub?(&(objectClass=person)(|(telephoneNumber=+49170*******)(mobile=+49170*******)(homephone=+49170*******)))
-- LDAPget: bind to localhost as cn=admin,dc=telefonbuch,dc=mobydick
-- LDAPget: Value not found in directory.
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?hit") in new stack
-- Executing GotoIf("SIP/administrator-b6b06a30", "1?fallback") in new stack
-- Goto (macro-ldap,s,18)
-- Executing GotoIf("SIP/administrator-b6b06a30", "0?int") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CALLERID(name)=0170*******") in new stack
-- Executing Goto("SIP/administrator-b6b06a30", "back") in new stack
-- Goto (macro-ldap,s,25)
-- Executing NoOp("SIP/administrator-b6b06a30", "macro-ldap:: finished") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CALLERID(num)=00170*******") in new stack
-- Executing Set("SIP/administrator-b6b06a30", "CDR(mdcsrcname)=0170*******") in new stack
-- Executing Goto("SIP/administrator-b6b06a30", "mdc_external-1|5367377|1") in new stack
-- Goto (mdc_external-1,5367377,1)
-- Sent into invalid extension '5367377' in context 'mdc_external-1' on SIP/administrator-b6b06a30
-- Executing Answer("SIP/administrator-b6b06a30", "") in new stack
-- Executing Playback("SIP/administrator-b6b06a30", "pbx-invalid") in new stack
-- Playing 'pbx-invalid' (language 'de')
== Spawn extension (mdc_external-1, i, 2) exited non-zero on 'SIP/administrator-b6b06a30'