MD7 + Patton SN4552 + A1 ISDN (Österreich) eingehende Anrufe ohne Nebenstelle

Hallo,

ich versuche MD7 (7.01) mit einem Patton SN4552/2BIS/EUI Gateway zum laufen zu bringen.
Das Gateway wurde automatisch gefunden und konfiguriert.
Festnetzanschluss ISDN von der Telekom Austria (A1), vorher war eine Nebenstellenanlage (Siemens Hicom 100E) dran.

Was funktioniert:
Ausgehende Anrufe: Ja
Eingehende Anrufe: Nur zu Nebenstellen.

Wenn ich die Hauptnummer anrufe, also in dem Fall 296126, kommt folgender Asterisk Fehler:


[Apr 24 18:53:13] NOTICE[3841]: chan_sip.c:22654 handle_request_invite: Call from 'MAC00a0ba064dfcID1' (10.33.0.183:5061) to extension 'anonymous' rejected because extension not found in context 'mdc_patton-1'.

Wenn ich die Nebenstelle 296126 10 anrufe, funktioniert es, LOG:


  == Using SIP RTP CoS mark 5
    -- Executing [10@mdc_patton-1:1] Goto("SIP/MAC00a0ba064dfcID1-00000048", "mdc_incoming-1,10,1") in new stack
    -- Goto (mdc_incoming-1,10,1)
    -- Executing [10@mdc_incoming-1:1] Set("SIP/MAC00a0ba064dfcID1-00000048", "MDC_CALLER_NUM_TRUNK=06642615xxx") in new stack
    -- Executing [10@mdc_incoming-1:2] Set("SIP/MAC00a0ba064dfcID1-00000048", "MDC_CALLEE_NUM_TRUNK=10") in new stack
    -- Executing [10@mdc_incoming-1:3] Goto("SIP/MAC00a0ba064dfcID1-00000048", "mdc_trunk-1,s,1") in new stack
    -- Goto (mdc_trunk-1,s,1)
    -- Executing [s@mdc_trunk-1:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,callee number: 10 caller number: 06642615xxx") in new stack
 callee number: 10 caller number: 06642615xxx
    -- Executing [s@mdc_trunk-1:2] GosubIf("SIP/MAC00a0ba064dfcID1-00000048", "0?sub_internat,s,1(CALLERID(num),06642615xxx,00)") in new stack
    -- Executing [s@mdc_trunk-1:3] Gosub("SIP/MAC00a0ba064dfcID1-00000048", "sub_nat2int,s,1(MDC_CALLER_NUM_INTERNAT,06642615xxx,00,43,0,316)") in new stack
    -- Executing [s@sub_nat2int:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - CALLERID(num): 06642615xxx - intVAZ: 00 - lkz: 43 - natVAZ: 0 - onKz: 316") in new stack
 sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - CALLERID(num): 06642615xxx - intVAZ: 00 - lkz: 43 - natVAZ: 0 - onKz: 316
    -- Executing [s@sub_nat2int:2] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "0?s-int,1") in new stack
    -- Executing [s@sub_nat2int:3] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "0?s-int,1") in new stack
    -- Executing [s@sub_nat2int:4] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "0?s-intshort,1") in new stack
    -- Executing [s@sub_nat2int:5] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "0?s-natshort,1") in new stack
    -- Executing [s@sub_nat2int:6] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "1?s-nat,1") in new stack
    -- Goto (sub_nat2int,s-nat,1)
    -- Executing [s-nat@sub_nat2int:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,national") in new stack
 national
    -- Executing [s-nat@sub_nat2int:2] Set("SIP/MAC00a0ba064dfcID1-00000048", "MDC_CALLER_NUM_INTERNAT=00436642615729") in new stack
    -- Executing [s-nat@sub_nat2int:3] Return("SIP/MAC00a0ba064dfcID1-00000048", "") in new stack
    -- Executing [s@mdc_trunk-1:4] Set("SIP/MAC00a0ba064dfcID1-00000048", "CALLERID(num)=00436642615729") in new stack
    -- Executing [s@mdc_trunk-1:5] Gosub("SIP/MAC00a0ba064dfcID1-00000048", "sub_int2nat,s,1(MDC_CALLER_NUM_NAT,00436642615729,00,43,0,316)") in new stack
    -- Executing [s@sub_int2nat:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 00436642615729 - intVAZ: 00 - lkz: 43 - natVAZ: 0 - onKz: 316") in new stack
 sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 00436642615729 - intVAZ: 00 - lkz: 43 - natVAZ: 0 - onKz: 316
    -- Executing [s@sub_int2nat:2] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "0?nat") in new stack
    -- Executing [s@sub_int2nat:3] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "1?s-internat,1") in new stack
    -- Goto (sub_int2nat,s-internat,1)
    -- Executing [s-internat@sub_int2nat:1] Set("SIP/MAC00a0ba064dfcID1-00000048", "MDC_CALLER_NUM_NAT=06642615xxx") in new stack
    -- Executing [s-internat@sub_int2nat:2] Return("SIP/MAC00a0ba064dfcID1-00000048", "") in new stack
    -- Executing [s@mdc_trunk-1:6] Set("SIP/MAC00a0ba064dfcID1-00000048", "CALLERID(num)=06642615xxx") in new stack
    -- Executing [s@mdc_trunk-1:7] Gosub("SIP/MAC00a0ba064dfcID1-00000048", "sub_pb-search,s,1(CALLERID(name),06642615xxx,06642615xxx,00436642615xxx,+436642615xxx)") in new stack
    -- Executing [s@sub_pb-search:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,sub_pb-search variable: CALLERID(name) calleridnum: 06642615xxx national: 06642615xxx international: 00436642615xxx +internat: +436642615xxx") in new stack
 sub_pb-search variable: CALLERID(name) calleridnum: 06642615xxx national: 06642615xxx international: 00436642615xxx +internat: +436642615xxx
[Apr 24 18:54:52] NOTICE[20500]: res_odbc.c:1527 odbc_obj_connect: Connecting md
[Apr 24 18:54:52] NOTICE[20500]: res_odbc.c:1559 odbc_obj_connect: res_odbc: Connected to md [md]
    -- Executing [s@sub_pb-search:2] Set("SIP/MAC00a0ba064dfcID1-00000048", "HASH(PB_ENTRY)=") in new stack
    -- Executing [s@sub_pb-search:3] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,") in new stack

    -- Executing [s@sub_pb-search:4] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,") in new stack

    -- Executing [s@sub_pb-search:5] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,") in new stack

    -- Executing [s@sub_pb-search:6] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,") in new stack

    -- Executing [s@sub_pb-search:7] Set("SIP/MAC00a0ba064dfcID1-00000048", "CALLERID(name)=") in new stack
    -- Executing [s@sub_pb-search:8] Return("SIP/MAC00a0ba064dfcID1-00000048", "") in new stack
    -- Executing [s@mdc_trunk-1:8] Set("SIP/MAC00a0ba064dfcID1-00000048", "MDC_NUMPREFIX_TRUNK=") in new stack
    -- Executing [s@mdc_trunk-1:9] Goto("SIP/MAC00a0ba064dfcID1-00000048", "mdc_mapping-1,10,1") in new stack
    -- Goto (mdc_mapping-1,10,1)
    -- Executing [10@mdc_mapping-1:1] Set("SIP/MAC00a0ba064dfcID1-00000048", "CHANNEL(language)=de") in new stack
    -- Executing [10@mdc_mapping-1:2] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,mapping from _XX to 10") in new stack
 mapping from _XX to 10
    -- Executing [10@mdc_mapping-1:3] Goto("SIP/MAC00a0ba064dfcID1-00000048", "mdc_external,10,1") in new stack
    -- Goto (mdc_external,10,1)
    -- Executing [10@mdc_external:1] SIPAddHeader("SIP/MAC00a0ba064dfcID1-00000048", ""Alert-Info:<http://www.notused.de>;info=alert-external;x-line-id=0"") in new stack
    -- Executing [10@mdc_external:2] GosubIf("SIP/MAC00a0ba064dfcID1-00000048", "1?sub_initcall,s,1(ext,10)") in new stack
    -- Executing [s@sub_initcall:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,sub_initcall descent: ext exten: 10") in new stack
 sub_initcall descent: ext exten: 10
    -- Executing [s@sub_initcall:2] GosubIf("SIP/MAC00a0ba064dfcID1-00000048", "1?sub_initloop,s,1") in new stack
    -- Executing [s@sub_initloop:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,initial loop") in new stack
 initial loop
    -- Executing [s@sub_initloop:2] Set("SIP/MAC00a0ba064dfcID1-00000048", "MDC_ALIAS_HOP=0") in new stack
    -- Executing [s@sub_initloop:3] Return("SIP/MAC00a0ba064dfcID1-00000048", "") in new stack
    -- Executing [s@sub_initcall:3] Set("SIP/MAC00a0ba064dfcID1-00000048", "__MDC_DIALDESCENT=ext") in new stack
    -- Executing [s@sub_initcall:4] Goto("SIP/MAC00a0ba064dfcID1-00000048", "ext,1") in new stack
    -- Goto (sub_initcall,ext,1)
    -- Executing [ext@sub_initcall:1] Set("SIP/MAC00a0ba064dfcID1-00000048", "__MDC_DIALCALLERNUMINIT=06642615xxx") in new stack
    -- Executing [ext@sub_initcall:2] Set("SIP/MAC00a0ba064dfcID1-00000048", "__MDC_DIALCALLEENUMINIT=10") in new stack
    -- Executing [ext@sub_initcall:3] Return("SIP/MAC00a0ba064dfcID1-00000048", "") in new stack
    -- Executing [10@mdc_external:3] Goto("SIP/MAC00a0ba064dfcID1-00000048", "main,10,1") in new stack
    -- Goto (main,10,1)
    -- Executing [10@main:1] Gosub("SIP/MAC00a0ba064dfcID1-00000048", "sub_defcall,s,1(10)") in new stack
[Apr 24 18:54:52] NOTICE[20500]: func_math.c:424 crement_function_read: The value is now: 1
    -- Executing [s@sub_defcall:1] Set("SIP/MAC00a0ba064dfcID1-00000048", "MDC_ALIAS_HOP=1") in new stack
    -- Executing [s@sub_defcall:2] Set("SIP/MAC00a0ba064dfcID1-00000048", "__MDC_DIALCALLEENUM=10") in new stack
    -- Executing [s@sub_defcall:3] Set("SIP/MAC00a0ba064dfcID1-00000048", "__MDC_DIALCALLERNUM=06642615xxx") in new stack
    -- Executing [s@sub_defcall:4] Set("SIP/MAC00a0ba064dfcID1-00000048", "__MDC_DIALCHANNELNAME=MAC00a0ba064dfcID1") in new stack
    -- Executing [s@sub_defcall:5] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "1?nozap") in new stack
    -- Goto (sub_defcall,s,8)
    -- Executing [s@sub_defcall:8] Set("SIP/MAC00a0ba064dfcID1-00000048", "__MDC_DIALCALLERNAME=") in new stack
    -- Executing [s@sub_defcall:9] Return("SIP/MAC00a0ba064dfcID1-00000048", "") in new stack
    -- Executing [10@main:2] Goto("SIP/MAC00a0ba064dfcID1-00000048", "mdc_distribute,10,1") in new stack
    -- Goto (mdc_distribute,10,1)
    -- Executing [10@mdc_distribute:1] Gosub("SIP/MAC00a0ba064dfcID1-00000048", "sub_user,s,1(callee,6,andrea,Andrea Thaller,10,10)") in new stack
    -- Executing [s@sub_user:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,sub_user mode callee") in new stack
 sub_user mode callee
    -- Executing [s@sub_user:2] Goto("SIP/MAC00a0ba064dfcID1-00000048", "s-callee,1") in new stack
    -- Goto (sub_user,s-callee,1)
    -- Executing [s-callee@sub_user:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,sub_user user id: 6 - user: andrea - realname: Andrea Thaller - own mailbox: 10 - watched mailbox: 10") in new stack
 sub_user user id: 6 - user: andrea - realname: Andrea Thaller - own mailbox: 10 - watched mailbox: 10
    -- Executing [s-callee@sub_user:2] Set("SIP/MAC00a0ba064dfcID1-00000048", "_MDC_CALLEE_USER_ID=6") in new stack
    -- Executing [s-callee@sub_user:3] Set("SIP/MAC00a0ba064dfcID1-00000048", "_MDC_CALLEE_ACC_NAME=andrea") in new stack
    -- Executing [s-callee@sub_user:4] Set("SIP/MAC00a0ba064dfcID1-00000048", "_MDC_CALLEE_ACC_REALNAME=Andrea Thaller") in new stack
    -- Executing [s-callee@sub_user:5] Set("SIP/MAC00a0ba064dfcID1-00000048", "_MDC_CALLEE_VM_OWN=10") in new stack
    -- Executing [s-callee@sub_user:6] Set("SIP/MAC00a0ba064dfcID1-00000048", "_MDC_CALLEE_VM_WATCHED=10") in new stack
    -- Executing [s-callee@sub_user:7] Return("SIP/MAC00a0ba064dfcID1-00000048", "") in new stack
    -- Executing [10@mdc_distribute:2] Goto("SIP/MAC00a0ba064dfcID1-00000048", "mdc_ident-6,10,1") in new stack
    -- Goto (mdc_ident-6,10,1)
    -- Executing [10@mdc_ident-6:1] NoOp("SIP/MAC00a0ba064dfcID1-00000048", "alias-check:: call forwarding from 10 - 0") in new stack
    -- Executing [10@mdc_ident-6:2] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "0?10-uml,1:10-dial,1") in new stack
    -- Goto (mdc_ident-6,10-dial,1)
    -- Executing [10-dial@mdc_ident-6:1] GotoIf("SIP/MAC00a0ba064dfcID1-00000048", "0?10-busy,1") in new stack
    -- Executing [10-dial@mdc_ident-6:2] Set("SIP/MAC00a0ba064dfcID1-00000048", "__MDC_EXTEN=10") in new stack
    -- Executing [10-dial@mdc_ident-6:3] Gosub("SIP/MAC00a0ba064dfcID1-00000048", "sub_prefix-10,ext,1") in new stack
    -- Executing [ext@sub_prefix-10:1] Verbose("SIP/MAC00a0ba064dfcID1-00000048", "1,no action") in new stack
 no action
    -- Executing [ext@sub_prefix-10:2] Return("SIP/MAC00a0ba064dfcID1-00000048", "") in new stack
    -- Executing [10-dial@mdc_ident-6:4] Gosub("SIP/MAC00a0ba064dfcID1-00000048", "sub_main-10,ext,1") in new stack
    -- Executing [ext@sub_main-10:1] Set("SIP/MAC00a0ba064dfcID1-00000048", "__PICKUPMARK=10") in new stack
    -- Executing [ext@sub_main-10:2] Dial("SIP/MAC00a0ba064dfcID1-00000048", "Local/10@mdc_diallocation") in new stack
    -- Called Local/10@mdc_diallocation
    -- Executing [10@mdc_diallocation:1] Verbose("Local/10@mdc_diallocation-289c;2", "1,dial to 10 for user 6") in new stack
 dial to 10 for user 6
    -- Executing [10@mdc_diallocation:2] Gosub("Local/10@mdc_diallocation-289c;2", "sub_split-user,s,1(6)") in new stack
    -- Executing [s@sub_split-user:1] Verbose("Local/10@mdc_diallocation-289c;2", "1,get locations for for: 6") in new stack
 get locations for for: 6
    -- Executing [s@sub_split-user:2] GotoIf("Local/10@mdc_diallocation-289c;2", "0?s-zero,1") in new stack
    -- Executing [s@sub_split-user:3] Set("Local/10@mdc_diallocation-289c;2", "TMP_LOCATIONS=4;0") in new stack
    -- Executing [s@sub_split-user:4] Set("Local/10@mdc_diallocation-289c;2", "TMP_STATIC_ID=4") in new stack
    -- Executing [s@sub_split-user:5] Verbose("Local/10@mdc_diallocation-289c;2", "1,static id: 4") in new stack
 static id: 4
    -- Executing [s@sub_split-user:6] Set("Local/10@mdc_diallocation-289c;2", "TMP_DYN_ID=0") in new stack
    -- Executing [s@sub_split-user:7] Verbose("Local/10@mdc_diallocation-289c;2", "1,dynamic id: 0") in new stack
 dynamic id: 0
    -- Executing [s@sub_split-user:8] Return("Local/10@mdc_diallocation-289c;2", "") in new stack
    -- Executing [10@mdc_diallocation:3] GotoIf("Local/10@mdc_diallocation-289c;2", "0?invalid,1") in new stack
    -- Executing [10@mdc_diallocation:4] GotoIf("Local/10@mdc_diallocation-289c;2", "0?dynamic,1") in new stack
    -- Executing [10@mdc_diallocation:5] GotoIf("Local/10@mdc_diallocation-289c;2", "1?static,1") in new stack
    -- Goto (mdc_diallocation,static,1)
    -- Executing [static@mdc_diallocation:1] Dial("Local/10@mdc_diallocation-289c;2", "Local/ext@mdc_locallocation-4") in new stack
    -- Called Local/ext@mdc_locallocation-4
    -- Executing [ext@mdc_locallocation-4:1] Dial("Local/ext@mdc_locallocation-4-54a5;2", "Local/ext-3@mdc_localdevice-4") in new stack
    -- Called Local/ext-3@mdc_localdevice-4
    -- Executing [ext-3@mdc_localdevice-4:1] Verbose("Local/ext-3@mdc_localdevice-4-01a9;2", "1,Dialing with delay of 0 seconds for 20 seconds") in new stack
 Dialing with delay of 0 seconds for 20 seconds
    -- Executing [ext-3@mdc_localdevice-4:2] Dial("Local/ext-3@mdc_localdevice-4-01a9;2", "SIP/v51DSj9YQ2fbdc0,20") in new stack
  == Using SIP RTP CoS mark 5
    -- Called SIP/v51DSj9YQ2fbdc0
    -- SIP/v51DSj9YQ2fbdc0-00000049 is ringing
    -- Local/ext-3@mdc_localdevice-4-01a9;1 is ringing
    -- Local/ext@mdc_locallocation-4-54a5;1 is ringing
    -- Local/10@mdc_diallocation-289c;1 is ringing
  == Spawn extension (sub_main-10, ext, 2) exited non-zero on 'SIP/MAC00a0ba064dfcID1-00000048'
  == Spawn extension (mdc_diallocation, static, 1) exited non-zero on 'Local/10@mdc_diallocation-289c;2'

Die Einstellungen für Amt/Eingehend:

Alles:
Quelle: *, Ziel: *, Durchwahl: 10

Nebenstellen:
Quelle: *, Ziel: _XX, Durchwahl: ${EXTEN:-2}

Wo kann hier der Fehler liegen?

Mit freundlichen Grüßen,
Roman

Guten Morgen Roman,

einige Provider haben die Angewohnheit, dass sie, wenn die Stammnummer selbst gerufen wird, keine Rufnummer übermitteln.
Das patton macht dann daraus ein anonymous als Rufnummer.

Dieser Fall wird für patton in der MobyDick noch nicht abgedeckt. Ich habe einen Bug aufgenommen und diesen für das nächste Release eingeplant. Bugfix-Release ist für morgen geplant.
Also bitte noch ein wenig Geduld.

Gruß
Markus

Hallo Markus,

danke für die Bearbeitung und Info.

Servus,
Roman

Hallo,

ich habe heute die Version 7.02.01 installiert, jetzt kommt dieser Fehler beim Anruf auf die Hauptnummer:


  == Using SIP RTP CoS mark 5
    -- Executing [anonymous@mdc_patton-2:1] Goto("SIP/MAC00a0ba064dfcID3-00000017", "mdc_incoming-gw2,s,1") in new stack
    -- Goto (mdc_incoming-gw2,s,1)
[Jun 11 19:31:01] WARNING[4312]: pbx.c:5119 __ast_pbx_run: Channel 'SIP/MAC00a0ba064dfcID3-00000017' sent into invalid extension 's' in context 'mdc_incoming-gw2', but no invalid handler

Nebenstellen funktionieren wie gehabt.
Ist hier noch ein Fehler in Mobydick oder liegts nun bei mir?

MfG,
Roman

Hallo Roman,

du musst für das Amt noch eine eingehende Regel mit s als Ziel und einer entsprechenden Durchwahl definieren. Dann sollten die Anrufe entsprechend weitergeleitet werden.

Gruß
Markus

danke Markus, das wars :slight_smile:

Lg,
Roman

Hallo nochmal,

nachdem nun alles gut funktioniert, folgendes Problem inkl. Lösung:

Bei einstelligen Nebenstellen funktioniert die Anlage nicht, der Grund ist der Asterisk-Rufnummernerkennung ‘_X.’ und …‘9].’

Wenn ich in der md_extension.conf folgendes suche und ersetze:
_X. -> _X!
9]. -> 9]!

funktioniert alles. Ist es möglich per default den . (>=2 Zeichen) durch ein ! (>=1 Zeichen) zu ersetzen? Wenn nicht ist es möglich eine Option dafür einzubauen?
Momentan lasse ich nach jeder Änderung folgendes Script im Verz. der Asterisk Konfiguration laufen:

sed 's/_X./_X!/g' mdc_extensions.conf > mdc_extensions.conf2
sed 's/9]./9]!/g' mdc_extensions.conf2 > mdc_extensions.conf
/etc/init.d/asterisk reload

MfG,
Roman