Re: [asterisk-users] Asterisk Call Forwarding

2016-03-03 Thread Steve Edwards

On Fri, 4 Mar 2016, Madushan Geethanga wrote:


What is redacted means?

same => n,GotoIf($["${CALLERID(num)}"=""]?divert:void)


Censored. Ususally for political reasons. In this case, the OP didn't want 
to put a real phone number in a public list.


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST

--
_
-- 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] Asterisk Call Forwarding

2016-03-03 Thread Madushan Geethanga
Hi

What is redacted means?

same => n,GotoIf($["${CALLERID(num)}"="**"]?divert:void)

Thanks
Best Regards,
Madushan

On Thu, Mar 3, 2016 at 10:58 PM, Madushan Geethanga  wrote:

>
> Hi,
>
> Thanks Phil, I will implement this and get back to you.
>
> Best Regards,
> Madushan
>
> On Thu, Mar 3, 2016 at 4:12 PM, Phil Reynolds <
> phil-aster...@tinsleyviaduct.com> wrote:
>
>> On Thu, 3 Mar 2016 08:21:14 +0530
>> Madushan Geethanga  wrote:
>>
>> > Hi
>> > I have to setup call forwarding. How do we setup Call forwarding in
>> > asterisk?. Eg. user dials a number and insert some mobile number for
>> > forwarding and dial another number to cancel the forwarding. thanks a
>> > lot.
>>
>> I implemented this like so in my default context:
>>
>> exten => _*21.,1,Answer()
>> same => n,GotoIf($["${CALLERID(num)}"=""]?divert:void)
>> same => n(divert),Set(DB(divert/${CALLERID(num):-4})=${EXTEN:3})
>> same => n,Gosub(divertactive,1)
>> same => n,Hangup()
>> same => n(void),Gosub(divertvoid,1)
>> exten => _#21,1,Answer()
>> same => n,GotoIf($["${CALLERID(num)}"=""]?divert:void)
>> same => n(divert),Verbose(0,${DB_DELETE(divert/${CALLERID(num):-4})})
>> same => n,Gosub(divertoff,1)
>> same => n,Hangup()
>> same => n(void),Gosub(divertvoid,1)
>>
>> (note: use whatever you need in the GotoIf to validate that the phone
>> the call is from is permitted to set up call forwarding - unless you're
>> allowing it for all that can reach the context)
>>
>> The divert{off,active,void} subroutines are where I handle the
>> announcements - but you could probably easily implement your own.
>>
>> At the top of my [voicemail] context, I do this:
>>
>>
>> exten=>s,1,GotoIf(${DB_EXISTS(divert/${ARG3})}?outbound-standard,${DB_RESULT},1)
>>
>> (ARG3 contains the last four digits of the number the call came to in
>> my case, and a success passes the call via the "outbound-standard"
>> context which is in my dialplan. Your exact requirements may vary but
>> this may help.)
>>
>> --
>> Phil Reynolds
>> mail: phil-aster...@tinsleyviaduct.com
>> Web: http://phil.tinsleyviaduct.com/
>>
>> --
>> _
>> -- 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
>>
>
>
-- 
_
-- 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] Asterisk Call Forwarding

2016-03-03 Thread Madushan Geethanga
Hi,

Thanks Phil, I will implement this and get back to you.

Best Regards,
Madushan
On Thu, Mar 3, 2016 at 4:12 PM, Phil Reynolds <
phil-aster...@tinsleyviaduct.com> wrote:

