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? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051221/3208463b/attachment.htm
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 : asagredo@peoplecall.com 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051221/537ef65a/attachment.htm
> 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
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" <timebandit001@gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> 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
In article <003201c6063d$277e7b10$9700a8c0@GIGLIESI.IT>, androtech@gigliesi.it says...> 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.Do your self a favor, read some Asterisk tutorial. You will start using Asterisk much faster then asking evry simple thing on mailing list. On this pages http://www.voip-info.org/tiki-index.php?page=Asterisk you have a list of "Howtos and Tutorials". -- Tomislav Parcina ime.prezime@email.t-com.hr