Changeset 11320
- Timestamp:
- 02/08/11 01:30:52 (2 years ago)
- Files:
-
- modules/branches/2.9/campon/functions.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.9/campon/functions.inc.php
r11304 r11320 18 18 // This generates the dialplan 19 19 global $ext; 20 global $a sterisk_conf;20 global $amp_conf; 21 21 switch($engine) { 22 22 case "asterisk": … … 45 45 $ext->add($mcontext,$exten,'', new ext_set('CCSS_SETUP', 'TRUE')); 46 46 $ext->add($mcontext,$exten,'', new ext_noop_trace('AMPUSER: ${AMPUSER} Calling ${ARG2}:${ARG1} checking if all happy')); 47 $ext->add($mcontext,$exten,'monitor', new ext_gosubif('$[${LEN(${DB(AMPUSER/${ARG2}/ccss/cc_monitor_policy)})}]','monitor_config,1 ','monitor_default,1'));48 $ext->add($mcontext,$exten,'agent', new ext_gosubif('$[${LEN(${DB(AMPUSER/${AMPUSER}/ccss/cc_agent_policy)})}]','agent_config,1 ','agent_default,1'));47 $ext->add($mcontext,$exten,'monitor', new ext_gosubif('$[${LEN(${DB(AMPUSER/${ARG2}/ccss/cc_monitor_policy)})}]','monitor_config,1(${ARG1},${ARG2}','monitor_default,1(${ARG1},${ARG2}')); 48 $ext->add($mcontext,$exten,'agent', new ext_gosubif('$[${LEN(${DB(AMPUSER/${AMPUSER}/ccss/cc_agent_policy)})}]','agent_config,1(${ARG1},${ARG2}','agent_default,1(${ARG1},${ARG2}')); 49 49 $ext->add($mcontext,$exten,'', new ext_return('${GOSUB_RETVAL}')); 50 50