> On Thu, 3 Mar 2016 08:21:14 +0530
> Madushan Geethanga  wrote:
>
> > Hi
> > I have to setup call forwarding. How do we setup Call forwarding in
> > asterisk?. Eg. user dials a number and insert some mobile number for
> > forwarding and dial another number to cancel the forwarding. thanks a
> > lot.
>
> I implemented this like so in my default context:
>
> exten => _*21.,1,Answer()
> same => n,GotoIf($["${CALLERID(num)}"=""]?divert:void)
> same => n(divert),Set(DB(divert/${CALLERID(num):-4})=${EXTEN:3})
> same => n,Gosub(divertactive,1)
> same => n,Hangup()
> same => n(void),Gosub(divertvoid,1)
> exten => _#21,1,Answer()
> same => n,GotoIf($["${CALLERID(num)}"=""]?divert:void)
> same => n(divert),Verbose(0,${DB_DELETE(divert/${CALLERID(num):-4})})
> same => n,Gosub(divertoff,1)
> same => n,Hangup()
> same => n(void),Gosub(divertvoid,1)
>
> (note: use whatever you need in the GotoIf to validate that the phone
> the call is from is permitted to set up call forwarding - unless you're
> allowing it for all that can reach the context)
>
> The divert{off,active,void} subroutines are where I handle the
> announcements - but you could probably easily implement your own.
>
> At the top of my [voicemail] context, I do this:
>
>
> exten=>s,1,GotoIf(${DB_EXISTS(divert/${ARG3})}?outbound-standard,${DB_RESULT},1)
>
> (ARG3 contains the last four digits of the number the call came to in
> my case, and a success passes the call via the "outbound-standard"
> context which is in my dialplan. Your exact requirements may vary but
> this may help.)
>
> --
> Phil Reynolds
> mail: phil-aster...@tinsleyviaduct.com
> Web: http://phil.tinsleyviaduct.com/
>
> --
> _
> -- 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
>
-- 
_
-- 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] Asterisk Call Forwarding

2016-03-03 Thread Phil Reynolds
On Thu, 3 Mar 2016 08:21:14 +0530
Madushan Geethanga  wrote:

> Hi
> I have to setup call forwarding. How do we setup Call forwarding in
> asterisk?. Eg. user dials a number and insert some mobile number for
> forwarding and dial another number to cancel the forwarding. thanks a
> lot.

I implemented this like so in my default context:

exten => _*21.,1,Answer()
same => n,GotoIf($["${CALLERID(num)}"=""]?divert:void)
same => n(divert),Set(DB(divert/${CALLERID(num):-4})=${EXTEN:3})
same => n,Gosub(divertactive,1)
same => n,Hangup()
same => n(void),Gosub(divertvoid,1)
exten => _#21,1,Answer()
same => n,GotoIf($["${CALLERID(num)}"=""]?divert:void)
same => n(divert),Verbose(0,${DB_DELETE(divert/${CALLERID(num):-4})})
same => n,Gosub(divertoff,1)
same => n,Hangup()
same => n(void),Gosub(divertvoid,1)

(note: use whatever you need in the GotoIf to validate that the phone
the call is from is permitted to set up call forwarding - unless you're
allowing it for all that can reach the context)

The divert{off,active,void} subroutines are where I handle the
announcements - but you could probably easily implement your own.

At the top of my [voicemail] context, I do this:

exten=>s,1,GotoIf(${DB_EXISTS(divert/${ARG3})}?outbound-standard,${DB_RESULT},1)

(ARG3 contains the last four digits of the number the call came to in
my case, and a success passes the call via the "outbound-standard"
context which is in my dialplan. Your exact requirements may vary but
this may help.)

-- 
Phil Reynolds
mail: phil-aster...@tinsleyviaduct.com
Web: http://phil.tinsleyviaduct.com/

-- 
_
-- 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] Asterisk Call Forwarding

2016-03-02 Thread Madushan Geethanga
Hi
I have to setup call forwarding. How do we setup Call forwarding in
asterisk?. Eg. user dials a number and insert some mobile number for
forwarding and dial another number to cancel the forwarding. thanks a lot.

Best Regards,

Madushan
-- 
_
-- 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] asterisk call forwarding

2011-05-04 Thread satish patel

Oops!! missed your  ")" 

Sorry, It has been fixed 

From: satish...@hotmail.com
To: asterisk-users@lists.digium.com
Date: Wed, 4 May 2011 20:43:16 +
Subject: Re: [asterisk-users] asterisk call forwarding









Hey!

I tried your statement but its not working but if i insert manually it works

exten => *72,10,Set(DB(CFIM/${fromext})=${toext})


at CLI 

- Executing [*72@from-sip:9] Wait("SIP/7102-0004", "1") in new stack
-- Executing [*72@from-sip:10] Set("SIP/7102-0004", 
"DB(CFIM/7102=7207)") in new stack


satish-desktop*CLI> database show CFIM
0 results found.
satish-desktop*CLI> 







