${CALLERID(NUM)} in CIDNumber not working

Hallo @Markus_doug,

das sollte nach wie vor klappen, allerdings nutzt das Amt nun einen neuen SIP-Stack.

Welchen Provider nutzt Du denn?

LG
Mathias

Zu dieser Problematik habe ich bereits ein Ticket eröffnet.
In unseren Fällen handelt es sich immer um einen Telekom SIP-Trunk

MfG

Hallo,

Der Provider ist MNET.

Grüße Markus

Hallo,

Das gleiche habe ich mit dem Provider Easybell.

Viele Grüße
Thomas

OK, danke für die Rückmeldungen. Da sich das hier verdichtet sehen wir uns das gerne noch genauer an.

LG
Mathias

Hallo zusammen,

das beschriebene Szenario funktioniert bei mir so weit. Sobald ich die Regel für die Rufweiterleitung setze, wird die Nummer in meinem Fall auch richtig an das Rufweiterleitungsziel übermittelt.
Wie genau sieht denn die ausgehende Regel für die Rufweiterleitung bei euch aus? Ich habe hier mit Quelle _XXXX. und "CIDNummer ${CALLERID(num):1} getestet.

Besten Gruß
Sebastian

Für Easybell habe ich eine Vermutung: Schau mal im Kundenportal von Easybell, was da bei Rufnummern-Übermittlung eingestellt ist. Am einfachsten ist, Du wählst Pascom aus, dann werden die richtigen Einstellungen (PAI) gesetzt und es sollte auch mit der Rufnummern-Übermittlung klappen.

Gruß
Michael

Beim Telekom SIP-Trunk sollte es helfen das Amt auf generisch umzustellen und folgende Option anzufügen: header/P-Asserted-Identity=<sip:{{{048pee_username}}}@{{{048pee_domain}}}>
Die Rufnummern-Übermittlung muss dann auf FROM gesetzt werden.

Besten Gruß
Sebastian

1 Like

Guten Morgen,

Vielen Dank @Sebastian_F. Das übermitteln der anzuzeigenen Rufnummer stimmt nun wieder.

Grüße
Torben

Hallo,

bei mir hat sich die Funktionsweise auch verändert.
Amt: Easybell mit CNS
Regel: _XXXX. -> meine Handynummer -> 0941Stammnummer${CALLERID(num):1}

Das hat früher die Anrufernummer an die Stammnummer gehängt und ans mobile weitergeleitet.
Jetzt gibts zwei Szenarien:
Rufumleitung anlagenbasiert auf mobile:
Es erscheint die Nummer des ursprünglichen Anrufers
“Rufweiterleitung” durch beliebige Nummer via Amt:
Es erscheint die bei Easybell definierte Rufnummer (also ungültige CNS-Nummer vermutlich).
In der Pascom ist diese Nummer nicht definiert, diese wird momentan nicht verwendet.

Weshalb hat das mit der v18 noch funktioniert?

Weil es die Version 18 war und seither in Bezug auf SIP kein Stein mehr auf dem anderen steht, Stichwort PJSIP.

Vielen Dank für die Antwort. Hilft mir aber nicht weiter.
Zum einen verhält sich die Rufnummeranzeige ja unterschiedlich je nachdem wie ich in der pascom weiterleite. Zum anderen wäre halt interessant wie das wieder hinzubekommen ist.

Kannst Du denn mal weiter Infos geben.
Ansonsten würde ich dir die gleiche Antwort wie @noses geben.

Wenn die Stammnummer angezeigt wird dann ist er normalerweiße so das die Übermittelte Rufnummer halt falsch ist.
Um da aber Aussagen zu treffen sollest Du wenigestens einen Auszug aud der CLI bei so einem Anruf posten.

Gruß Markus

Also folgendes Szenario mit anonymisierten Nummern:

Meine Stammnummer: 0941-12345 Durchwahl 666
Meine Mobilnummer: 015199999922
anrufende Nummer: 094154321122
die Standardnummer bei Easybell für meinen Account, sonst ungenutzt: 0941 888888

Wenn ich nun die anlagenbasierte Rufumleitung einschalte mit meiner Handynummer als Ziel, dann erhalte ich am Handy die Nummer +4994154321122 angezeigt
CLI dazu:

== Setting global variable ‘SIPDOMAIN’ to ‘100.96.221.151’
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio CoS mark 5
– Executing [4994112345666@mdc_incoming-1:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,Inbound call on trunk: easybell, getting number by: request-uri”) in new stack
Inbound call on trunk: easybell, getting number by: request-uri
– Executing [4994112345666@mdc_incoming-1:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLER_NUM_TRUNK=094154321122”) in new stack
– Executing [4994112345666@mdc_incoming-1:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLEE_NUM_TRUNK=4994112345666”) in new stack
– Executing [4994112345666@mdc_incoming-1:4] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_trunk-1,s,1”) in new stack
– Goto (mdc_trunk-1,s,1)
– Executing [s@mdc_trunk-1:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,callee number: 4994112345666 caller number: 094154321122”) in new stack
callee number: 4994112345666 caller number: 094154321122
– Executing [s@mdc_trunk-1:2] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(CALLERID(num)=anonymous)”) in new stack
– Executing [s@mdc_trunk-1:3] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(CALLERID(num)=anonymous)”) in new stack
– Executing [s@mdc_trunk-1:4] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(CALLERID(num)=anonymous)”) in new stack
– Executing [s@mdc_trunk-1:5] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CHANNEL(language)=de”) in new stack
– Executing [s@mdc_trunk-1:6] Ringing(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@mdc_trunk-1:7] Progress(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@mdc_trunk-1:8] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_FALLBACK_TRUNK=488”) in new stack
– Executing [s@mdc_trunk-1:9] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_nat2int,s,1(MDC_CALLER_NUM_INTERNAT,094154321122,00,49,0,941,1)”) in new stack
– Executing [s@sub_nat2int:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - number: 094154321122 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 1”) in new stack
sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - number: 094154321122 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 1
– Executing [s@sub_nat2int:2] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-emergency,1”) in new stack
– Executing [s@sub_nat2int:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:5] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-convert,1”) in new stack
– Executing [s@sub_nat2int:6] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:7] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-intshort,1”) in new stack
– Executing [s@sub_nat2int:8] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-natshort,1”) in new stack
– Executing [s@sub_nat2int:9] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?s-nat,1”) in new stack
– Goto (sub_nat2int,s-nat,1)
– Executing [s-nat@sub_nat2int:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,national”) in new stack
national
– Executing [s-nat@sub_nat2int:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLER_NUM_INTERNAT=004994154321122”) in new stack
– Executing [s-nat@sub_nat2int:3] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@mdc_trunk-1:10] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CALLERID(num)=004994154321122”) in new stack
– Executing [s@mdc_trunk-1:11] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_int2nat,s,1(MDC_CALLER_NUM_NAT,004994154321122,00,49,0,941,1)”) in new stack
– Executing [s@sub_int2nat:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 004994154321122 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 1”) in new stack
sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 004994154321122 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 1
– Executing [s@sub_int2nat:2] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-emergency,1”) in new stack
– Executing [s@sub_int2nat:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?nat”) in new stack
– Executing [s@sub_int2nat:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?s-internat,1”) in new stack
– Goto (sub_int2nat,s-internat,1)
– Executing [s-internat@sub_int2nat:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLER_NUM_NAT=094154321122”) in new stack
– Executing [s-internat@sub_int2nat:2] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@mdc_trunk-1:12] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CALLERID(num)=094154321122”) in new stack
– Executing [s@mdc_trunk-1:13] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_NUMPREFIX_TRUNK=0”) in new stack
– Executing [s@mdc_trunk-1:14] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?Set(CALLERID(all)=0094154321122)”) in new stack
– Executing [s@mdc_trunk-1:15] UserEvent(“PJSIP/mdc_trunk_conf-1-00000716”, “ResolveCallerName,Strategy: system,Outbound: 0”) in new stack
– Executing [s@mdc_trunk-1:16] Wait(“PJSIP/mdc_trunk_conf-1-00000716”, “0.25”) in new stack
– Executing [s@mdc_trunk-1:17] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,MDC_RESOLVENAME_HITS = 0”) in new stack
MDC_RESOLVENAME_HITS = 0
– Executing [s@mdc_trunk-1:18] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, "1,CALLERID(name) = ") in new stack
CALLERID(name) =
– Executing [s@mdc_trunk-1:19] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_mapping-1,4994112345666,1”) in new stack
– Goto (mdc_mapping-1,4994112345666,1)
– Executing [4994112345666@mdc_mapping-1:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CHANNEL(language)=de”) in new stack
– Executing [4994112345666@mdc_mapping-1:2] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,mapping from _4994112345XXX to 666”) in new stack
mapping from _4994112345XXX to 666
– Executing [4994112345666@mdc_mapping-1:3] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_external,666,1”) in new stack
– Goto (mdc_external,666,1)
– Executing [666@mdc_external:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “HASH(__SIPHEADERS,Alert-info)=http://www.notused.de;info=alert-external;x-line-id=0”) in new stack
– Executing [666@mdc_external:2] GosubIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?sub_initcall,s,1(ext,666)”) in new stack
– Executing [s@sub_initcall:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_initcall descent: ext exten: 666”) in new stack
sub_initcall descent: ext exten: 666
– Executing [s@sub_initcall:2] GosubIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?sub_initloop,s,1”) in new stack
– Executing [s@sub_initloop:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,initial loop”) in new stack
initial loop
– Executing [s@sub_initloop:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_ALIAS_HOP=0”) in new stack
– Executing [s@sub_initloop:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_MAIN_HOP=0”) in new stack
– Executing [s@sub_initloop:4] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@sub_initcall:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_TRANSFERBACK_HOP=0”) in new stack
– Executing [s@sub_initcall:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALDESCENT=ext”) in new stack
– Executing [s@sub_initcall:5] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “ext,1”) in new stack
– Goto (sub_initcall,ext,1)
– Executing [ext@sub_initcall:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNUMINIT=094154321122”) in new stack
– Executing [ext@sub_initcall:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLEENUMINIT=4994112345666”) in new stack
– Executing [ext@sub_initcall:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLEENUMMAP=666”) in new stack
– Executing [ext@sub_initcall:4] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [666@mdc_external:3] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “main,666,1”) in new stack
– Goto (main,666,1)
– Executing [666@main:1] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(MDC_MAIN_HOP=0)”) in new stack
– Executing [666@main:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_MAIN_HOP=1”) in new stack
– Executing [666@main:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?mdc_loop,s,1”) in new stack
– Executing [666@main:4] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_defcall,s,1(666)”) in new stack
– Executing [s@sub_defcall:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_ALIAS_HOP=1”) in new stack
– Executing [s@sub_defcall:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLEENUM=666”) in new stack
– Executing [s@sub_defcall:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNUM=0094154321122”) in new stack
– Executing [s@sub_defcall:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERLANGUAGE=de”) in new stack
– Executing [s@sub_defcall:5] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNAME=”) in new stack
– Executing [s@sub_defcall:6] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCHANNELNAME=mdc_trunk_conf-1”) in new stack
– Executing [s@sub_defcall:7] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [666@main:5] GosubIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?sub_homer,s,1”) in new stack
– Executing [s@sub_homer:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “PJSIP_HEADER(remove,P-cs-cid)=”) in new stack
– Executing [s@sub_homer:2] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?Set(PJSIP_HEADER(add,P-cs-cid)=SBCbf15e00009f5-5ec51356-600f656d-359dd480-9a0a123-01_b2b-1)”) in new stack
– Executing [s@sub_homer:3] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [666@main:6] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_distribute,666,1”) in new stack
– Goto (mdc_distribute,666,1)
– Executing [666@mdc_distribute:1] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_user,s,1(callee,5,b.muster,Bjoern muster 666,666,666)”) in new stack
– Executing [s@sub_user:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_user mode callee”) in new stack
sub_user mode callee
– Executing [s@sub_user:2] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “s-callee,1”) in new stack
– Goto (sub_user,s-callee,1)
– Executing [s-callee@sub_user:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_user user id: 5 - user: b.muster - realname: Bjoern muster 666 - own mailbox: 666 - watched mailbox: 666”) in new stack
sub_user user id: 5 - user: b.muster - realname: Bjoern muster 666 - own mailbox: 666 - watched mailbox: 666
– Executing [s-callee@sub_user:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_USER_ID=5”) in new stack
– Executing [s-callee@sub_user:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_ACC_NAME=b.muster”) in new stack
– Executing [s-callee@sub_user:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_ACC_REALNAME=Bjoern muster 666”) in new stack
– Executing [s-callee@sub_user:5] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_VM_OWN=666”) in new stack
– Executing [s-callee@sub_user:6] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_VM_WATCHED=666”) in new stack
– Executing [s-callee@sub_user:7] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [666@mdc_distribute:2] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_ident-5,666,1”) in new stack
– Goto (mdc_ident-5,666,1)
– Executing [666@mdc_ident-5:1] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?mdc_loop,s,1”) in new stack
– Executing [666@mdc_ident-5:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_MAIN_HOP=2”) in new stack
– Executing [666@mdc_ident-5:3] NoOp(“PJSIP/mdc_trunk_conf-1-00000716”, “alias-check:: call forwarding from 666 - 1”) in new stack
– Executing [666@mdc_ident-5:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?666-uml,1:666-dial,1”) in new stack
– Goto (mdc_ident-5,666-uml,1)
– Executing [666-uml@mdc_ident-5:1] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?mdc_alias-loop,s,1”) in new stack
– Executing [666-uml@mdc_ident-5:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_ALIAS_HOP=2”) in new stack
– Executing [666-uml@mdc_ident-5:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCHANNELNAME=b.muster”) in new stack
– Executing [666-uml@mdc_ident-5:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?666-dial,1”) in new stack
– Executing [666-uml@mdc_ident-5:5] AGI(“PJSIP/mdc_trunk_conf-1-00000716”, “agi_roletype.php,redirect.choice,0094154321122,666”) in new stack
– Launched AGI Script /etc/asterisk/agi/agi_roletype.php
– <PJSIP/mdc_trunk_conf-1-00000716>AGI Script agi_roletype.php completed, returning 0
– Executing [666-uml@mdc_ident-5:6] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?666-dial,1”) in new stack
– Executing [666-uml@mdc_ident-5:7] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?666-dial,1”) in new stack
– Executing [666-uml@mdc_ident-5:8] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CALLERID(name)=”) in new stack
– Executing [666-uml@mdc_ident-5:9] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(to-num,i)=0015199999922”) in new stack
– Executing [666-uml@mdc_ident-5:10] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(to-num-pres,i)=allowed”) in new stack
– Executing [666-uml@mdc_ident-5:11] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(from-num,i)=666”) in new stack
– Executing [666-uml@mdc_ident-5:12] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(from-num-pres,i)=allowed”) in new stack
– Executing [666-uml@mdc_ident-5:13] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(from-name,i)=Bjoern muster 666”) in new stack
– Executing [666-uml@mdc_ident-5:14] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(from-name-pres,i)=allowed”) in new stack
– Executing [666-uml@mdc_ident-5:15] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(count,i)=2”) in new stack
– Executing [666-uml@mdc_ident-5:16] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(reason)=cfu”) in new stack
– Executing [666-uml@mdc_ident-5:17] UserEvent(“PJSIP/mdc_trunk_conf-1-00000716”, “Transition,Type: mdredirect,Arg1: 0015199999922”) in new stack
– Executing [666-uml@mdc_ident-5:18] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “main,0015199999922,1”) in new stack
– Goto (main,0015199999922,1)
– Executing [0015199999922@main:1] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(MDC_MAIN_HOP=0)”) in new stack
– Executing [0015199999922@main:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_MAIN_HOP=3”) in new stack
– Executing [0015199999922@main:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?mdc_loop,s,1”) in new stack
– Executing [0015199999922@main:4] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_defcall,s,1(0015199999922)”) in new stack
– Executing [s@sub_defcall:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_ALIAS_HOP=3”) in new stack
– Executing [s@sub_defcall:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLEENUM=0015199999922”) in new stack
– Executing [s@sub_defcall:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNUM=0094154321122”) in new stack
– Executing [s@sub_defcall:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERLANGUAGE=de”) in new stack
– Executing [s@sub_defcall:5] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNAME=”) in new stack
– Executing [s@sub_defcall:6] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCHANNELNAME=mdc_trunk_conf-1”) in new stack
– Executing [s@sub_defcall:7] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [0015199999922@main:5] GosubIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?sub_homer,s,1”) in new stack
– Executing [s@sub_homer:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “PJSIP_HEADER(remove,P-cs-cid)=”) in new stack
– Executing [s@sub_homer:2] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?Set(PJSIP_HEADER(add,P-cs-cid)=SBCbf15e00009f5-5ec51356-600f656d-359dd480-9a0a123-01_b2b-1)”) in new stack
– Executing [s@sub_homer:3] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [0015199999922@main:6] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_distribute,0015199999922,1”) in new stack
– Goto (mdc_distribute,0015199999922,1)
– Executing [0015199999922@mdc_distribute:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_INPREFIX_TRUNK=0”) in new stack
– Executing [0015199999922@mdc_distribute:2] ClearHash(“PJSIP/mdc_trunk_conf-1-00000716”, “SIPHEADERS”) in new stack
– Executing [0015199999922@mdc_distribute:3] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,remove inprefix: 0”) in new stack
remove inprefix: 0
– Executing [0015199999922@mdc_distribute:4] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_outgoing-22,015199999922,1”) in new stack
– Goto (mdc_outgoing-22,015199999922,1)
– Executing [015199999922@mdc_outgoing-22:1] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_trunk-outgoing-22,015199999922,1”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:1] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_nat2int,s,1(MDC_CALLEE_NUM_INTERNAT,015199999922,00,49,0,941,0)”) in new stack
– Executing [s@sub_nat2int:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_nat2int:: variable: MDC_CALLEE_NUM_INTERNAT - number: 015199999922 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 0”) in new stack
sub_nat2int:: variable: MDC_CALLEE_NUM_INTERNAT - number: 015199999922 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 0
– Executing [s@sub_nat2int:2] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-emergency,1”) in new stack
– Executing [s@sub_nat2int:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:5] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-convert,1”) in new stack
– Executing [s@sub_nat2int:6] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:7] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-intshort,1”) in new stack
– Executing [s@sub_nat2int:8] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-natshort,1”) in new stack
– Executing [s@sub_nat2int:9] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?s-nat,1”) in new stack
– Goto (sub_nat2int,s-nat,1)
– Executing [s-nat@sub_nat2int:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,national”) in new stack
national
– Executing [s-nat@sub_nat2int:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLEE_NUM_INTERNAT=004915199999922”) in new stack
– Executing [s-nat@sub_nat2int:3] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:2] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_int2nat,s,1(MDC_CALLEE_NUM_NAT,004915199999922,00,49,0,941,0)”) in new stack
– Executing [s@sub_int2nat:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_int2nat:: variable: MDC_CALLEE_NUM_NAT - exten: 004915199999922 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 0”) in new stack
sub_int2nat:: variable: MDC_CALLEE_NUM_NAT - exten: 004915199999922 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 0
– Executing [s@sub_int2nat:2] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-emergency,1”) in new stack
– Executing [s@sub_int2nat:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?nat”) in new stack
– Executing [s@sub_int2nat:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?s-internat,1”) in new stack
– Goto (sub_int2nat,s-internat,1)
– Executing [s-internat@sub_int2nat:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLEE_NUM_NAT=015199999922”) in new stack
– Executing [s-internat@sub_int2nat:2] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_OUTBOUND_CIDNUM=094112345094154321122”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CALLERID(num)=094112345094154321122”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:5] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?searchdone”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:6] UserEvent(“PJSIP/mdc_trunk_conf-1-00000716”, “ResolveCallerName,Strategy: system,Outbound: 1”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:7] Wait(“PJSIP/mdc_trunk_conf-1-00000716”, “0.25”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:8] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,MDC_RESOLVENAME_HITS = 0”) in new stack
MDC_RESOLVENAME_HITS = 0
– Executing [015199999922@sub_trunk-outgoing-22:9] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, "1,MDC_DIALCALLEENAME = ") in new stack
MDC_DIALCALLEENAME =
– Executing [015199999922@sub_trunk-outgoing-22:10] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?enddeflection”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:11] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?rtp”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:12] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?rtp”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:13] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,Response 302”) in new stack
Response 302
– Executing [015199999922@sub_trunk-outgoing-22:14] Wait(“PJSIP/mdc_trunk_conf-1-00000716”, “1”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:15] Transfer(“PJSIP/mdc_trunk_conf-1-00000716”, “PJSIP/sip:015199999922@sip.easybell.de”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:16] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?rtp”) in new stack
– Executing [h@sub_trunk-outgoing-22:1] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “def_hangup,s,1(,CALL)”) in new stack
– Executing [s@def_hangup:1] NoOp(“PJSIP/mdc_trunk_conf-1-00000716”, “>>>def_hangup:: EXTEN: DIALSTATUS: QUEUESTATUS: REASON: CALL”) in new stack

