Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6103683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:45:24+00:00 2026-05-23T13:45:24+00:00

I have an asterisk server set up as a telephone exchange. I have, on

  • 0

I have an asterisk server set up as a telephone exchange. I have, on it, a 100 extensions, from 00 – 99. I am running specific functions on each of those extensions. Some of these functions may need the extension on which the call was received to be available. How can I access the same? For example,

Say a call comes in on extension 55.
55 has a function associated with it. That function must take in 55 as an input parameter. How do I do this?

I have tried the following:

exten => 0,n,Verbose(1, "Call on ${EXTEN}-${CHANNEL}")  

Output is : Call on 0-DAHDI/20-1

Thanks,
Sriram Shankar.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:45:24+00:00Added an answer on May 23, 2026 at 1:45 pm

    The answer you are looking for is dependent upon the path that the call is taking through your system. The easiest way to determine the answer to your question is to place the call and then run the following commands from within the Asterisk CLI:

    > core show channels
    

    This will show you what channels are active. Find the channel name of your call.

    core show channel [channel-name]
    

    This will output an array of channel details, including different variables that are set and their corresponding values. Look for the extension number you are trying to grab in the value fields and then look to see what the corresponding variable name is. It could be ${CALLERID(num)}, ${CALLERID(dnid)}, something under the ${CDR} variable, or even elsewhere.

    If you don’t find it in the output produced by “core show channel [channel-name]”, you may have to trace the dialplan path that the call is taking and try setting the variable early on when the DID information is still available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code from http://www.hyllander.org/node/23 that uses $* (dollar asterisk or dollar star),
My Asterisk set up is as follows: - I have 2 grandstream GXP 2000
I am using asterisk to implement a voice server. I have the following two
We have asterisk server and I need to get numbers that calls in current
We have asterisk server and GSM gateway. I need to know phone numbers that
I have a webservice running on ubuntu server. This webservice has a method :
I have been running SQL Server 2005 Express Management Studio (SSMSE), and I now
I have configured Red5Phone on Red5 Server. I am able to connect to Asterisk
So I have been trying to learn asterisk with some limited success. Essentially what
I am using asterisk 10 with confbridge and have set a menu option in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.