> Date: Tue, 3 May 2011 16:41:30 -0700
> From: cwall...@lodgingcompany.com
> To: asterisk-users@lists.digium.com
> Subject: Re: [asterisk-users] asterisk call forwarding
> 
> On Tue, 3 May 2011 18:10:55 -0400
> Satish Patel  wrote:
> 
> > Thank you so much that solved my database issue. Now how asterisk
> > will forward call ?
> > 
> > Or I need to specify gotoif statment in my stdexten to check
> > database key and take action?
> 
> Yes, you need to write the dialplan to act on the key.  There is a
> sample out there somewhere (I've seen it) that uses the same CFIM
> database keys that you're setting.  Wherever you got the code to set
> those keys, you should be able to find the code for reading and acting
> on them...
> 
> 
> > On May 3, 2011, at 5:41 PM, Chad Wallace
> >  wrote:
> > 
> > > On Tue, 3 May 2011 18:45:32 +
> > > satish patel  wrote:
> > >
> > >>
> > >> I found following dialplan on net but somehow its not going to set
> > >> CFIM in asterisk database  (asterisk 1.8.3.3).  Any idea ?
> > >>
> > >> exten => *72,1,Answer
> > >> exten => *72,2,Wait(1)
> > >> exten => *72,3,BackGround(please-enter-your)
> > >> exten => *72,4,Playback(extension)
> > >> exten => *72,5,Read(fromext,then-press-pound)
> > >> exten => *72,6,Wait(1)
> > >> exten => *72,7,BackGround(ent-target-attendant)
> > >> exten => *72,8,Read(toext,then-press-pound)
> > >> exten => *72,9,Wait(1)
> > >> exten => *72,10,Set(DB(CFIM/${fromext}=${toext}))
> > > ^
> > > Change this line to this:
> > >
> > > exten => *72,10,Set(DB(CFIM/${fromext})=${toext})
> > >  ^
> > >
> > > The DB() function has to be closed before the equal sign.
> > >
> > >
> > >> exten => *72,11,Playback(call-fwd-unconditional)
> > >> exten => *72,12,Playback(for)
> > >> exten => *72,13,Playback(extension)
> > >> exten => *72,14,SayDigits(${fromext})
> > >> exten => *72,15,Playback(is-set-to)
> > >> exten => *72,16,SayDigits(${toext})
> > >> exten => *72,17,Hangup()
> 
> --
> _
> -- 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
  

--
_
-- 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  
  --
_
-- 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] asterisk call forwarding

2011-05-04 Thread satish patel


Hey!

I tried your statement but its not working but if i insert manually it works

exten => *72,10,Set(DB(CFIM/${fromext})=${toext})


at CLI 

- Executing [*72@from-sip:9] Wait("SIP/7102-0004", "1") in new stack
-- Executing [*72@from-sip:10] Set("SIP/7102-0004", 
"DB(CFIM/7102=7207)") in new stack


satish-desktop*CLI> database show CFIM
0 results found.
satish-desktop*CLI> 







> Date: Tue, 3 May 2011 16:41:30 -0700
> From: cwall...@lodgingcompany.com
> To: asterisk-users@lists.digium.com
> Subject: Re: [asterisk-users] asterisk call forwarding
> 
> On Tue, 3 May 2011 18:10:55 -0400
> Satish Patel  wrote:
> 
> > Thank you so much that solved my database issue. Now how asterisk
> > will forward call ?
> > 
> > Or I need to specify gotoif statment in my stdexten to check
> > database key and take action?
> 
> Yes, you need to write the dialplan to act on the key.  There is a
> sample out there somewhere (I've seen it) that uses the same CFIM
> database keys that you're setting.  Wherever you got the code to set
> those keys, you should be able to find the code for reading and acting
> on them...
> 
> 
> > On May 3, 2011, at 5:41 PM, Chad Wallace
> >  wrote:
> > 
> > > On Tue, 3 May 2011 18:45:32 +
> > > satish patel  wrote:
> > >
> > >>
> > >> I found following dialplan on net but somehow its not going to set
> > >> CFIM in asterisk database  (asterisk 1.8.3.3).  Any idea ?
> > >>
> > >> exten => *72,1,Answer
> > >> exten => *72,2,Wait(1)
> > >> exten => *72,3,BackGround(please-enter-your)
> > >> exten => *72,4,Playback(extension)
> > >> exten => *72,5,Read(fromext,then-press-pound)
> > >> exten => *72,6,Wait(1)
> > >> exten => *72,7,BackGround(ent-target-attendant)
> > >> exten => *72,8,Read(toext,then-press-pound)
> > >> exten => *72,9,Wait(1)
> > >> exten => *72,10,Set(DB(CFIM/${fromext}=${toext}))
> > > ^
> > > Change this line to this:
> > >
> > > exten => *72,10,Set(DB(CFIM/${fromext})=${toext})
> > >  ^
> > >
> > > The DB() function has to be closed before the equal sign.
> > >
> > >
> > >> exten => *72,11,Playback(call-fwd-unconditional)
> > >> exten => *72,12,Playback(for)
> > >> exten => *72,13,Playback(extension)
> > >> exten => *72,14,SayDigits(${fromext})
> > >> exten => *72,15,Playback(is-set-to)
> > >> exten => *72,16,SayDigits(${toext})
> > >> exten => *72,17,Hangup()
> 
> --
> _
> -- 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
  --
_
-- 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] asterisk call forwarding

