Show
Ignore:
Timestamp:
11/28/11 14:16:49 (1 year ago)
Author:
mbrevda
Message:

Upstream Changes: make php command a variable; more paging touches and fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/paging/functions.inc.php

    r12969 r12977  
    431431        $ext->add($apppaging, $grp, '',  
    432432          new ext_set('PAGE_CONF_OPTS', $page_opts . (!$thisgroup['duplex'] ? 'm' : ''))); 
    433         $ext->add($apppaging, $grp, 'agi', new ext_agi('page.agi,' 
    434                         . 'extensions=' . implode(':',$page_memebers) . ',' 
    435                         . 'meetmeopts=${PAGE_CONF}\,${PAGE_CONF_OPTS}\,\,,' 
    436                         . 'AMPUSER=${AMPUSER}' 
    437                         )); 
    438         //we cant use originate from the dialplan as the dialplan command is not asynchronous 
    439         //we would like to though... 
    440         //this code here as a sign of hope -MB 
    441         /*foreach ($page_memebers as $member) { 
    442           $ext->add($apppaging, $grp, 'page', new ext_originate($member,'app','meetme', '${PAGE_CONF}\,${PAGE_CONF_OPTS}')); 
    443         }*/          
     433        $ext->add($apppaging, $grp, '', new ext_set('PAGE_MEMBERS', base64_encode(serialize($page_memebers)))); 
     434        $ext->add($apppaging, $grp, 'agi', new ext_agi('page.agi'));       
    444435        unset($page_memebers); 
    445         $ext->add($apppaging, $grp, 'page', new ext_meetme('${PAGE_CONF}', 'doqwxAG(beep)')); 
     436        $ext->add($apppaging, $grp, 'page', new ext_meetme('${PAGE_CONF}', 'doqwxAG')); 
    446437        $ext->add($apppaging, $grp, '', new ext_hangup()); 
    447438        $ext->add($apppaging, $grp, 'busy', new ext_set('PAGE${PAGEGROUP}BUSY', 'TRUE')); 
     
    457448                . ']',  
    458449                'Set', 'DEVICE_STATE(Custom:PAGE${PAGEGROUP})=NOT_INUSE')); 
     450       
     451      //page playback 
     452      $c = 'app-page-stream'; 
     453      $ext->add($c, 's', '', new ext_wait(1)); 
     454      $ext->add($c, 's', '', new ext_answer()); 
     455      $ext->add($c, 's', '', new ext_meetme('${PAGE_CONF}', '${PAGE_CONF_OPTS}')); 
     456      $ext->add($c, 's', '', new ext_hangup()); 
    459457       
    460458    break;