PDA

Voir la version complète : Asterisk desktop manager



gb56
07/01/2011, 13h01
Bonjour,

J'ai installé Asterisk Desktop Manager, et je rencontre un problème sur le passage de variables.

Coté Asterisk dans mon dialplan je déclare la variable globale ADM
...
exten = ...,n,set(GLOBAL(ADM)=XXXXX)
...

Coté ADM :

http://monurl/monphp.php?callerid=%number%&name=%name%&maref=%custom%

Résultat :

mes variables cllerid et name sont OK
mais j'ai systématiquement : ERROR_CANT_GET_VAR_FROM_ASTERISK pour la variable maref !


DOC ADM :

Browser CRM Popup

URL
The URL which ADM will open the browser to. The crm popup will add each call to a new firefox tab.

There are 3 variables you can use inside the URL string:

* %number% - which appends the CallerId
* %name% - which appends the Name associated with the CallerID from the ADM phonebook
* %custom% - which appends the value of the ADM variable, set through the incoming dialplan in the asterisk extensions.conf (eg. exten => 1000,1,Set(GLOBAL(ADM)=xxxxx) where xxxx is your content)

(note: Older versions of asterisk need the command is just exten => 1001,1,SetGlobalVar(ADM=xxx) instead)

Example URL: http://192.168.1.5/crm.pl?callerid=%callerid%&name=%name%&billingref=%custom%