<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Oops!! missed your ")" <br><br>Sorry, It has been fixed <br><br><hr id="stopSpelling">From: satish_lx@hotmail.com<br>To: asterisk-users@lists.digium.com<br>Date: Wed, 4 May 2011 20:43:16 +0000<br>Subject: Re: [asterisk-users] asterisk call forwarding<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<br>Hey!<br><br>I tried your statement but its not working but if i insert manually it works<br><br><pre>exten => *72,10,Set(DB(CFIM/${fromext})=${toext})<br><br><br>at CLI <br><br>- Executing [*72@from-sip:9] Wait("SIP/7102-00000004", "1") in new stack<br> -- Executing [*72@from-sip:10] Set("SIP/7102-00000004", "DB(CFIM/7102=7207)") in new stack<br><br><br>satish-desktop*CLI> database show CFIM<br>0 results found.<br>satish-desktop*CLI> <br><br><br><br></pre><br><br><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>                                           
<br>--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users                                            </body>
</html>