2011-05-04 Thread satish patel

Look like this is what we need 
http://www.voip-info.org/wiki/view/Asterisk+call+forwarding 

What is conditional and unconditional forwarding ? 

> Date: Tue, 3 May 2011 16:41:30 -0700
> From: cwall...@lodgingcompany.com
> To: asterisk-users@lists.digium.com
> Subject: Re: [asterisk-users] asterisk call forwarding
> 
> On Tue, 3 May 2011 18:10:55 -0400
> Satish Patel  wrote:
> 
> > Thank you so much that solved my database issue. Now how asterisk
> > will forward call ?
> > 
> > Or I need to specify gotoif statment in my stdexten to check
> > database key and take action?
> 
> Yes, you need to write the dialplan to act on the key.  There is a
> sample out there somewhere (I've seen it) that uses the same CFIM
> database keys that you're setting.  Wherever you got the code to set
> those keys, you should be able to find the code for reading and acting
> on them...
> 
> 
> > On May 3, 2011, at 5:41 PM, Chad Wallace
> >  wrote:
> > 
> > > On Tue, 3 May 2011 18:45:32 +
> > > satish patel  wrote:
> > >
> > >>
> > >> I found following dialplan on net but somehow its not going to set
> > >> CFIM in asterisk database  (asterisk 1.8.3.3).  Any idea ?
> > >>
> > >> exten => *72,1,Answer
> > >> exten => *72,2,Wait(1)
> > >> exten => *72,3,BackGround(please-enter-your)
> > >> exten => *72,4,Playback(extension)
> > >> exten => *72,5,Read(fromext,then-press-pound)
> > >> exten => *72,6,Wait(1)
> > >> exten => *72,7,BackGround(ent-target-attendant)
> > >> exten => *72,8,Read(toext,then-press-pound)
> > >> exten => *72,9,Wait(1)
> > >> exten => *72,10,Set(DB(CFIM/${fromext}=${toext}))
> > > ^
> > > Change this line to this:
> > >
> > > exten => *72,10,Set(DB(CFIM/${fromext})=${toext})
> > >  ^
> > >
> > > The DB() function has to be closed before the equal sign.
> > >
> > >
> > >> exten => *72,11,Playback(call-fwd-unconditional)
> > >> exten => *72,12,Playback(for)
> > >> exten => *72,13,Playback(extension)
> > >> exten => *72,14,SayDigits(${fromext})
> > >> exten => *72,15,Playback(is-set-to)
> > >> exten => *72,16,SayDigits(${toext})
> > >> exten => *72,17,Hangup()
> 
> --
> _
> -- 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
  --
_
-- 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] asterisk call forwarding

2011-05-03 Thread Chad Wallace
On Tue, 3 May 2011 18:10:55 -0400
Satish Patel  wrote:

> Thank you so much that solved my database issue. Now how asterisk
> will forward call ?
> 
> Or I need to specify gotoif statment in my stdexten to check
> database key and take action?

