Changeset 6243

Show
Ignore:
Timestamp:
08/01/08 08:52:51 (2 months ago)
Author:
p_lindheimer
Message:

fixes #2984 catchall context plays back wrong DID if no catchall

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/core/functions.inc.php

    r6238 r6243  
    918918                                if (!$catchall) { 
    919919                                        $ext->add($catchall_context, 's', '', new ext_noop("No DID or CID Match")); 
    920                                         $ext->add($catchall_context, 's', '', new ext_answer('')); 
     920                                        $ext->add($catchall_context, 's', 'a2', new ext_answer('')); 
    921921                                        $ext->add($catchall_context, 's', '', new ext_wait('2')); 
    922922                                        $ext->add($catchall_context, 's', '', new ext_playback('ss-noservice')); 
    923923                                        $ext->add($catchall_context, 's', '', new ext_sayalpha('${FROM_DID}')); 
    924                                         $ext->add($catchall_context, '_[*#X].', '', new ext_setvar('__FROM_DID', '${EXTEN}')); 
    925                                         $ext->add($catchall_context, '_[*#X].', '', new ext_noop('Received an unknown call with DID set to ${EXTEN}')); 
    926                                         $ext->add($catchall_context, '_[*#X].', '', new ext_goto('1','s','ext-did')); 
     924                                        $ext->add($catchall_context, 's', '', new ext_hangup('')); 
     925                                        $ext->add($catchall_context, '_.', '', new ext_setvar('__FROM_DID', '${EXTEN}')); 
     926                                        $ext->add($catchall_context, '_.', '', new ext_noop('Received an unknown call with DID set to ${EXTEN}')); 
     927                                        $ext->add($catchall_context, '_.', '', new ext_goto('a2','s')); 
     928                                        $ext->add($catchall_context, 'h', '', new ext_hangup('')); 
    927929                                } 
    928930                                         
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads