2 Ämter mit unterschiedlichen Vorwahlen nicht gleichzeitig nutzbar?

Hi,
ich habe hier ein merkwürdiges Phänomen in einem Teil-Produktivsystem.
Ich habe zwei Ämter konfiguriert, welche ich einzeln aktiv wunderbar betreiben kann.
Sind beide Ämter gleichzeitig aktiv geschaltet, werden die Durchwahlen des zweiten Amtes nicht mehr gemappt.

Amt 1 (Dahme):
04364 123456 geht intern auf die 154

Amt 2 (Eutin):
04521 654321 geht auf die 100

Solange nur ein Amt aktiv ist, funktioniert alles. Wenn beide aktiv sind, funktioniert nur das erste.
Auf dem 2. Trunk kommt dann nur “Leider haben Sie keine gültige Nummer gewählt”

Interessant ist, dass auch das Fallback von Amt 2 nicht funktioniert.
Weiter ist es kurios, dass in die CLI beim Anruf auf Amt 2 ausgibt, dass ich auf Amt 1 anrufe:

Executing [04521654321@mdc_incoming-10:1] Verbose("PJSIP/mdc_trunk_conf-10-0000001a", "1,Inbound call on trunk: Dahme, getting number by: request-uri") in new stack

Leider ist die Vorwahl 04521 nicht Dahme (04364), sondern Eutin.

Sobald ich einen Trunk deaktiviere, ist alles wieder schick.

Jetzt habe ich einfach Mal beide Ämter gelöscht und neu programmiert. Selbes Spiel, nur dass jetzt der andere Trunk spinnt.

Da ich bald mit 5 Trunks an 4 Standorten über eine Instanz online gehe, muss das schnell funktionieren.

Habt ihr eine Idee?

Hier noch Mal die CLI nach dem Löschen aller Trunks. Jetzt wird Dahme angewählt, jedoch Eutin erkannt.

