Prashant Sharma
2008-Jan-31 05:08 UTC
[asterisk-users] How to get called number in featuremap
Hi, I am new to asterisk configuration. I want to get called number in features.conf. I am defining a feature in features.conf and that feature got executed on pressing a particular DTMF key sequence. As I want to execute my own application on pressing that key which will use called number. testfeature => 3,peer,AGI,StoreNumber|<CalledNumber> Here I want to use called number in place of <CalledNumber> tag. When I use any variable *${DIALEDPEERNUMBER} *then it does not resolve the variable in features.conf. if i use following then it does not work. testfeature => 3,peer,AGI,StoreNumber|*${DIALEDPEERNUMBER} *StoreNumber is my own application that stores the number. * Any idea as how I can use CalledNumber in features.conf? Please help. Thanks in Advance Regards Prashant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080131/903d5dd6/attachment.htm
You need $dnis. On Jan 30, 2008, at 11:08 PM, "Prashant Sharma" <prashant.ruby at gmail.com> wrote:> Hi, > > I am new to asterisk configuration. > I want to get called number in features.conf. > I am defining a feature in features.conf and that feature got > executed on pressing a particular DTMF key sequence. > As I want to execute my own application on pressing that key which > will use called number. > > testfeature => 3,peer,AGI,StoreNumber|<CalledNumber> > > Here I want to use called number in place of <CalledNumber> tag. > When I use any variable ${DIALEDPEERNUMBER} then it does not resolve > the variable in features.conf. > > if i use following then it does not work. > > testfeature => 3,peer,AGI,StoreNumber|${DIALEDPEERNUMBER} > > *StoreNumber is my own application that stores the number. > > Any idea as how I can use CalledNumber in features.conf? > > > Please help. > > Thanks in Advance > > Regards > > Prashant > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080131/918fc3f9/attachment.htm
Atis Lezdins
2008-Jan-31 16:00 UTC
[asterisk-users] How to get called number in featuremap
On 1/31/08, Prashant Sharma <prashant.ruby at gmail.com> wrote:> Hi, > > I am new to asterisk configuration. > I want to get called number in features.conf. > I am defining a feature in features.conf and that feature got executed on > pressing a particular DTMF key sequence. > As I want to execute my own application on pressing that key which will use > called number. > > testfeature => 3,peer,AGI,StoreNumber|<CalledNumber> > > Here I want to use called number in place of <CalledNumber> tag. When I use > any variable ${DIALEDPEERNUMBER} then it does not resolve the variable in > features.conf. > > if i use following then it does not work. > > testfeature => 3,peer,AGI,StoreNumber|${DIALEDPEERNUMBER} > > *StoreNumber is my own application that stores the number. > > Any idea as how I can use CalledNumber in features.conf?You can't. Retrieve the variable from inside AGI. http://www.voip-info.org/wiki/view/get+variable Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. atis at iq-labs.net Skype: atis.lezdins Cell Phone: +371 28806004 Work phone: +1 800 7502835