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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:15:20+00:00 2026-06-17T08:15:20+00:00

I’d like to forward a call. I can define an extension, answer the call

  • 0

I’d like to forward a call. I can define an extension, answer the call and use Dial command. But t is not what I want. I don’t want to answer the call immediately. I’d rather wait the second call to be answered.

How to do it? When I just use Dial(Sip/…) without answering, there is a complete silence on both sides.

I’ve read (see http://fonality.com/trixbox/forums/trixbox-forums/open-discussion/call-forward-without-answer-dialplan ) that it can be solved by disabling fax. I’ve unloaded fax modules, but it didn’t solve the problem. On the same page, I’ve read that I can try somethig like http://www.voip-info.org/wiki/view/Asterisk%20auto-dial%20out , but that looks too advanced.

I’ve another idea. Use Dial(Sip/…, 60, M(a-macro)). But I don’t know how to join these two calls in the macro.

Any idea?

EDIT: To make it clear. When I use just Dial (e.g. Dial(SIP/uri) or Dial(SIP/uri, 60, r)), it does the following:

  1. caller: It rings
  2. SIP phone (or software) rings
  3. The call is answered from the SIP phone
  4. SIP phone: There is no sound.
  5. caller: It stops ringing, there is no sound

When I add command Playback(invalid) before Dial(…) command, it is completely different:

  1. caller: It rings
  2. caller: The call is answered and the message “invalid” is read.
  3. caller: It rings (but the call is answered and callers pays this ringing time)
  4. SIP phone (or software) rings
  5. The call is answered from the SIP phone
  6. The call is successfully connected

Is seems that the problem occurs if and only if when the call is not explicitly answered (e.g. via Playback(…) or Answer()) before Dial(…) command. So, something like following may help (JQuery-like pseudocode):

call_1.Dial(...).onAnswer(function(call_2){
    call_1.Answer();
});

Asterisk tries something similar, but the Asterisk’s way is buggy.

Of course, adding Answer() before Dial(…) works, but I don’t want to answer the call until the redirected call is answered


I’ve almost solved it by using Dial(SIP/…, timeout, A(invalid)). Now, I’ve to use another (zero-length or almost zero-length) sound.

  • 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-06-17T08:15:21+00:00Added an answer on June 17, 2026 at 8:15 am

    I was not able to create a valid zero-length sound, but following solution seems to be good enough for me:

    exten => s,1,<log it>
    exten => s,n,Dial(SIP/address@somewhere.com, 600, A(beeperr))
    exten => s,n,GotoIf($["${DIALSTATUS}" = "ANSWER"]?:callfail)
    exten => s,n(callfail),<report call fail>
    

    The most important part of code is Dial(SIP/address@somewhere.com, 600, A(beeperr)).

    Now, it works:

    1. A caller makes a call.
    2. A call to address@somewhere.com is created.
    3. Call to address@somewhere.com is answered by user.
    4. A short sound (i.e. beeperr) is played to address@somewhere.com
    5. The original call is answered and bridged.

    In this case, the caller don’t hear the beeperr sound. The sound is played only to address@somewhere.com. This makes a short pause between answering the call by address@somewhere.com and answering the original call. In the pause, beeperr is played.

    Maybe directmedia=no is a part of the solution, but I am not sure.

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

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I want to construct a data frame in an Rcpp function, but when I
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace

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.