Yes, you need to write the dialplan to act on the key.  There is a
sample out there somewhere (I've seen it) that uses the same CFIM
database keys that you're setting.  Wherever you got the code to set
those keys, you should be able to find the code for reading and acting
on them...


> On May 3, 2011, at 5:41 PM, Chad Wallace
>  wrote:
> 
> > On Tue, 3 May 2011 18:45:32 +
> > satish patel  wrote:
> >
> >>
> >> I found following dialplan on net but somehow its not going to set
> >> CFIM in asterisk database  (asterisk 1.8.3.3).  Any idea ?
> >>
> >> exten => *72,1,Answer
> >> exten => *72,2,Wait(1)
> >> exten => *72,3,BackGround(please-enter-your)
> >> exten => *72,4,Playback(extension)
> >> exten => *72,5,Read(fromext,then-press-pound)
> >> exten => *72,6,Wait(1)
> >> exten => *72,7,BackGround(ent-target-attendant)
> >> exten => *72,8,Read(toext,then-press-pound)
> >> exten => *72,9,Wait(1)
> >> exten => *72,10,Set(DB(CFIM/${fromext}=${toext}))
> > ^
> > Change this line to this:
> >
> > exten => *72,10,Set(DB(CFIM/${fromext})=${toext})
> >  ^
> >
> > The DB() function has to be closed before the equal sign.
> >
> >
> >> exten => *72,11,Playback(call-fwd-unconditional)
> >> exten => *72,12,Playback(for)
> >> exten => *72,13,Playback(extension)
> >> exten => *72,14,SayDigits(${fromext})
> >> exten => *72,15,Playback(is-set-to)
> >> exten => *72,16,SayDigits(${toext})
> >> exten => *72,17,Hangup()

--
_
-- 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] asterisk call forwarding

2011-05-03 Thread Satish Patel
Thank you so much that solved my database issue. Now how asterisk will  
forward call ?


Or I need to specify gotoif statment in my stdexten to check database  
key and take action?


--
Sent from my iPhone

On May 3, 2011, at 5:41 PM, Chad Wallace   
wrote:



On Tue, 3 May 2011 18:45:32 +
satish patel  wrote:



I found following dialplan on net but somehow its not going to set
CFIM in asterisk database  (asterisk 1.8.3.3).  Any idea ?

exten => *72,1,Answer
exten => *72,2,Wait(1)
exten => *72,3,BackGround(please-enter-your)
exten => *72,4,Playback(extension)
exten => *72,5,Read(fromext,then-press-pound)
exten => *72,6,Wait(1)
exten => *72,7,BackGround(ent-target-attendant)
exten => *72,8,Read(toext,then-press-pound)
exten => *72,9,Wait(1)
exten => *72,10,Set(DB(CFIM/${fromext}=${toext}))

^
Change this line to this:

exten => *72,10,Set(DB(CFIM/${fromext})=${toext})
 ^

The DB() function has to be closed before the equal sign.



exten => *72,11,Playback(call-fwd-unconditional)
exten => *72,12,Playback(for)
exten => *72,13,Playback(extension)
exten => *72,14,SayDigits(${fromext})
exten => *72,15,Playback(is-set-to)
exten => *72,16,SayDigits(${toext})
exten => *72,17,Hangup()


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



--
_
-- 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] asterisk call forwarding

2011-05-03 Thread Chad Wallace
On Tue, 3 May 2011 18:45:32 +
satish patel  wrote:

> 
> I found following dialplan on net but somehow its not going to set
> CFIM in asterisk database  (asterisk 1.8.3.3).  Any idea ? 
> 
> exten => *72,1,Answer
> exten => *72,2,Wait(1)
> exten => *72,3,BackGround(please-enter-your)
> exten => *72,4,Playback(extension)
> exten => *72,5,Read(fromext,then-press-pound)
> exten => *72,6,Wait(1)
> exten => *72,7,BackGround(ent-target-attendant)
> exten => *72,8,Read(toext,then-press-pound)
> exten => *72,9,Wait(1)
> exten => *72,10,Set(DB(CFIM/${fromext}=${toext}))
 ^
Change this line to this:

exten => *72,10,Set(DB(CFIM/${fromext})=${toext})
  ^

The DB() function has to be closed before the equal sign.


> exten => *72,11,Playback(call-fwd-unconditional)
> exten => *72,12,Playback(for)
> exten => *72,13,Playback(extension)
> exten => *72,14,SayDigits(${fromext})
> exten => *72,15,Playback(is-set-to)
> exten => *72,16,SayDigits(${toext})
> exten => *72,17,Hangup()

--
_
-- 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] asterisk call forwarding

2011-05-03 Thread satish patel

I found following dialplan on net but somehow its not going to set CFIM in 
asterisk database  (asterisk 1.8.3.3).  Any idea ? 

