Fritzbox als Gateway - Zuordnung passt nicht

Hallo,

ich habe eine Fritzbox als Gateway und dort einzelne Sipgate Accounts eingerichtet. Dahinter einzelne Snom Telefone. Jedes einzelne Telefon kann heraustelefonieren und auch mit der “richtigen” Nummer. Bei reintelefonieren, klingelt immer nur ein Telefon.

Bei Benutzer - Team, habe ich eine Zentrale eingerichtet mit der 0. Bei Telefonklingeln steht dort Paralell.

So sieht mein Log aus, wenn ich bei der 0 am ende Anrufe. Dann klingelt aber die 92. Warum?

  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [621@mdc_incoming-14:1] Set("SIP/mdc_trunk_conf-14-00000115", "MDC_CALLER_NUM_TRUNK=017124839561") in new stack
    -- Executing [621@mdc_incoming-14:2] Set("SIP/mdc_trunk_conf-14-00000115", "MDC_CALLEE_NUM_TRUNK=621") in new stack
    -- Executing [621@mdc_incoming-14:3] Goto("SIP/mdc_trunk_conf-14-00000115", "mdc_trunk-15,s,1") in new stack
    -- Goto (mdc_trunk-15,s,1)
    -- Executing [s@mdc_trunk-15:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,callee number: 621 caller number: 017124839561") in new stack
 callee number: 621 caller number: 017124839561
    -- Executing [s@mdc_trunk-15:2] GosubIf("SIP/mdc_trunk_conf-14-00000115", "0?sub_internat,s,1(CALLERID(num),017124839561,00)") in new stack
    -- Executing [s@mdc_trunk-15:3] Gosub("SIP/mdc_trunk_conf-14-00000115", "sub_nat2int,s,1(MDC_CALLER_NUM_INTERNAT,017124839561,00,49,0,211)") in new stack
    -- Executing [s@sub_nat2int:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - CALLERID(num): 017124839561 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 211") in new stack
 sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - CALLERID(num): 017124839561 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 211
    -- Executing [s@sub_nat2int:2] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?s-emergency,1") in new stack
    -- Executing [s@sub_nat2int:3] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?s-int,1") in new stack
    -- Executing [s@sub_nat2int:4] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?s-int,1") in new stack
    -- Executing [s@sub_nat2int:5] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?s-intshort,1") in new stack
    -- Executing [s@sub_nat2int:6] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?s-natshort,1") in new stack
    -- Executing [s@sub_nat2int:7] GotoIf("SIP/mdc_trunk_conf-14-00000115", "1?s-nat,1") in new stack
    -- Goto (sub_nat2int,s-nat,1)
    -- Executing [s-nat@sub_nat2int:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,national") in new stack
 national
    -- Executing [s-nat@sub_nat2int:2] Set("SIP/mdc_trunk_conf-14-00000115", "MDC_CALLER_NUM_INTERNAT=004917124839561") in new stack
    -- Executing [s-nat@sub_nat2int:3] Return("SIP/mdc_trunk_conf-14-00000115", "") in new stack
    -- Executing [s@mdc_trunk-15:4] Set("SIP/mdc_trunk_conf-14-00000115", "CALLERID(num)=004917124839561") in new stack
    -- Executing [s@mdc_trunk-15:5] Gosub("SIP/mdc_trunk_conf-14-00000115", "sub_int2nat,s,1(MDC_CALLER_NUM_NAT,004917124839561,00,49,0,211)") in new stack
    -- Executing [s@sub_int2nat:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 004917124839561 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 211") in new stack
 sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 004917124839561 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 211
    -- Executing [s@sub_int2nat:2] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?s-emergency,1") in new stack
    -- Executing [s@sub_int2nat:3] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?nat") in new stack
    -- Executing [s@sub_int2nat:4] GotoIf("SIP/mdc_trunk_conf-14-00000115", "1?s-internat,1") in new stack
    -- Goto (sub_int2nat,s-internat,1)
    -- Executing [s-internat@sub_int2nat:1] Set("SIP/mdc_trunk_conf-14-00000115", "MDC_CALLER_NUM_NAT=017124839561") in new stack
    -- Executing [s-internat@sub_int2nat:2] Return("SIP/mdc_trunk_conf-14-00000115", "") in new stack
    -- Executing [s@mdc_trunk-15:6] Set("SIP/mdc_trunk_conf-14-00000115", "CALLERID(num)=017124839561") in new stack
    -- Executing [s@mdc_trunk-15:7] UserEvent("SIP/mdc_trunk_conf-14-00000115", "ResolveCallerName,Strategy: default,Outbound: 0,Channel: SIP/mdc_trunk_conf-14-00000115") in new stack
    -- Executing [s@mdc_trunk-15:8] Wait("SIP/mdc_trunk_conf-14-00000115", "0.25") in new stack
    -- Executing [s@mdc_trunk-15:9] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,MDC_RESOLVENAME_HITS = 0") in new stack
 MDC_RESOLVENAME_HITS = 0
    -- Executing [s@mdc_trunk-15:10] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,CALLERID(name) = Marcus Handy") in new stack
 CALLERID(name) = Marcus Handy
    -- Executing [s@mdc_trunk-15:11] Set("SIP/mdc_trunk_conf-14-00000115", "MDC_NUMPREFIX_TRUNK=0") in new stack
    -- Executing [s@mdc_trunk-15:12] Set("SIP/mdc_trunk_conf-14-00000115", "CALLERID(num)=0017124839561") in new stack
    -- Executing [s@mdc_trunk-15:13] Goto("SIP/mdc_trunk_conf-14-00000115", "mdc_mapping-15,621,1") in new stack
    -- Goto (mdc_mapping-15,621,1)
    -- Executing [621@mdc_mapping-15:1] Set("SIP/mdc_trunk_conf-14-00000115", "CHANNEL(language)=de") in new stack
    -- Executing [621@mdc_mapping-15:2] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,mapping from _*%#a-zA-Z0-9]. to 92") in new stack
 mapping from _*%#a-zA-Z0-9]. to 92
    -- Executing [621@mdc_mapping-15:3] Goto("SIP/mdc_trunk_conf-14-00000115", "mdc_external,92,1") in new stack
    -- Goto (mdc_external,92,1)
    -- Executing [92@mdc_external:1] SIPAddHeader("SIP/mdc_trunk_conf-14-00000115", ""Alert-Info:<http://www.notused.de>;info=alert-external;x-line-id=0"") in new stack
    -- Executing [92@mdc_external:2] GosubIf("SIP/mdc_trunk_conf-14-00000115", "1?sub_initcall,s,1(ext,92)") in new stack
    -- Executing [s@sub_initcall:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,sub_initcall descent: ext exten: 92") in new stack
 sub_initcall descent: ext exten: 92
    -- Executing [s@sub_initcall:2] GosubIf("SIP/mdc_trunk_conf-14-00000115", "1?sub_initloop,s,1") in new stack
    -- Executing [s@sub_initloop:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,initial loop") in new stack
 initial loop
    -- Executing [s@sub_initloop:2] Set("SIP/mdc_trunk_conf-14-00000115", "MDC_ALIAS_HOP=0") in new stack
    -- Executing [s@sub_initloop:3] Return("SIP/mdc_trunk_conf-14-00000115", "") in new stack
    -- Executing [s@sub_initcall:3] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_TRANSFERBACK_HOP=0") in new stack
    -- Executing [s@sub_initcall:4] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_DIALDESCENT=ext") in new stack
    -- Executing [s@sub_initcall:5] Goto("SIP/mdc_trunk_conf-14-00000115", "ext,1") in new stack
    -- Goto (sub_initcall,ext,1)
    -- Executing [ext@sub_initcall:1] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_DIALCALLERNUMINIT=017124839561") in new stack
    -- Executing [ext@sub_initcall:2] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_DIALCALLEENUMINIT=621") in new stack
    -- Executing [ext@sub_initcall:3] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_DIALCALLEENUMMAP=92") in new stack
    -- Executing [ext@sub_initcall:4] Return("SIP/mdc_trunk_conf-14-00000115", "") in new stack
    -- Executing [92@mdc_external:3] Goto("SIP/mdc_trunk_conf-14-00000115", "main,92,1") in new stack
    -- Goto (main,92,1)
    -- Executing [92@main:1] Gosub("SIP/mdc_trunk_conf-14-00000115", "sub_defcall,s,1(92)") in new stack
    -- Executing [s@sub_defcall:1] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_ALIAS_HOP=1") in new stack
    -- Executing [s@sub_defcall:2] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_DIALCALLEENUM=92") in new stack
    -- Executing [s@sub_defcall:3] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_DIALCALLERNUM=0017124839561") in new stack
    -- Executing [s@sub_defcall:4] GotoIf("SIP/mdc_trunk_conf-14-00000115", "1?nozap") in new stack
    -- Goto (sub_defcall,s,8)
    -- Executing [s@sub_defcall:8] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_DIALCALLERNAME=Marcus Handy") in new stack
    -- Executing [s@sub_defcall:9] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_DIALCHANNELNAME=mdc_trunk_conf-14") in new stack
    -- Executing [s@sub_defcall:10] Return("SIP/mdc_trunk_conf-14-00000115", "") in new stack
    -- Executing [92@main:2] Goto("SIP/mdc_trunk_conf-14-00000115", "mdc_distribute,92,1") in new stack
    -- Goto (mdc_distribute,92,1)
    -- Executing [92@mdc_distribute:1] Gosub("SIP/mdc_trunk_conf-14-00000115", "sub_user,s,1(callee,9,test,Test Benutzer,92,92)") in new stack
    -- Executing [s@sub_user:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,sub_user mode callee") in new stack
 sub_user mode callee
    -- Executing [s@sub_user:2] Goto("SIP/mdc_trunk_conf-14-00000115", "s-callee,1") in new stack
    -- Goto (sub_user,s-callee,1)
    -- Executing [s-callee@sub_user:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,sub_user user id: 9 - user: test - realname: Test Benutzer - own mailbox: 92 - watched mailbox: 92") in new stack
 sub_user user id: 9 - user: test - realname: Test Benutzer - own mailbox: 92 - watched mailbox: 92
    -- Executing [s-callee@sub_user:2] Set("SIP/mdc_trunk_conf-14-00000115", "_MDC_CALLEE_USER_ID=9") in new stack
    -- Executing [s-callee@sub_user:3] Set("SIP/mdc_trunk_conf-14-00000115", "_MDC_CALLEE_ACC_NAME=test") in new stack
    -- Executing [s-callee@sub_user:4] Set("SIP/mdc_trunk_conf-14-00000115", "_MDC_CALLEE_ACC_REALNAME=Test Benutzer") in new stack
    -- Executing [s-callee@sub_user:5] Set("SIP/mdc_trunk_conf-14-00000115", "_MDC_CALLEE_VM_OWN=92") in new stack
    -- Executing [s-callee@sub_user:6] Set("SIP/mdc_trunk_conf-14-00000115", "_MDC_CALLEE_VM_WATCHED=92") in new stack
    -- Executing [s-callee@sub_user:7] Return("SIP/mdc_trunk_conf-14-00000115", "") in new stack
    -- Executing [92@mdc_distribute:2] Goto("SIP/mdc_trunk_conf-14-00000115", "mdc_ident-9,92,1") in new stack
    -- Goto (mdc_ident-9,92,1)
    -- Executing [92@mdc_ident-9:1] NoOp("SIP/mdc_trunk_conf-14-00000115", "alias-check:: call forwarding from 92 - 0") in new stack
    -- Executing [92@mdc_ident-9:2] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?92-uml,1:92-dial,1") in new stack
    -- Goto (mdc_ident-9,92-dial,1)
    -- Executing [92-dial@mdc_ident-9:1] Set("SIP/mdc_trunk_conf-14-00000115", "__MDC_EXTEN=92") in new stack
    -- Executing [92-dial@mdc_ident-9:2] Gosub("SIP/mdc_trunk_conf-14-00000115", "sub_prefix-92,ext,1") in new stack
    -- Executing [ext@sub_prefix-92:1] Verbose("SIP/mdc_trunk_conf-14-00000115", "1,no action") in new stack
 no action
    -- Executing [ext@sub_prefix-92:2] Return("SIP/mdc_trunk_conf-14-00000115", "") in new stack
    -- Executing [92-dial@mdc_ident-9:3] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?92-unavail,1") in new stack
    -- Executing [92-dial@mdc_ident-9:4] GotoIf("SIP/mdc_trunk_conf-14-00000115", "0?92-busy,1") in new stack
    -- Executing [92-dial@mdc_ident-9:5] Gosub("SIP/mdc_trunk_conf-14-00000115", "sub_main-92,ext,1") in new stack
    -- Executing [ext@sub_main-92:1] Set("SIP/mdc_trunk_conf-14-00000115", "__PICKUPMARK=92") in new stack
    -- Executing [ext@sub_main-92:2] Set("SIP/mdc_trunk_conf-14-00000115", "__SPYGROUP=92") in new stack
    -- Executing [ext@sub_main-92:3] Dial("SIP/mdc_trunk_conf-14-00000115", "Local/92@mdc_diallocation") in new stack
    -- Called Local/92@mdc_diallocation
    -- Executing [92@mdc_diallocation:1] Verbose("Local/92@mdc_diallocation-0000013e;2", "1,dial to 92 for user 9") in new stack
 dial to 92 for user 9
    -- Executing [92@mdc_diallocation:2] Set("Local/92@mdc_diallocation-0000013e;2", "MDC_EXTEN=92") in new stack
    -- Executing [92@mdc_diallocation:3] Gosub("Local/92@mdc_diallocation-0000013e;2", "sub_split-user,s,1(9)") in new stack
    -- Executing [s@sub_split-user:1] Verbose("Local/92@mdc_diallocation-0000013e;2", "1,get locations for for: 9") in new stack
 get locations for for: 9
    -- Executing [s@sub_split-user:2] GotoIf("Local/92@mdc_diallocation-0000013e;2", "0?s-zero,1") in new stack
    -- Executing [s@sub_split-user:3] Set("Local/92@mdc_diallocation-0000013e;2", "TMP_LOCATIONS=5;0") in new stack
    -- Executing [s@sub_split-user:4] Set("Local/92@mdc_diallocation-0000013e;2", "TMP_STATIC_ID=5") in new stack
    -- Executing [s@sub_split-user:5] Verbose("Local/92@mdc_diallocation-0000013e;2", "1,static id: 5") in new stack
 static id: 5
    -- Executing [s@sub_split-user:6] Set("Local/92@mdc_diallocation-0000013e;2", "TMP_DYN_ID=0") in new stack
    -- Executing [s@sub_split-user:7] Verbose("Local/92@mdc_diallocation-0000013e;2", "1,dynamic id: 0") in new stack
 dynamic id: 0
    -- Executing [s@sub_split-user:8] Return("Local/92@mdc_diallocation-0000013e;2", "") in new stack
    -- Executing [92@mdc_diallocation:4] GotoIf("Local/92@mdc_diallocation-0000013e;2", "0?invalid,1") in new stack
    -- Executing [92@mdc_diallocation:5] GotoIf("Local/92@mdc_diallocation-0000013e;2", "0?dynamic,1") in new stack
    -- Executing [92@mdc_diallocation:6] GotoIf("Local/92@mdc_diallocation-0000013e;2", "1?static,1") in new stack
    -- Goto (mdc_diallocation,static,1)
    -- Executing [static@mdc_diallocation:1] Dial("Local/92@mdc_diallocation-0000013e;2", "Local/ext@mdc_locallocation-5") in new stack
    -- Called Local/ext@mdc_locallocation-5
    -- Executing [ext@mdc_locallocation-5:1] Dial("Local/ext@mdc_locallocation-5-0000013f;2", "Local/ext-8@mdc_localdevice-5") in new stack
    -- Called Local/ext-8@mdc_localdevice-5
    -- Executing [ext-8@mdc_localdevice-5:1] Verbose("Local/ext-8@mdc_localdevice-5-00000140;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-8@mdc_localdevice-5:2] Dial("Local/ext-8@mdc_localdevice-5-00000140;2", "SIP/jPFCXpGrJ3fa4bd,20") in new stack
  == Using SIP VIDEO TOS bits 136
  == Using SIP VIDEO CoS mark 6
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/jPFCXpGrJ3fa4bd
    -- SIP/jPFCXpGrJ3fa4bd-00000116 is ringing
    -- Local/ext-8@mdc_localdevice-5-00000140;1 is ringing
    -- Local/ext@mdc_locallocation-5-0000013f;1 is ringing
    -- Local/92@mdc_diallocation-0000013e;1 is ringing
    -- SIP/jPFCXpGrJ3fa4bd-00000116 is ringing
    -- SIP/jPFCXpGrJ3fa4bd-00000116 is ringing
  == Spawn extension (sub_main-92, ext, 3) exited non-zero on 'SIP/mdc_trunk_conf-14-00000115'
  == Spawn extension (mdc_diallocation, static, 1) exited non-zero on 'Local/92@mdc_diallocation-0000013e;2'
    -- Executing [h@sub_main-92:1] Gosub("SIP/mdc_trunk_conf-14-00000115", "def_hangup,s,1(92,CANCEL,,CALL)") in new stack
    -- Executing [s@def_hangup:1] NoOp("SIP/mdc_trunk_conf-14-00000115", ">>>def_hangup:: EXTEN: 92 DIALSTATUS: CANCEL QUEUESTATUS:  REASON: CALL") in new stack
  == Spawn extension (mdc_localdevice-5, ext-8, 2) exited non-zero on 'Local/ext-8@mdc_localdevice-5-00000140;2'
  == Spawn extension (mdc_locallocation-5, ext, 1) exited non-zero on 'Local/ext@mdc_locallocation-5-0000013f;2'

Hallo rurotil,

als Tipp, dein Anruf von der Fritzbox zur MobyDick kommt aktuell mit der 621 als Angerufener (callee).

– Executing [s@mdc_trunk-15:1] Verbose(“SIP/mdc_trunk_conf-14-00000115”, “1,callee number: 621 caller number: 017124839561”) in new stack

Grüße
Markus

Die 621 ist auch die 0 !! Eigentlich soweit richtig.

Meine Config:
root@mobydick:/TARGET/SHARE/etc/asterisk# cat mdc_sip_register.conf
; generated by mod_trunk
;Test
register => 623:XXXX92@192.168.10.4/623
;Test 2
register => 622:XXXXXXX91@192.168.10.4/622
;Zentrale
register => 621:xxxxx@192.168.10.4/621
root@mobydick:/TARGET/SHARE/etc/asterisk#

Kann es sein, das es mit einer Zentrale nur mit Sipgate Trunk funktioniert? Habe nämlich gerade noch 3-4 einzelne Konten.

Re,

dann überprüfe mal deine eingehenden Regeln. Dort kannst du dann bei Ziel die 621 verwenden um auf die Zentrale weiterzuleiten, bei Durchwahl dann die Durchwahl der Warteschlange oder Benutzers rein, welcher die Zentrale abhandeln soll.

Grüße
Markus