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 574287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:48:52+00:00 2026-05-13T13:48:52+00:00

I have an asterisk-based PBX, and I have been able to successfully run an

  • 0

I have an asterisk-based PBX, and I have been able to successfully run an AGI script from the web control panel of the PBX.

Because I am calling AGI from Perl (neither of which I know, yet)…
asterisk commands look like this:

    print "SET CALLERID $newcid \"\"\n";

So far, I don’t expect to need to do any database lookups, etc. I simply want to set the caller ID (which I can do already) – then forward the call to a particular number.

Can anyone show me how to forward the current call using the AGI/perl style of executing asterisk commands shown above?

FYI: I’ve seen some examples using a format like:

    Exten => blah blah....

But, I am not sure how to convert that to the AGI/perl format.

  • 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-13T13:48:52+00:00Added an answer on May 13, 2026 at 1:48 pm
    print "EXEC DIAL \"Zap/1/5551234567\"\n";
    

    or, if you are using Asterisk::AGI,

    $AGI->exec("DIAL", "Zap/1/5551234567");
    
    • 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),
I have a string that contains many asterisk' '*'. I want to be able
So I have been trying to learn asterisk with some limited success. Essentially what
I have a text file, save from an Asterisk db, that looks like so:
I have the following context in my asterisk dialplan. [start-call] exten => _X.,1,AGI(agi://localhost:4000) exten
I have configured Red5Phone on Red5 Server. I am able to connect to Asterisk
Have an option to choose either a windows SE or Web Edition to install,
have been playing with Cubepoints (wordpress plugin) and have installed the ranks module but
I am learning asterisk.In this I have worked with voicemail application. When I was
I have been trying to get a2billing to work for the past 4 days

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.