Changeset 2235

Show
Ignore:
Timestamp:
08/06/06 12:48:48 (7 years ago)
Author:
gregmac
Message:

Backport [2057] fix to 2.1 branch

Files:

Legend:

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

    r1905 r2235  
    7373      foreach ($results as $grouparr) { 
    7474        $xtn=trim($grouparr[0]); 
    75         $ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('__SIPADDHEADER', 'Call-Info: answer-after=0')); 
     75        $ext->add('ext-paging', "PAGE${xtn}", '', new ext_gotoif('$[ ${CALLERID(number)} = '.$xtn.' ]','skipself')); 
     76        $ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('__SIPADDHEADER', 'Call-Info: \;answer-after=0')); 
    7677        $ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('__ALERT_INFO', 'Ring Answer')); 
    7778        $ext->add('ext-paging', "PAGE${xtn}", '', new ext_setvar('__SIP_URI_OPTIONS', 'intercom=true')); 
    7879        $ext->add('ext-paging', "PAGE${xtn}", '', new ext_dial("SIP/${xtn}", 5)); 
     80        $ext->add('ext-paging', "PAGE${xtn}", 'skipself', new ext_noop('Not paging originator')); 
    7981      } 
    8082      // Now get a list of all the paging groups...