Rollen und Pickup

Hallo,
kann das sein, dass bei dem AGI Script mdc_roletype.agi der falsche
Parameter ausgewertet wird?
Ich habe zwei Durchwahlen, z.B. 115 ohne CDI Nummer und eine Durchwahl z.B.
121 mit der CDI Nummer 120.
im Log kommt: script/mdc_roletype.agi|pickup.group|115|115") in new stack
und script/mdc_roletype.agi|pickup.group|120|121") in new stack.

Der Pichup bei der Durchwahl 115 funktioniert der bei der 121
nicht.

Gruß Ralf

Hallo Ralf,

erst mal willkommen in der Community. Wie machst Du denn den Pickup? Mit *8NEBENSTELLE, einer Lämpchentaste oder per MobyDick Client? Kann ich den kompletten CLI output beider PickUP Versuche sehen?

LG
Mathias

Hallo Mathias,
der Pickup wird mit einer Funktionstaste von einem Snom 370 gemacht.
Der CLI output wenn es scheitert:
– SIP/test2-083b7bf0 is ringing
– Executing Set(“SIP/test1-0862a398”, “MDC_CHANNEL_PROTOCOL=SIP”) in new stack
– Executing Set(“SIP/test1-0862a398”, “MDC_CHANNEL_ID=test1-0862a398”) in new stack
– Executing Set(“SIP/test1-0862a398”, “MDC_CHANNEL_TMP=test1-0862a398”) in new stack
– Executing Set(“SIP/test1-0862a398”, “MDC_CHANNEL_NAME=test1”) in new stack
– Executing GosubIf(“SIP/test1-0862a398”, “1?mdc_initcall-int|*8121|1”) in new stack
– Executing NoOp(“SIP/test1-0862a398”, “initial call”) in new stack
– Executing Set(“SIP/test1-0862a398”, “__MDC_DIALDESCENT=int”) in new stack
– Executing Set(“SIP/test1-0862a398”, “__MDC_DIALCALLEENUM=*8121”) in new stack
– Executing Set(“SIP/test1-0862a398”, “__MDC_DIALCALLERNUM=115”) in new stack
– Executing GotoIf(“SIP/test1-0862a398”, “1?nozap”) in new stack
– Goto (mdc_initcall-int,*8121,8)
– Executing Set(“SIP/test1-0862a398”, “__MDC_DIALCALLERNAME=***f") in new stack
– Executing Return(“SIP/test1-0862a398”, “”) in new stack
– Executing Gosub(“SIP/test1-0862a398”, "mdc_defcall|8121|1") in new stack
– Executing GotoIf(“SIP/test1-0862a398”, “1?nozap”) in new stack
– Goto (mdc_defcall,8121,4)
– Executing Set(“SIP/test1-0862a398”, “__MDC_DIALCHANNELNAME=test1”) in new stack
– Executing Return(“SIP/test1-0862a398”, “”) in new stack
– Executing SIPAddHeader(“SIP/test1-0862a398”, "“Alert-Info:<http://www.notused.de>;info=alert-internal;x-line-id=0"”) in new stack
– Executing Macro(“SIP/test1-0862a398”, “pre-main”) in new stack
Dec 14 08:13:01 WARNING[27752]: app_macro.c:208 macro_exec: No such context ‘macro-pre-main’ for macro ‘pre-main’
– Executing GosubIf(“SIP/test1-0862a398”, “1?mdc_initloop|s|1”) in new stack
– Executing NoOp(“SIP/test1-0862a398”, “initial loop”) in new stack
– Executing Set(“SIP/test1-0862a398”, “MDC_ALIAS_HOP=0”) in new stack
– Executing Return(“SIP/test1-0862a398”, “”) in new stack
– Executing Gosub(“SIP/test1-0862a398”, "mdc_cdr-int|8121|1") in new stack
– Executing Set(“SIP/test1-0862a398”, "CDR(mdcdst)=8121") in new stack
– Executing Set(“SIP/test1-0862a398”, "CDR(mdcinitdst)=8121") in new stack
– Executing Set(“SIP/test1-0862a398”, “CDR(mdcname)=test1”) in new stack
– Executing Set(“SIP/test1-0862a398”, “CDR(mdcsrc)=115”) in new stack
Extension Changed 117 new state InUse for Notify User **********
– Executing Set(“SIP/test1-0862a398”, “CDR(mdcinitsrc)=115”) in new stack
Extension Changed 117 new state InUse for Notify User test1
– Executing GotoIf(“SIP/test1-0862a398”, “0?prefix”) in new stack
– Executing Set(“SIP/test1-0862a398”, “CDR(mdcinitsrc)=117”) in new stack
– Executing Set(“SIP/test1-0862a398”, “CDR(mdcprefix)=”) in new stack
– Executing Set(“SIP/test1-0862a398”, “TMP_NAME=”) in new stack
– Executing Set(“SIP/test1-0862a398”, “TMP_NAME=”) in new stack
– Executing GotoIf(“SIP/test1-0862a398”, “0?dstname”) in new stack
– Executing Set(“SIP/test1-0862a398”, "TMP_NAME=8121") in new stack
– Executing Set(“SIP/test1-0862a398”, "CDR(mdcdstname)=8121") in new stack
– Executing Set(“SIP/test1-0862a398”, “CDR(mdcdescent)=int”) in new stack
– Executing Set(“SIP/test1-0862a398”, "CDR(mdcsrcname)=
”) in new stack
– Executing Return(“SIP/test1-0862a398”, “”) in new stack
– Executing AGI(“SIP/test1-0862a398”, “script/mdc_billing-pricing.php|0”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/script/mdc_billing-pricing.php
– AGI Script script/mdc_billing-pricing.php completed, returning 0
– Executing Set(“SIP/test1-0862a398”, “CDR(tarifid)=”) in new stack
– Executing Goto(“SIP/test1-0862a398”, “main|*8121|1”) in new stack
– Goto (main,*8121,1)
– Executing Macro(“SIP/test1-0862a398”, “mdc_pickup|121|SIP|test2|115”) in new stack
– Executing NoOp(“SIP/test1-0862a398”, “macro-mdc_pickup:: exten: 121 technology: SIP ident: test2 caller: 115”) in new stack
– Executing AGI(“SIP/test1-0862a398”, “script/mdc_roletype.agi|pickup.group|115|121”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/script/mdc_roletype.agi
– AGI Script script/mdc_roletype.agi completed, returning 0
– Executing GotoIf(“SIP/test1-0862a398”, “0?s-failed|1”) in new stack
– Executing Goto(“SIP/test1-0862a398”, “s-pickup|1”) in new stack
– Goto (macro-mdc_pickup,s-pickup,1)
– Executing PickupChan(“SIP/test1-0862a398”, “SIP/test2”) in new stack
Nice channel, I’ll take it: SIP/test2
– Channel SIP/test1-0862a398 picked up ringing channel SIP/test2-083b7bf0
== Spawn extension (macro-mdc_pickup, s-pickup, 1) exited non-zero on ‘SIP/test1-0862a398’ in macro ‘mdc_pickup’
== Spawn extension (macro-mdc_pickup, s-pickup, 1) exited non-zero on ‘SIP/test1-0862a398<MASQ>’
– SIP/test1-0862a398 answered Zap/22-1
hierbei hat die Nebenstelle 121 die CDI Nummer 120

Der CLI output wenn es funktioniert:
– Executing Set(“SIP/test3-089274e8”, “MDC_CHANNEL_PROTOCOL=SIP”) in new stack
– Executing Set(“SIP/test3-089274e8”, “MDC_CHANNEL_ID=test3-089274e8”) in new stack
– Executing Set(“SIP/test3-089274e8”, “MDC_CHANNEL_TMP=test3-089274e8”) in new stack
– Executing Set(“SIP/test3-089274e8”, “MDC_CHANNEL_NAME=test3”) in new stack
– Executing GosubIf(“SIP/test3-089274e8”, “1?mdc_initcall-int|8115|1") in new stack
– Executing NoOp(“SIP/test3-089274e8”, “initial call”) in new stack
– Executing Set(“SIP/test3-089274e8”, “__MDC_DIALDESCENT=int”) in new stack
– Executing Set(“SIP/test3-089274e8”, "__MDC_DIALCALLEENUM=8115") in new stack
– Executing Set(“SIP/test3-089274e8”, “__MDC_DIALCALLERNUM=115”) in new stack
– Executing GotoIf(“SIP/test3-089274e8”, “1?nozap”) in new stack
– Goto (mdc_initcall-int,8115,8)
– Executing Set(“SIP/test3-089274e8”, “__MDC_DIALCALLERNAME=*****”) in new stack
– Executing Return(“SIP/test3-089274e8”, “”) in new stack
– Executing Gosub(“SIP/test3-089274e8”, "mdc_defcall|8115|1") in new stack
– Executing GotoIf(“SIP/test3-089274e8”, “1?nozap”) in new stack
– Goto (mdc_defcall,8115,4)
– Executing Set(“SIP/test3-089274e8”, “__MDC_DIALCHANNELNAME=test3”) in new stack
– Executing Return(“SIP/test3-089274e8”, “”) in new stack
– Executing SIPAddHeader(“SIP/test3-089274e8”, "“Alert-Info:<http://www.notused.de>;info=alert-internal;x-line-id=0"”) in new stack
– Executing Macro(“SIP/test3-089274e8”, “pre-main”) in new stack
Dec 14 08:35:12 WARNING[29245]: app_macro.c:208 macro_exec: No such context ‘macro-pre-main’ for macro ‘pre-main’
– Executing GosubIf(“SIP/test3-089274e8”, “1?mdc_initloop|s|1”) in new stack
– Executing NoOp(“SIP/test3-089274e8”, “initial loop”) in new stack
– Executing Set(“SIP/test3-089274e8”, “MDC_ALIAS_HOP=0”) in new stack
Extension Changed 117 new state InUse for Notify User *********
– Executing Return(“SIP/test3-089274e8”, “”) in new stack
Extension Changed 117 new state InUse for Notify User test3
– Executing Gosub(“SIP/test3-089274e8”, "mdc_cdr-int|8115|1") in new stack
– Executing Set(“SIP/test3-089274e8”, "CDR(mdcdst)=8115") in new stack
– Executing Set(“SIP/test3-089274e8”, "CDR(mdcinitdst)=8115") in new stack
– Executing Set(“SIP/test3-089274e8”, “CDR(mdcname)=test3”) in new stack
– Executing Set(“SIP/test3-089274e8”, “CDR(mdcsrc)=115”) in new stack
– Executing Set(“SIP/test3-089274e8”, “CDR(mdcinitsrc)=115”) in new stack
– Executing GotoIf(“SIP/test3-089274e8”, “0?prefix”) in new stack
– Executing Set(“SIP/test3-089274e8”, “CDR(mdcinitsrc)=117”) in new stack
– Executing Set(“SIP/test3-089274e8”, “CDR(mdcprefix)=”) in new stack
– Executing Set(“SIP/test3-089274e8”, “TMP_NAME=”) in new stack
– Executing Set(“SIP/test3-089274e8”, “TMP_NAME=”) in new stack
– Executing GotoIf(“SIP/test3-089274e8”, “0?dstname”) in new stack
– Executing Set(“SIP/test3-089274e8”, "TMP_NAME=8115") in new stack
– Executing Set(“SIP/test3-089274e8”, "CDR(mdcdstname)=8115") in new stack
– Executing Set(“SIP/test3-089274e8”, “CDR(mdcdescent)=int”) in new stack
– Executing Set(“SIP/test3-089274e8”, "CDR(mdcsrcname)=
”) in new stack
– Executing Return(“SIP/test3-089274e8”, “”) in new stack
– Executing AGI(“SIP/test3-089274e8”, “script/mdc_billing-pricing.php|0”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/script/mdc_billing-pricing.php
– AGI Script script/mdc_billing-pricing.php completed, returning 0
– Executing Set(“SIP/test3-089274e8”, “CDR(tarifid)=”) in new stack
– Executing Goto(“SIP/test3-089274e8”, "main|8115|1") in new stack
– Goto (main,8115,1)
– Executing Macro(“SIP/test3-089274e8”, “mdc_pickup|115|SIP||115") in new stack
– Executing NoOp(“SIP/test3-089274e8”, “macro-mdc_pickup:: exten: 115 technology: SIP ident: ******** caller: 115”) in new stack
– Executing AGI(“SIP/test3-089274e8”, “script/mdc_roletype.agi|pickup.group|115|115”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/script/mdc_roletype.agi
– AGI Script script/mdc_roletype.agi completed, returning 0
– Executing GotoIf(“SIP/test3-089274e8”, “0?s-failed|1”) in new stack
– Executing Goto(“SIP/test3-089274e8”, “s-pickup|1”) in new stack
– Goto (macro-mdc_pickup,s-pickup,1)
– Executing PickupChan(“SIP/test3-089274e8”, "SIP/
”) in new stack
Nice channel, I’ll take it: SIP/
*******
– Channel SIP/test3-089274e8 picked up ringing channel SIP/********-0862a398
== Spawn extension (macro-mdc_pickup, s-pickup, 1) exited non-zero on ‘SIP/test3-089274e8’ in macro ‘mdc_pickup’
== Spawn extension (macro-mdc_pickup, s-pickup, 1) exited non-zero on ‘SIP/test3-089274e8<MASQ>’
– SIP/test3-089274e8 answered Zap/23-1
Hier hat die Nebenstelle die Durchwahl 117 mit der CDI Nummer 115 und der
Pickup funtioniert.

Gruß Ralf

Hallo,

konnte ich nachvollziehen. Habe ein Bugticket auf gemacht. Sollte dann im Januar drin sein.

LG
Mathias