[asterisk-users] Forwarding calls and trasfer calls

Klaus Darilion klaus.mailinglists at pernau.at
Tue Jan 20 11:16:57 CST 2009


features.conf for transfers

for call forwardin you need some application logic.

e.g.

_**21**. => {
   Set(NUM=${EXTEN:6}); // contains the new target
   // now store this number somewhere, e.g. astdb, odbc ...
   ...
}

context fromPstn {
   1234 => {
     // check if user has actived forwarding
     // retrieve NUM from astdb or ODBC
     if(${EXISTS(${NUM})}) {
	Dial(DAHDI/g1/${NUM});
     } else {
         Dial(SIP/${EXTEN});
     }
   }
}


regards
klaus


Ralf Träskman schrieb:
> Hi
> 
>  
> 
> How do i set up so that everyone can dial, for example **21** to forward 
> all calls to a cellphone or another extension and how do I enable so 
> that cals can be transferd between extentions.
> 
>  
> 
> I use asterisk 1.6 and have my phones in unistim.conf and my extensions 
> in extensions.conf.
> 
>  
> 
> Regards
> 
> /ralf
> 
>  
> 
> ________________________________________________
> 
> Ralf Träskman, IT
> AdLibris AB, Odengatan 106, 113 22 Stockholm, Sweden
> Dir: +46-(0)707548074, vxl: +46-(0)85460 60 00, fax: +46-(0)85460 60 99
> ralf at adlibris.com <mailto:ralf at adlibris.com> www.adlibris.com 
> <http://www.adlibris.com/>
> P *Please consider the environment before printing this e-mail*
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list