Nun habe ich mein Handy als “Via Amt: beliebiges externes Telefon” unter der Durchwahl 666 hinterlegt und natürlich die anlagenbasierte Rufumleitung ausgeschaltet.
Ergebnis auf dem Handydisplay: +49 941 888888
Vermutlich ist CNS doch nicht so ganz ungescreent bei easybell.

CLI dazu

== Setting global variable ‘SIPDOMAIN’ to ‘100.96.221.151’
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio CoS mark 5
– Executing [4994112345666@mdc_incoming-1:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,Inbound call on trunk: easybell, getting number by: request-uri”) in new stack
Inbound call on trunk: easybell, getting number by: request-uri
– Executing [4994112345666@mdc_incoming-1:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLER_NUM_TRUNK=094154321122”) in new stack
– Executing [4994112345666@mdc_incoming-1:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLEE_NUM_TRUNK=4994112345666”) in new stack
– Executing [4994112345666@mdc_incoming-1:4] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_trunk-1,s,1”) in new stack
– Goto (mdc_trunk-1,s,1)
– Executing [s@mdc_trunk-1:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,callee number: 4994112345666 caller number: 094154321122”) in new stack
callee number: 4994112345666 caller number: 094154321122
– Executing [s@mdc_trunk-1:2] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(CALLERID(num)=anonymous)”) in new stack
– Executing [s@mdc_trunk-1:3] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(CALLERID(num)=anonymous)”) in new stack
– Executing [s@mdc_trunk-1:4] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(CALLERID(num)=anonymous)”) in new stack
– Executing [s@mdc_trunk-1:5] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CHANNEL(language)=de”) in new stack
– Executing [s@mdc_trunk-1:6] Ringing(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@mdc_trunk-1:7] Progress(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@mdc_trunk-1:8] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_FALLBACK_TRUNK=488”) in new stack
– Executing [s@mdc_trunk-1:9] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_nat2int,s,1(MDC_CALLER_NUM_INTERNAT,094154321122,00,49,0,941,1)”) in new stack
– Executing [s@sub_nat2int:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - number: 094154321122 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 1”) in new stack
sub_nat2int:: variable: MDC_CALLER_NUM_INTERNAT - number: 094154321122 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 1
– Executing [s@sub_nat2int:2] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-emergency,1”) in new stack
– Executing [s@sub_nat2int:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:5] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-convert,1”) in new stack
– Executing [s@sub_nat2int:6] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:7] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-intshort,1”) in new stack
– Executing [s@sub_nat2int:8] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-natshort,1”) in new stack
– Executing [s@sub_nat2int:9] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?s-nat,1”) in new stack
– Goto (sub_nat2int,s-nat,1)
– Executing [s-nat@sub_nat2int:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,national”) in new stack
national
– Executing [s-nat@sub_nat2int:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLER_NUM_INTERNAT=004994154321122”) in new stack
– Executing [s-nat@sub_nat2int:3] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@mdc_trunk-1:10] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CALLERID(num)=004994154321122”) in new stack
– Executing [s@mdc_trunk-1:11] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_int2nat,s,1(MDC_CALLER_NUM_NAT,004994154321122,00,49,0,941,1)”) in new stack
– Executing [s@sub_int2nat:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 004994154321122 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 1”) in new stack
sub_int2nat:: variable: MDC_CALLER_NUM_NAT - exten: 004994154321122 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 1
– Executing [s@sub_int2nat:2] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-emergency,1”) in new stack
– Executing [s@sub_int2nat:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?nat”) in new stack
– Executing [s@sub_int2nat:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?s-internat,1”) in new stack
– Goto (sub_int2nat,s-internat,1)
– Executing [s-internat@sub_int2nat:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLER_NUM_NAT=094154321122”) in new stack
– Executing [s-internat@sub_int2nat:2] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@mdc_trunk-1:12] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CALLERID(num)=094154321122”) in new stack
– Executing [s@mdc_trunk-1:13] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_NUMPREFIX_TRUNK=0”) in new stack
– Executing [s@mdc_trunk-1:14] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?Set(CALLERID(all)=0094154321122)”) in new stack
– Executing [s@mdc_trunk-1:15] UserEvent(“PJSIP/mdc_trunk_conf-1-00000716”, “ResolveCallerName,Strategy: system,Outbound: 0”) in new stack
– Executing [s@mdc_trunk-1:16] Wait(“PJSIP/mdc_trunk_conf-1-00000716”, “0.25”) in new stack
– Executing [s@mdc_trunk-1:17] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,MDC_RESOLVENAME_HITS = 0”) in new stack
MDC_RESOLVENAME_HITS = 0
– Executing [s@mdc_trunk-1:18] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, "1,CALLERID(name) = ") in new stack
CALLERID(name) =
– Executing [s@mdc_trunk-1:19] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_mapping-1,4994112345666,1”) in new stack
– Goto (mdc_mapping-1,4994112345666,1)
– Executing [4994112345666@mdc_mapping-1:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CHANNEL(language)=de”) in new stack
– Executing [4994112345666@mdc_mapping-1:2] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,mapping from _4994112345XXX to 666”) in new stack
mapping from _4994112345XXX to 666
– Executing [4994112345666@mdc_mapping-1:3] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_external,666,1”) in new stack
– Goto (mdc_external,666,1)
– Executing [666@mdc_external:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “HASH(__SIPHEADERS,Alert-info)=http://www.notused.de;info=alert-external;x-line-id=0”) in new stack
– Executing [666@mdc_external:2] GosubIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?sub_initcall,s,1(ext,666)”) in new stack
– Executing [s@sub_initcall:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_initcall descent: ext exten: 666”) in new stack
sub_initcall descent: ext exten: 666
– Executing [s@sub_initcall:2] GosubIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?sub_initloop,s,1”) in new stack
– Executing [s@sub_initloop:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,initial loop”) in new stack
initial loop
– Executing [s@sub_initloop:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_ALIAS_HOP=0”) in new stack
– Executing [s@sub_initloop:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_MAIN_HOP=0”) in new stack
– Executing [s@sub_initloop:4] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [s@sub_initcall:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_TRANSFERBACK_HOP=0”) in new stack
– Executing [s@sub_initcall:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALDESCENT=ext”) in new stack
– Executing [s@sub_initcall:5] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “ext,1”) in new stack
– Goto (sub_initcall,ext,1)
– Executing [ext@sub_initcall:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNUMINIT=094154321122”) in new stack
– Executing [ext@sub_initcall:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLEENUMINIT=4994112345666”) in new stack
– Executing [ext@sub_initcall:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLEENUMMAP=666”) in new stack
– Executing [ext@sub_initcall:4] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [666@mdc_external:3] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “main,666,1”) in new stack
– Goto (main,666,1)
– Executing [666@main:1] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(MDC_MAIN_HOP=0)”) in new stack
– Executing [666@main:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_MAIN_HOP=1”) in new stack
– Executing [666@main:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?mdc_loop,s,1”) in new stack
– Executing [666@main:4] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_defcall,s,1(666)”) in new stack
– Executing [s@sub_defcall:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_ALIAS_HOP=1”) in new stack
– Executing [s@sub_defcall:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLEENUM=666”) in new stack
– Executing [s@sub_defcall:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNUM=0094154321122”) in new stack
– Executing [s@sub_defcall:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERLANGUAGE=de”) in new stack
– Executing [s@sub_defcall:5] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNAME=”) in new stack
– Executing [s@sub_defcall:6] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCHANNELNAME=mdc_trunk_conf-1”) in new stack
– Executing [s@sub_defcall:7] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [666@main:5] GosubIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?sub_homer,s,1”) in new stack
– Executing [s@sub_homer:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “PJSIP_HEADER(remove,P-cs-cid)=”) in new stack
– Executing [s@sub_homer:2] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?Set(PJSIP_HEADER(add,P-cs-cid)=SBCbf15e00009f5-5ec51356-600f656d-359dd480-9a0a123-01_b2b-1)”) in new stack
– Executing [s@sub_homer:3] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [666@main:6] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_distribute,666,1”) in new stack
– Goto (mdc_distribute,666,1)
– Executing [666@mdc_distribute:1] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_user,s,1(callee,5,b.muster,Bjoern muster 666,666,666)”) in new stack
– Executing [s@sub_user:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_user mode callee”) in new stack
sub_user mode callee
– Executing [s@sub_user:2] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “s-callee,1”) in new stack
– Goto (sub_user,s-callee,1)
– Executing [s-callee@sub_user:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_user user id: 5 - user: b.muster - realname: Bjoern muster 666 - own mailbox: 666 - watched mailbox: 666”) in new stack
sub_user user id: 5 - user: b.muster - realname: Bjoern muster 666 - own mailbox: 666 - watched mailbox: 666
– Executing [s-callee@sub_user:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_USER_ID=5”) in new stack
– Executing [s-callee@sub_user:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_ACC_NAME=b.muster”) in new stack
– Executing [s-callee@sub_user:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_ACC_REALNAME=Bjoern muster 666”) in new stack
– Executing [s-callee@sub_user:5] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_VM_OWN=666”) in new stack
– Executing [s-callee@sub_user:6] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “_MDC_CALLEE_VM_WATCHED=666”) in new stack
– Executing [s-callee@sub_user:7] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [666@mdc_distribute:2] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_ident-5,666,1”) in new stack
– Goto (mdc_ident-5,666,1)
– Executing [666@mdc_ident-5:1] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?mdc_loop,s,1”) in new stack
– Executing [666@mdc_ident-5:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_MAIN_HOP=2”) in new stack
– Executing [666@mdc_ident-5:3] NoOp(“PJSIP/mdc_trunk_conf-1-00000716”, “alias-check:: call forwarding from 666 - 1”) in new stack
– Executing [666@mdc_ident-5:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?666-uml,1:666-dial,1”) in new stack
– Goto (mdc_ident-5,666-uml,1)
– Executing [666-uml@mdc_ident-5:1] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?mdc_alias-loop,s,1”) in new stack
– Executing [666-uml@mdc_ident-5:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_ALIAS_HOP=2”) in new stack
– Executing [666-uml@mdc_ident-5:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCHANNELNAME=b.muster”) in new stack
– Executing [666-uml@mdc_ident-5:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?666-dial,1”) in new stack
– Executing [666-uml@mdc_ident-5:5] AGI(“PJSIP/mdc_trunk_conf-1-00000716”, “agi_roletype.php,redirect.choice,0094154321122,666”) in new stack
– Launched AGI Script /etc/asterisk/agi/agi_roletype.php
– <PJSIP/mdc_trunk_conf-1-00000716>AGI Script agi_roletype.php completed, returning 0
– Executing [666-uml@mdc_ident-5:6] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?666-dial,1”) in new stack
– Executing [666-uml@mdc_ident-5:7] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?666-dial,1”) in new stack
– Executing [666-uml@mdc_ident-5:8] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CALLERID(name)=”) in new stack
– Executing [666-uml@mdc_ident-5:9] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(to-num,i)=0015199999922”) in new stack
– Executing [666-uml@mdc_ident-5:10] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(to-num-pres,i)=allowed”) in new stack
– Executing [666-uml@mdc_ident-5:11] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(from-num,i)=666”) in new stack
– Executing [666-uml@mdc_ident-5:12] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(from-num-pres,i)=allowed”) in new stack
– Executing [666-uml@mdc_ident-5:13] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(from-name,i)=Bjoern muster 666”) in new stack
– Executing [666-uml@mdc_ident-5:14] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(from-name-pres,i)=allowed”) in new stack
– Executing [666-uml@mdc_ident-5:15] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(count,i)=2”) in new stack
– Executing [666-uml@mdc_ident-5:16] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “REDIRECTING(reason)=cfu”) in new stack
– Executing [666-uml@mdc_ident-5:17] UserEvent(“PJSIP/mdc_trunk_conf-1-00000716”, “Transition,Type: mdredirect,Arg1: 0015199999922”) in new stack
– Executing [666-uml@mdc_ident-5:18] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “main,0015199999922,1”) in new stack
– Goto (main,0015199999922,1)
– Executing [0015199999922@main:1] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?Set(MDC_MAIN_HOP=0)”) in new stack
– Executing [0015199999922@main:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_MAIN_HOP=3”) in new stack
– Executing [0015199999922@main:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?mdc_loop,s,1”) in new stack
– Executing [0015199999922@main:4] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_defcall,s,1(0015199999922)”) in new stack
– Executing [s@sub_defcall:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_ALIAS_HOP=3”) in new stack
– Executing [s@sub_defcall:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLEENUM=0015199999922”) in new stack
– Executing [s@sub_defcall:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNUM=0094154321122”) in new stack
– Executing [s@sub_defcall:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERLANGUAGE=de”) in new stack
– Executing [s@sub_defcall:5] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCALLERNAME=”) in new stack
– Executing [s@sub_defcall:6] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_DIALCHANNELNAME=mdc_trunk_conf-1”) in new stack
– Executing [s@sub_defcall:7] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [0015199999922@main:5] GosubIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?sub_homer,s,1”) in new stack
– Executing [s@sub_homer:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “PJSIP_HEADER(remove,P-cs-cid)=”) in new stack
– Executing [s@sub_homer:2] ExecIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?Set(PJSIP_HEADER(add,P-cs-cid)=SBCbf15e00009f5-5ec51356-600f656d-359dd480-9a0a123-01_b2b-1)”) in new stack
– Executing [s@sub_homer:3] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [0015199999922@main:6] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_distribute,0015199999922,1”) in new stack
– Goto (mdc_distribute,0015199999922,1)
– Executing [0015199999922@mdc_distribute:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_INPREFIX_TRUNK=0”) in new stack
– Executing [0015199999922@mdc_distribute:2] ClearHash(“PJSIP/mdc_trunk_conf-1-00000716”, “SIPHEADERS”) in new stack
– Executing [0015199999922@mdc_distribute:3] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,remove inprefix: 0”) in new stack
remove inprefix: 0
– Executing [0015199999922@mdc_distribute:4] Goto(“PJSIP/mdc_trunk_conf-1-00000716”, “mdc_outgoing-22,015199999922,1”) in new stack
– Goto (mdc_outgoing-22,015199999922,1)
– Executing [015199999922@mdc_outgoing-22:1] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_trunk-outgoing-22,015199999922,1”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:1] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_nat2int,s,1(MDC_CALLEE_NUM_INTERNAT,015199999922,00,49,0,941,0)”) in new stack
– Executing [s@sub_nat2int:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_nat2int:: variable: MDC_CALLEE_NUM_INTERNAT - number: 015199999922 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 0”) in new stack
sub_nat2int:: variable: MDC_CALLEE_NUM_INTERNAT - number: 015199999922 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 0
– Executing [s@sub_nat2int:2] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-emergency,1”) in new stack
– Executing [s@sub_nat2int:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:5] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-convert,1”) in new stack
– Executing [s@sub_nat2int:6] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-int,1”) in new stack
– Executing [s@sub_nat2int:7] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-intshort,1”) in new stack
– Executing [s@sub_nat2int:8] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-natshort,1”) in new stack
– Executing [s@sub_nat2int:9] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?s-nat,1”) in new stack
– Goto (sub_nat2int,s-nat,1)
– Executing [s-nat@sub_nat2int:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,national”) in new stack
national
– Executing [s-nat@sub_nat2int:2] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLEE_NUM_INTERNAT=004915199999922”) in new stack
– Executing [s-nat@sub_nat2int:3] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:2] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “sub_int2nat,s,1(MDC_CALLEE_NUM_NAT,004915199999922,00,49,0,941,0)”) in new stack
– Executing [s@sub_int2nat:1] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,sub_int2nat:: variable: MDC_CALLEE_NUM_NAT - exten: 004915199999922 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 0”) in new stack
sub_int2nat:: variable: MDC_CALLEE_NUM_NAT - exten: 004915199999922 - intVAZ: 00 - lkz: 49 - natVAZ: 0 - onKz: 941 - incoming: 0
– Executing [s@sub_int2nat:2] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?s-emergency,1”) in new stack
– Executing [s@sub_int2nat:3] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?nat”) in new stack
– Executing [s@sub_int2nat:4] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “1?s-internat,1”) in new stack
– Goto (sub_int2nat,s-internat,1)
– Executing [s-internat@sub_int2nat:1] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “MDC_CALLEE_NUM_NAT=015199999922”) in new stack
– Executing [s-internat@sub_int2nat:2] Return(“PJSIP/mdc_trunk_conf-1-00000716”, “”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:3] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “__MDC_OUTBOUND_CIDNUM=094112345094154321122”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:4] Set(“PJSIP/mdc_trunk_conf-1-00000716”, “CALLERID(num)=094112345094154321122”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:5] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?searchdone”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:6] UserEvent(“PJSIP/mdc_trunk_conf-1-00000716”, “ResolveCallerName,Strategy: system,Outbound: 1”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:7] Wait(“PJSIP/mdc_trunk_conf-1-00000716”, “0.25”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:8] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,MDC_RESOLVENAME_HITS = 0”) in new stack
MDC_RESOLVENAME_HITS = 0
– Executing [015199999922@sub_trunk-outgoing-22:9] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, "1,MDC_DIALCALLEENAME = ") in new stack
MDC_DIALCALLEENAME =
– Executing [015199999922@sub_trunk-outgoing-22:10] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?enddeflection”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:11] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?rtp”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:12] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?rtp”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:13] Verbose(“PJSIP/mdc_trunk_conf-1-00000716”, “1,Response 302”) in new stack
Response 302
– Executing [015199999922@sub_trunk-outgoing-22:14] Wait(“PJSIP/mdc_trunk_conf-1-00000716”, “1”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:15] Transfer(“PJSIP/mdc_trunk_conf-1-00000716”, “PJSIP/sip:015199999922@sip.easybell.de”) in new stack
– Executing [015199999922@sub_trunk-outgoing-22:16] GotoIf(“PJSIP/mdc_trunk_conf-1-00000716”, “0?rtp”) in new stack
– Executing [h@sub_trunk-outgoing-22:1] Gosub(“PJSIP/mdc_trunk_conf-1-00000716”, “def_hangup,s,1(,CALL)”) in new stack
– Executing [s@def_hangup:1] NoOp(“PJSIP/mdc_trunk_conf-1-00000716”, “>>>def_hangup:: EXTEN: DIALSTATUS: QUEUESTATUS: REASON: CALL”) in new stack

