Re: [asterisk-users] call forward problem

2010-11-22 Thread Daniel Tryba
On Fri, Nov 19, 2010 at 12:04:47PM +0530, Aparna Narayan wrote:
 I tried to perform call forward in asterisk by writing the following in the
 dial plan.The data base is getting updated with the caller ID number how
 ever the call is not getting forwarded.
 
 [apps]
 
 exten = _*21*XX,1,Set(DB(CFIM/${CALLERID(number)})=${EXTEN:4})
 exten = _*21*XX,2,Hangup
 exten = #21#,1,DBDel(CFIM/${CALLERID(num)})=${EXTEN:4}
 exten = #21#,2,Hangup

You are not actually forwarding the call, just storing a number to
forward to. You need to implement a dialplan where calls to internal
numbers check whether ${DB(CFIM/${EXTEN})} is empty (and do nothing) or
set (and dial that number instead).

-- 

   Daniel Tryba

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


[asterisk-users] call forward problem

2010-11-18 Thread Aparna Narayan
Hi,
I tried to perform call forward in asterisk by writing the following in the
dial plan.The data base is getting updated with the caller ID number how
ever the call is not getting forwarded.

[apps]

exten = _*21*XX,1,Set(DB(CFIM/${CALLERID(number)})=${EXTEN:4})
exten = _*21*XX,2,Hangup
exten = #21#,1,DBDel(CFIM/${CALLERID(num)})=${EXTEN:4}
exten = #21#,2,Hangup

Regards,
Aparna
-- 
_
-- 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

Re: [asterisk-users] Call Forward Problem

2006-09-11 Thread picciuX
use:exten = s,2,Read(fwdnum|audiofile-to-play|10)then you'll have the number entered in variable ${fwdnum}.Type show application read in asterisk console for further details...
Hope this helps...2006/9/9, James Williams [EMAIL PROTECTED]:
I'm currently trying to write a section into my dialplan that when a userdials *78, it will beep 3 times, then wait 10 seconds for the user to entera 10 digit phone number, then beep 3 more times and put that number into my
AsteriskDB.I'm very new to this and I know this is probably very simplebut I'm having a very hard time accomplishing this.Here is what I havecurrently which works for the most part.I thought that using WaitExten(10)
would store the numbers that they enter to ${EXTEN} but I was wrong, insteadI get just the s.Any idea what I'd have to change here to either storethe number to ${EXTEN} or another variable? Any help would be appreciated.
[CFWD] ; Call Forward Unconditionalexten = *78,1,Set(cfwd_able=${DB(User/${CALLERID(number)}/cfwd_able})exten = *78,2,GotoIf($[${cfwd_able} = 0]?10)exten = *78,3,GotoIf($[${cfwd_able} = 1]?4)
exten = *78,4,Goto(get-fwd,s,1)exten = *78,10,Playback(feature-not-avail-line)exten = *78,11,Hangupexten = *73,1,Set(DB(User/${CALLERID(number)}/callforward)=Disabled)
exten = *73,2,DBdel(User/${CALLERID(number)}/callforwardnumber)exten = *73,3,AGI(/etc/asterisk/scripts/cfwdprocess.pl)exten = *73,4,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)
exten = *73,5,Hangup[get-fwd]exten = s,1,NoOp(${TIMESTAMP} get-cfwd begins)exten = s,2,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)exten = s,2,WaitExten(10)exten = s,3,Set(DB(User/${CALLERID(number)}/callforward)=Enabled)
exten = s,4,Set(DB(User/${CALLERID(number)}/callforwardnumber)=${EXTEN})exten = s,5,AGI(/etc/asterisk/scripts/cfwdprocess.pl)exten = s,6,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)
exten = s,7,Wait(5)exten = s,8,Hangup--No virus found in this outgoing message.Checked by AVG Free Edition.Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006
___--Bandwidth and Colocation provided by Easynews.com --asterisk-users mailing listTo UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Call Forward Problem

2006-09-09 Thread James Williams
I’m currently trying to write a section into my dialplan that when a user
dials *78, it will beep 3 times, then wait 10 seconds for the user to enter
a 10 digit phone number, then beep 3 more times and put that number into my
AsteriskDB.  I’m very new to this and I know this is probably very simple
but I’m having a very hard time accomplishing this.  Here is what I have
currently which works for the most part.  I thought that using WaitExten(10)
would store the numbers that they enter to ${EXTEN} but I was wrong, instead
I get just the s.  Any idea what I'd have to change here to either store
the number to ${EXTEN} or another variable? Any help would be appreciated.


[CFWD] ; Call Forward Unconditional
exten = *78,1,Set(cfwd_able=${DB(User/${CALLERID(number)}/cfwd_able})

exten = *78,2,GotoIf($[${cfwd_able} = 0]?10)

exten = *78,3,GotoIf($[${cfwd_able} = 1]?4)

exten = *78,4,Goto(get-fwd,s,1)

exten = *78,10,Playback(feature-not-avail-line)

exten = *78,11,Hangup


exten = *73,1,Set(DB(User/${CALLERID(number)}/callforward)=Disabled)

exten = *73,2,DBdel(User/${CALLERID(number)}/callforwardnumber)

exten = *73,3,AGI(/etc/asterisk/scripts/cfwdprocess.pl)
exten = *73,4,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)

exten = *73,5,Hangup  

[get-fwd]
exten = s,1,NoOp(${TIMESTAMP} get-cfwd begins)
exten = s,2,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)

exten = s,2,WaitExten(10)

exten = s,3,Set(DB(User/${CALLERID(number)}/callforward)=Enabled)

exten = s,4,Set(DB(User/${CALLERID(number)}/callforwardnumber)=${EXTEN})

exten = s,5,AGI(/etc/asterisk/scripts/cfwdprocess.pl)
exten = s,6,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)

exten = s,7,Wait(5)
exten = s,8,Hangup 




-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006
 

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users