Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] How to get called number in featuremap


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
prashant.ruby at gmail...
Guest





PostPosted: Thu Jan 31, 2008 12:08 am    Post subject: [asterisk-users] How to get called number in featuremap Reply with quote

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
Back to top
atis at iq-labs.net
Guest





PostPosted: Thu Jan 31, 2008 11:00 am    Post subject: [asterisk-users] How to get called number in featuremap Reply with quote

On 1/31/08, Prashant Sharma <prashant.ruby at gmail.com> wrote:
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services