exten => *72,1,Answer
exten => *72,2,Wait(1)
exten => *72,3,BackGround(please-enter-your)
exten => *72,4,Playback(extension)
exten => *72,5,Read(fromext,then-press-pound)
exten => *72,6,Wait(1)
exten => *72,7,BackGround(ent-target-attendant)
exten => *72,8,Read(toext,then-press-pound)
exten => *72,9,Wait(1)
exten => *72,10,Set(DB(CFIM/${fromext}=${toext}))
exten => *72,11,Playback(call-fwd-unconditional)
exten => *72,12,Playback(for)
exten => *72,13,Playback(extension)
exten => *72,14,SayDigits(${fromext})
exten => *72,15,Playback(is-set-to)
exten => *72,16,SayDigits(${toext})
exten => *72,17,Hangup()


From: satish...@hotmail.com
To: asterisk-users@lists.digium.com
Date: Tue, 3 May 2011 18:13:30 +
Subject: [asterisk-users] asterisk call forwarding








Hey Guys! 

Anybody have basic and simple call forwarding dialplan ? I search on google and 
i found many but those are pretty complicated and most are for trixbox and GUI. 

-S 
  

--
_
-- 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  
  --
_
-- 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] asterisk call forwarding

2011-05-03 Thread satish patel

Hey Guys! 

Anybody have basic and simple call forwarding dialplan ? I search on google and 
i found many but those are pretty complicated and most are for trixbox and GUI. 

-S 
  --
_
-- 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] Asterisk Call Forwarding

2005-12-21 Thread Androtech

Hi Tim,

probably my information are not quite clear; 3473774567 is a mobile phone 
and 105 is an extension. I would like to forward any outside calling from 
this mobile (3473774567) to the extension 105.

When you talk about DB, what do you mean exactly?
Could you be so kind to post some examples so the * forward calling function 
will be more clear.

Thanks a lot.



- Original Message - 
From: "Time Bandit" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 


Sent: Wednesday, December 21, 2005 3:16 PM
Subject: Re: [Asterisk-Users] Asterisk Call Forwarding


In my case, the phone number to forward is 3473774567, and the extension 
is

105, hence the syntax should be:

exten =>
3473774567,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:105})


Let me explain you what this syntax is saying :
presuming this number is called from extension 7001
- Put in the DB, under the key CFIM/7001, the value of 3473774567
ignoring the first 105 character, so * just put en empty value.

To help you understand, if you would put ${EXTEN:1}, you would end up
with the value 473774567, if you put ${EXTEN:3} you would end up with
3774567

hth
___
--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

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


Re: [Asterisk-Users] Asterisk Call Forwarding

2005-12-21 Thread Time Bandit
> In my case, the phone number to forward is 3473774567, and the extension is
> 105, hence the syntax should be:
>
> exten =>
> 3473774567,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:105})

Let me explain you what this syntax is saying :
presuming this number is called from extension 7001
- Put in the DB, under the key CFIM/7001, the value of 3473774567
ignoring the first 105 character, so * just put en empty value.

To help you understand, if you would put ${EXTEN:1}, you would end up
with the value 473774567, if you put ${EXTEN:3} you would end up with
3774567

hth
___
--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


Re: [Asterisk-Users] Asterisk Call Forwarding

2005-12-21 Thread Alberto Sagredo




You need to manage this variable on Asterisk DB in order to make call
forwarding.

It must be done in extensions.conf . In voip-info you could find how to
do that.


Androtech wrote:

  
  
  
  Hi,
   
  I would like to forward a calling
from a specific number to an extension.
  The dialplan syntax should be:
   
  exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4})
  
  exten => _*21*X.,2,Hangup 
   
  In
my case, the phone number to forward is 3473774567, and the extension
is 105, hence the syntax should be:
   
  exten => 3473774567,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:105})
  
  exten => 3473774567,2,Hangup 
  
  but Asterisk does not forward the number
to the extension 105.
   
  Any ideas?
   
  

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



-- 
Alberto Sagredo
Departamento Técnico
Peoplecall


Email : [EMAIL PROTECTED]
Blog: http://www.voip-novatos.es

Tel./Ph. : +34 91 120 5080
Tel. Dir./Dir. Ph.: 700 755 048
Fax./Fax.: +34 91 661 9460




___
--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] Asterisk Call Forwarding

2005-12-21 Thread Androtech



Hi,
 
I would like to forward a calling from a specific 
number to an extension.
The dialplan syntax should be:
 
exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4}) 
exten => _*21*X.,2,Hangup 
 
In my case, 
the phone number to forward is 3473774567, and the extension is 105, hence the 
syntax should be:
 
exten => 3473774567,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:105}) exten => 3473774567,2,Hangup 
but Asterisk does not forward the number to the 
extension 105.
 
Any ideas?
 
___
--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


Re: [Asterisk-Users] Asterisk call forwarding / remote dial-in/out?

2004-04-01 Thread WipeOut
Angus Berry wrote:

I haven't found this in any docs or faqs yet, so I'm wondering if I can
achieve what I would like to do.
On an Asterisk PBX with multiple PSTN lines, I'd like to call in from
one PSTN line, probably via cellphone and access the PBX as if I were
local to it. From here I'd like to get a dial tone and call back out. I
know this isn't exactly call forwarding per se, but I'm wondering if
this can be done.
thanks

 

Simply drop your inbound call to a contaxt that has access to outbound 
lines.. You may want to put a pin onto it so you don't get everyone 
using it and running up your phone bills..

You could extend on this and have a callback as well, so the yser calls 
in, the system then calls them back and offers them a dialtone..

Really shouldn't be hard to do, just dig around the handbook and the 
other Asterisk info sires and you should be able to put it together..

Later

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Asterisk call forwarding / remote dial-in/out?

2004-04-01 Thread Bill Hamel
Yes you can, It's called DISA. Realize that using DISA has it's potential
security concerns.

>From the asterisk console type "show application DISA" for more information.

DISA = Direct Inward System Access

Ciao,
-bh

Quoting Angus Berry <[EMAIL PROTECTED]>:

> I haven't found this in any docs or faqs yet, so I'm wondering if I can
> achieve what I would like to do.
> 
> On an Asterisk PBX with multiple PSTN lines, I'd like to call in from
> one PSTN line, probably via cellphone and access the PBX as if I were
> local to it. From here I'd like to get a dial tone and call back out. I
> know this isn't exactly call forwarding per se, but I'm wondering if
> this can be done.
> 
> thanks
> 
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by The CCIS.net MailScanner, and is
> believed to be clean.
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by the Bugs.Hamel.Net MailScanner, 
> and appears to be clean.
> 
> 


-- 



This message was sent using IMP, the Internet Messaging Program.

-- 
This message has been scanned for viruses and
dangerous content by the Bugs.Hamel.Net MailScanner, 
and appears to be clean.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Asterisk call forwarding / remote dial-in/out?

2004-04-01 Thread Ed Rubright
*CLI> show application DISA

Ed 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Angus Berry
Sent: Thursday, April 01, 2004 1:08 PM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Asterisk call forwarding / remote dial-in/out?

I haven't found this in any docs or faqs yet, so I'm wondering if I can
achieve what I would like to do.

On an Asterisk PBX with multiple PSTN lines, I'd like to call in from one
PSTN line, probably via cellphone and access the PBX as if I were local to
it. From here I'd like to get a dial tone and call back out. I know this
isn't exactly call forwarding per se, but I'm wondering if this can be done.

thanks

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Asterisk call forwarding / remote dial-in/out?

2004-04-01 Thread creslin
> On an Asterisk PBX with multiple PSTN lines, I'd like to call in from
> one PSTN line, probably via cellphone and access the PBX as if I were
> local to it. From here I'd like to get a dial tone and call back out. I
> know this isn't exactly call forwarding per se, but I'm wondering if
> this can be done.

Yes.  Take a look at the DISA application.  It provides the
functionality that you are looking for.  You can set it up to be used
in your extensions.conf

Matthew Fredrickson
Digium
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Asterisk call forwarding / remote dial-in/out?

2004-04-01 Thread Angus Berry
I haven't found this in any docs or faqs yet, so I'm wondering if I can
achieve what I would like to do.

On an Asterisk PBX with multiple PSTN lines, I'd like to call in from
one PSTN line, probably via cellphone and access the PBX as if I were
local to it. From here I'd like to get a dial tone and call back out. I
know this isn't exactly call forwarding per se, but I'm wondering if
this can be done.

thanks

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users