Show
Ignore:
Timestamp:
02/12/11 01:23:59 (2 years ago)
Author:
p_lindheimer
Message:

stores the number dialed to be used in ccss request features codes (not yet implemented)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/campon/functions.inc.php

    r11342 r11344  
    4747      $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})')); 
    4848      $ext->add($mcontext,$exten,'agent', new ext_gosubif('$[${LEN(${DB(AMPUSER/${AMPUSER}/ccss/cc_agent_policy)})}]','agent_config,1','agent_default,1')); 
     49      // If we got this far (vs. an early StackPop) then we save the number we are calling to play back as the callback 
     50      // 
     51      $ext->add($mcontext,$exten,'', new ext_set('DB(AMPUSER/${AMPUSER}/ccss/last_number)', '${ARG2}')); 
    4952      $ext->add($mcontext,$exten,'', new ext_return('${GOSUB_RETVAL}')); 
    5053 
     
    216219  $ext->add($id, $c, '', new ext_macro('user-callerid')); 
    217220  $ext->add($id, $c, '', new ext_callcompletionrequest('')); 
    218   $ext->add($id, $c, '', new ext_noop_trace('CC_REQUEST_RESULT: ${CC_REQUEST_RESULT} CC_REQUEST_REASON: ${CC_REQUEST_REASON}')); 
     221  $ext->add($id, $c, '', new ext_noop_trace('CC_REQUEST_RESULT: ${CC_REQUEST_RESULT} CC_REQUEST_REASON: ${CC_REQUEST_REASON} LastNumber: ${DB(AMPUSER/${AMPUSER}/ccss/last_number)}')); 
    219222  $ext->add($id, $c, '', new ext_playback('beep')); 
    220223  $ext->add($id, $c, '', new ext_macro('hangupcall')); 
     
    248251  $ext->add($id, $c, '', new ext_macro('user-callerid')); 
    249252  $ext->add($id, $c, '', new ext_execif('$["${EXTENSION_STATE(' . $c . '${AMPUSER}@' . $hint_context . ')}" = "INUSE"]','CallCompletionCancel','','CallCompletionRequest','')); 
    250   $ext->add($id, $c, '', new ext_noop_trace('CC_REQUEST_RESULT: ${CC_REQUEST_RESULT} CC_REQUEST_REASON: ${CC_REQUEST_REASON}')); 
     253  $ext->add($id, $c, '', new ext_noop_trace('CC_REQUEST_RESULT: ${CC_REQUEST_RESULT} CC_REQUEST_REASON: ${CC_REQUEST_REASON} LastNumber: ${DB(AMPUSER/${AMPUSER}/ccss/last_number)}')); 
    251254  $ext->add($id, $c, '', new ext_noop_trace('CC_CANCEL_RESULT: ${CC_CANCEL_RESULT} CC_CANCEL_REASON: ${CC_CANCEL_REASON}')); 
    252255  $ext->add($id, $c, '', new ext_playback('beep'));