Hello,
Quand j’appelle mon groupe je vois bien ma routine s’éxecuter de la même manière que si j’appelle un user en direct.
Voici un petit extrait :
Executing [s@callorigin:2] NoOp("PJSIP/qrz60xl9-0000019e", "MODULE DE CALL ORIGIN") in new stack
Executing [s@callorigin:3] NoOp("PJSIP/qrz60xl9-0000019e", "Source extern") in new stack
Executing [s@callorigin:4] GotoIf("PJSIP/qrz60xl9-0000019e", "1?:return") in new stack
Executing [s@callorigin:5] ExecIf("PJSIP/qrz60xl9-0000019e", "1?GoSub(wazo-add-pre-dial-hook,s,1(callorigin-extern)):GoSub(wazo-add-pre-dial-hook,s,1(callorigin-intern))") in new stack
Executing [s@wazo-add-pre-dial-hook:1] Set("PJSIP/qrz60xl9-0000019e", "HANDLER=callorigin-extern") in new stack
Executing [s@wazo-add-pre-dial-hook:2] Set("PJSIP/qrz60xl9-0000019e", "PUSH(_WAZO_PRE_DIAL_HANDLERS,|)=callorigin-extern,s,1") in new stack
Executing [s@wazo-add-pre-dial-hook:3] Return("PJSIP/qrz60xl9-0000019e", "") in new stack
Executing [s@callorigin:6] Return("PJSIP/qrz60xl9-0000019e", "") in new stack
Executing [s@xivo-subrgbl-group:3] Return("PJSIP/qrz60xl9-0000019e", "") in new stack
Executing [s@xivo-global-subroutine:6] Return("PJSIP/qrz60xl9-0000019e", "") in new stack
Executing [s@group:20] AGI("PJSIP/qrz60xl9-0000019e", "agi://localhost/record_caller") in new stack
localhost/record_caller: AGI handler 'record_caller' successfully executed
<PJSIP/qrz60xl9-0000019e>AGI Script agi://localhost/record_caller completed, returning 0
Executing [s@group:21] GotoIf("PJSIP/qrz60xl9-0000019e", "?:queue") in new stack
Goto (group,s,25)
Executing [s@group:25] Queue("PJSIP/qrz60xl9-0000019e", "grp-xxxxdefa-21255534-a677-4391-9c5e-913a72272249,ir,,,,,,wazo-group-answered") in new stack
Called Local/6de2e002-b8b1-4b18-9d1b-e1c36ceb44f7@usersharedlines
Called Local/fed70829-32e8-4f11-9e73-c80f1673371d@usersharedlines
Voici mon dialplan (c’est du labo pour du test : minimaliste)
[callorigin]
exten = s,1,DumpChan()
same = n,NoOp("MODULE DE CALL ORIGIN")
same = n,NoOp("Source ${XIVO_CALLORIGIN})
same = n,GotoIf($[${EXISTS(${XIVO_CALLORIGIN})}]?:return)
same = n,ExecIf($[${XIVO_CALLORIGIN}=extern]?GoSub(wazo-add-pre-dial-hook,s,1(callorigin-extern)):GoSub(wazo-add-pre-dial-hook,s,1(callorigin-intern)))
same = n(return), return();
[callorigin-extern]
exten = s,1,NoOp("CALLORIGIN EXTERN")
same = n,Set(PJSIP_HEADER(add,Alert-Info)=<http://www.proformatique.com>\;info=alert-external)
same = n(return), return()
[callorigin-intern]
exten = s,1,NoOp("CALLORIGIN INTERN")
same = n,Set(PJSIP_HEADER(add,Alert-Info)=<http://www.proformatique.com>\;info=alert-internal)
same = n(return), return()
Niveau version je suis sur du 22.04 / 22.02
Mes membres des groupes sont bien des “members” pas des “extensions” si c’était ta question.