-- Executing [04364123456@mdc_incoming-10:1] Verbose("PJSIP/mdc_trunk_conf-10-0000001a", "1,Inbound call on trunk: Eutin Zentrale, getting number by: request-uri") in new stack Inbound call on trunk: Eutin Zentrale, getting number by: request-uri
-- Executing [04364123456@mdc_incoming-10:2] Set("PJSIP/mdc_trunk_conf-10-0000001a", "MDC_CALLER_NUM_TRUNK=0MEINE_NUMMER") in new stack
-- Executing [04364123456@mdc_incoming-10:3] Set("PJSIP/mdc_trunk_conf-10-0000001a", "MDC_CALLEE_NUM_TRUNK=04364123456") in new stack
-- Executing [04364123456@mdc_incoming-10:4] Goto("PJSIP/mdc_trunk_conf-10-0000001a", "mdc_trunk-10,s,1") in new stack
-- Goto (mdc_trunk-10,s,1)
-- Executing [s@mdc_trunk-10:1] Verbose("PJSIP/mdc_trunk_conf-10-0000001a", "1,callee number: 04364123456 caller number: 0MEINE_NUMMER") in new stack callee number: 04364123456 caller number: 0MEINE_NUMMER
-- Executing [s@mdc_trunk-10:2] ExecIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?Set(CALLERID(num)=anonymous)") in new stack
-- Executing [s@mdc_trunk-10:3] ExecIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?Set(CALLERID(num)=anonymous)") in new stack
-- Executing [s@mdc_trunk-10:4] ExecIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?Set(CALLERID(num)=anonymous)") in new stack
-- Executing [s@mdc_trunk-10:5] Set("PJSIP/mdc_trunk_conf-10-0000001a", "CHANNEL(language)=de") in new stack
-- Executing [s@mdc_trunk-10:6] Ringing("PJSIP/mdc_trunk_conf-10-0000001a", "") in new stack
-- Executing [s@mdc_trunk-10:7] Progress("PJSIP/mdc_trunk_conf-10-0000001a", "") in new stack
-- Executing [s@mdc_trunk-10:8] Gosub("PJSIP/mdc_trunk_conf-10-0000001a","sub_nat2int,s,1(MDC_CALLER_NUM_INTERNAT,0MEINE_NUMMER,00,49,0,4521,1)") in new stack
-- Executing [s@sub_nat2int:1] Verbose("PJSIP/mdc_trunk_conf-10-0000001a", "1,sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - number: 0MEINE_NUMMER - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 4521 - incoming: 1") in new stack
sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - number: 0MEINE_NUMMER - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 4521 - incoming: 1
-- Executing [s@sub_nat2int:2] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?s-emergency,1") in new stack
-- Executing [s@sub_nat2int:3] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?s-int,1") in new stack
-- Executing [s@sub_nat2int:4] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?s-int,1") in new stack
-- Executing [s@sub_nat2int:5] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?s-convert,1") in new stack
-- Executing [s@sub_nat2int:6] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?s-int,1") in new stack
-- Executing [s@sub_nat2int:7] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?s-intshort,1") in new stack
-- Executing [s@sub_nat2int:8] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?s-natshort,1") in new stack
-- Executing [s@sub_nat2int:9] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "1?s-nat,1") in new stack
-- Goto (sub_nat2int,s-nat,1)
-- Executing [s-nat@sub_nat2int:1] Verbose("PJSIP/mdc_trunk_conf-10-0000001a", "1,national") in new stack
national
-- Executing [s-nat@sub_nat2int:2] Set("PJSIP/mdc_trunk_conf-10-0000001a", "MDC_CALLER_NUM_INTERNAT=0049MEINE_NUMMER") in new stack
-- Executing [s-nat@sub_nat2int:3] Return("PJSIP/mdc_trunk_conf-10-0000001a", "") in new stack
-- Executing [s@mdc_trunk-10:9] Set("PJSIP/mdc_trunk_conf-10-0000001a", "CALLERID(num)=0049MEINE_NUMMER") in new stack
-- Executing [s@mdc_trunk-10:10] Gosub("PJSIP/mdc_trunk_conf-10-0000001a", "sub_int2nat,s,1(MDC_CALLER_NUM_NAT,0049MEINE_NUMMER,00,49,0,4521,1)") in new stack
-- Executing [s@sub_int2nat:1] Verbose("PJSIP/mdc_trunk_conf-10-0000001a", "1,sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 0049MEINE_NUMMER - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 4521 - incoming: 1") in new stack
sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 0049MEINE_NUMMER - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 4521 - incoming: 1
-- Executing [s@sub_int2nat:2] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?s-emergency,1") in new stack
-- Executing [s@sub_int2nat:3] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?nat") in new stack
-- Executing [s@sub_int2nat:4] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "1?s-internat,1") in new stack
-- Goto (sub_int2nat,s-internat,1)
-- Executing [s-internat@sub_int2nat:1] Set("PJSIP/mdc_trunk_conf-10-0000001a", "MDC_CALLER_NUM_NAT=0MEINE_NUMMER") in new stack
-- Executing [s-internat@sub_int2nat:2] Return("PJSIP/mdc_trunk_conf-10-0000001a", "") in new stack
-- Executing [s@mdc_trunk-10:11] Set("PJSIP/mdc_trunk_conf-10-0000001a", "CALLERID(num)=0MEINE_NUMMER") in new stack
-- Executing [s@mdc_trunk-10:12] Set("PJSIP/mdc_trunk_conf-10-0000001a", "__MDC_CALLER_NUM=0049MEINE_NUMMER") in new stack
-- Executing [s@mdc_trunk-10:13] Set("PJSIP/mdc_trunk_conf-10-0000001a", "MDC_NUMPREFIX_TRUNK=") in new stack
-- Executing [s@mdc_trunk-10:14] Goto("PJSIP/mdc_trunk_conf-10-0000001a", "mdc_mapping-10,04364123456,1") in new stack
-- Goto (mdc_mapping-10,04364123456,1)
-- Executing [04364123456@mdc_mapping-10:1] Verbose("PJSIP/mdc_trunk_conf-10-0000001a", "1,>>>no catch all - no trunk fallback") in new stack
>>>no catch all - no trunk fallback
-- Executing [04364123456@mdc_mapping-10:2] Goto("PJSIP/mdc_trunk_conf-10-0000001a", "exceptions,04364123456,1") in new stack
-- Goto (exceptions,04364123456,1)
-- Channel 'PJSIP/mdc_trunk_conf-10-0000001a' sent to invalid extension: context,exten,priority=exceptions,04364123456,1
-- Executing [i@exceptions:1] Goto("PJSIP/mdc_trunk_conf-10-0000001a", "mdc_exception,s,1") in new stack
-- Goto (mdc_exception,s,1)
-- Executing [s@mdc_exception:1] Gosub("PJSIP/mdc_trunk_conf-10-0000001a", "def_exception,s,1") in new stack
-- Executing [s@def_exception:1] GotoIf("PJSIP/mdc_trunk_conf-10-0000001a", "0?main,,1") in new stack
-- Executing [s@def_exception:2] Answer("PJSIP/mdc_trunk_conf-10-0000001a", "") in new stack
-- Executing [s@def_exception:3] Playback("PJSIP/mdc_trunk_conf-10-0000001a", "pbx-invalid") in new stack
-- <PJSIP/mdc_trunk_conf-10-0000001a> Playing 'pbx-invalid.slin' (language 'de')

Wenn es der selbe Provider ist, musst du nur ein Amt anlegen und darin beide Accounts konfigurieren.
Dann greifen auch deine Regeln.

Vielen Dank @Rippi für die Antwort,
anfangs habe ich auch daran gedacht, alles in ein Amt zu legen. Aber die Accounts haben unterschiedliche Vorwahlen. Funktioniert das? Da in den Basisdaten des Accounts die Vorwahl abgefragt wird, habe ich es dann gelassen. Wofür wird denn die Vorwahl abgefragt, wenn man in das Amt verschiedene Vorwahlbereiche reinlegen kann? Ich verstehe den Zusammenhang noch nicht so ganz.
Danke

Edit: Es funktioniert, wie du es gesagt hast. Mich stören dann nur noch die Basisdaten