[asterisk-users] Forwarding calls and trasfer calls

Ralf Träskman ralf at adlibris.com
Thu Jan 22 02:07:39 CST 2009


Hi

Where do i put this, and what shall i change do make it work for me?

/ralf 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Klaus Darilion
Sent: den 20 januari 2009 18:17
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Forwarding calls and trasfer calls

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

_______________________________________________
-- 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