Changeset 5718

Show
Ignore:
Timestamp:
02/22/08 18:06:54 (11 months ago)
Author:
p_lindheimer
Message:

create a from-trunk-dundi-name for dundi trunks which could be used by the corresponding iax trunks configured with the DUNDi setup

Files:

Legend:

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

    r5658 r5718  
    975975                                        } 
    976976                                        switch ($trunkprops['tech']) { 
     977                                                case 'DUNDI': 
     978                                                        $macro_name = 'macro-dundi-'.substr($trunkprops['globalvar'],4); 
     979                                                        $ext->addSwitch($macro_name,'DUNDI/'.$trunkprops['name']); 
     980                                                        $ext->add($macro_name, 's', '', new ext_goto('1','${ARG1}')); 
    977981                                                case 'IAX': 
    978982                                                case 'IAX2': 
     
    982986                                                        $ext->add($trunkcontext, '_.', '', new ext_setvar('GROUP()',$trunkgroup)); 
    983987                                                        $ext->add($trunkcontext, '_.', '', new ext_goto('1','${EXTEN}','from-trunk')); 
    984                                                         break; 
    985                                                 case 'DUNDI': 
    986                                                         $macro_name = 'macro-dundi-'.substr($trunkprops['globalvar'],4); 
    987                                                         $ext->addSwitch($macro_name,'DUNDI/'.$trunkprops['name']); 
    988                                                         $ext->add($macro_name, 's', '', new ext_goto('1','${ARG1}')); 
    989988                                                        break; 
    990989                                                default: