<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Look like this is what we need http://www.voip-info.org/wiki/view/Asterisk+call+forwarding <br><br>What is conditional and unconditional forwarding ? <br><br>> Date: Tue, 3 May 2011 16:41:30 -0700<br>> From: cwallace@lodgingcompany.com<br>> To: asterisk-users@lists.digium.com<br>> Subject: Re: [asterisk-users] asterisk call forwarding<br>> <br>> On Tue, 3 May 2011 18:10:55 -0400<br>> Satish Patel <satish_lx@hotmail.com> wrote:<br>> <br>> > Thank you so much that solved my database issue. Now how asterisk<br>> > will forward call ?<br>> > <br>> > Or I need to specify gotoif statment in my stdexten to check<br>> > database key and take action?<br>> <br>> Yes, you need to write the dialplan to act on the key. There is a<br>> sample out there somewhere (I've seen it) that uses the same CFIM<br>> database keys that you're setting. Wherever you got the code to set<br>> those keys, you should be able to find the code for reading and acting<br>> on them...<br>> <br>> <br>> > On May 3, 2011, at 5:41 PM, Chad Wallace<br>> > <cwallace@lodgingcompany.com> wrote:<br>> > <br>> > > On Tue, 3 May 2011 18:45:32 +0000<br>> > > satish patel <satish_lx@hotmail.com> wrote:<br>> > ><br>> > >><br>> > >> I found following dialplan on net but somehow its not going to set<br>> > >> CFIM in asterisk database (asterisk 1.8.3.3). Any idea ?<br>> > >><br>> > >> exten => *72,1,Answer<br>> > >> exten => *72,2,Wait(1)<br>> > >> exten => *72,3,BackGround(please-enter-your)<br>> > >> exten => *72,4,Playback(extension)<br>> > >> exten => *72,5,Read(fromext,then-press-pound)<br>> > >> exten => *72,6,Wait(1)<br>> > >> exten => *72,7,BackGround(ent-target-attendant)<br>> > >> exten => *72,8,Read(toext,then-press-pound)<br>> > >> exten => *72,9,Wait(1)<br>> > >> exten => *72,10,Set(DB(CFIM/${fromext}=${toext}))<br>> > > ^<br>> > > Change this line to this:<br>> > ><br>> > > exten => *72,10,Set(DB(CFIM/${fromext})=${toext})<br>> > > ^<br>> > ><br>> > > The DB() function has to be closed before the equal sign.<br>> > ><br>> > ><br>> > >> exten => *72,11,Playback(call-fwd-unconditional)<br>> > >> exten => *72,12,Playback(for)<br>> > >> exten => *72,13,Playback(extension)<br>> > >> exten => *72,14,SayDigits(${fromext})<br>> > >> exten => *72,15,Playback(is-set-to)<br>> > >> exten => *72,16,SayDigits(${toext})<br>> > >> exten => *72,17,Hangup()<br>> <br>> --<br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> New to Asterisk? Join us for a live introductory webinar every Thurs:<br>> http://www.asterisk.org/hello<br>> <br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-users<br>                                            </body>
</html>