Da wäre jetzt die Frage:
Warum verhalten sich diese beiden Methoden unterschiedlich?
Warum wird die Anrufernummer nicht mehr an meine Stammnummer angehängt übertragen?

Ich bin einen Schritt weiter. Im Falle der anlagenbasierten Rufumleitung liegt es an CallDeflection dass die Stammnummer nicht mitübertragen wird.
Wo stelle ich denn die CallDeflection wieder aus?
Seit das Amt migriert wurde ist der Punkt im Amt irgendwie weg.
Da gab es doch mal einen Punkt “direkte Weiterleitung”.

Bei der anderen Variante habe ich anscheinend noch ein Problem mit der Rufregel. Die greift nicht so wie ich das möchte. Ggf. liegt es daran.
Der Teamanruf geht dann wahrscheinlich auch.

Mobilehub konnte ich nicht testen. Geht der GSM-Call nur raus wenn die App gepairt ist?
Die App kann ich weiterhin nicht mit zwei Anlagen pairen, oder?

Nein du kannst die App nicht mit 2 Anlage pairen wozu brauchst du das?

Und du kannst das Amt auf die Vorlage Generisches SIP Amt umstellen dann hat’s du normalerweiße auch die Einstellungen wieder.

Gruß Markus

Also das ist doch, was ich erwarten würde bei einer RUL in der Anlage, nämlich die Anzeige des Anrufers. Und die ist doch gegeben. Den anderen Anwendungsfall verstehe ich nicht. Was ist die Motivation, eine komplett andere Nummer zu sehen gefolgt von der Rufnummer des Anrufers? (Das soll keine bewertende Frage sein, ich möchte einfach den Anwendungsfall verstehen lernen, vllt. ergeben sich daraus ja noch ganz tolle neue Möglichkeiten).

Gruß
Michael

Prinzipiell einfach. Ich möchte als Anwender sehen ob der Anrufer mich direkt auf dem Handy anruft oder über eine RWS reinkommt. Im Luxusfall dann sogar über welche Anlage.

Wenn er über eine RWS reinkommt, dann kann ich bspw nicht einfach so zurückrufen. Der Anrufer würde sonst meine Handynummer kennen.

Wenn ich dann auch noch den weitergeschalteten Anruf als Mitglied eines Teams empfange, dann kann ich schon anhand der vorangestellten Nummer entscheiden den Anruf nicht anzunehmen.

Hoffe das war verständlich.

Ja, das war verständlich. 4/5 würden sich über die MobileApp lösen lassen einschließlich Rückruf, ohne die Handynummer bekannt zu geben. Das verbleibende 1/5 (Anrufe von einer anderen Anlage) könnte man mit etwas Aufwand ebenfalls lösen. Ein weiterer Vorteil der App wäre m.E. noch, angenommene Gespräche vom Smartphone aus sogar an jmd. anderen vermitteln zu können.