-
action après hang up
Bonjour à tous,
J'utilise asterisk 1.6. Je voudrais savoir dans le cadre d'une interaction avec une base de donnée à l'aide d'un AGI. Comment mettre à jour ma base dans le cas où le client termine l'appel avant le temps maximum alloué à l'appel.
D'avance merci
-
utilise le paramètre g dans la commande dial
g: When the called party hangs up, continue to execute commands in the current context at the next priority.
-
Bonjour Jean et merci pour ta réponse,
Imaginons que dans mon AGI j'ai:
Code:
$AGI->Dial(SIP/free)[,15,[F,[g,[L($maxtime[:20000])
Pour rappel:
Code:
F: Proceed with dialplan execution at the next priority in the current extension if the source channel hangs up.
Code:
g: Proceed with dialplan execution at the next priority in the current extension if the destination channel hangs up.
Est ce que le
Citation:
at the next priority
suppose que je dois scinder mon AGI en deux?
Merci
-
d'après app_dial.c :
Code:
" F(context^exten^pri) - When the caller hangs up, transfer the called party\n"
" to the specified context and extension and continue execution.\n"
" g - Proceed with dialplan execution at the current extension if the\n"
" destination channel hangs up.
donc, (pas testé), tu peux mettre les deux options - elles ne sont pas séparées par des virgules, mais juste concatenées
-
Ok, je vais tester alors et ferai un retour
Au fait, comment je pourrais trouver la réponse sur des fonctions juste avec mon CLI?
-
Tu veux parler de la doc d'une fonction ou application ?
Si c'est ça, tu peux taper dans la CLI:
help ......
core show function ....
core show application ....