Re: [asterisk-users] OK, I'm stumped

2010-05-17 Thread Jeff Brower
Bruce-

 On 05/16/2010 11:22 AM, Jeff Brower wrote:
 Bruce-


 I'm trying to make an AMI call.  I want to call a number, play an
 announcement when the call is answered, then call a second number and
 connect the two when the second call is answered.

 I an able to make a simple call to two numbers and connect them using
 the manager API but playing the announcement has me beat.

 Suggestions anyone?

 Suggest:

   -use an accurate subject line

   -be very specific about the problem

   -show an example of your script or command sequence
that is not working

 When people search Asterisk archives for a solution they're typically going 
 to search for subject lines containing
 technical terms related to their problem.

 -Jeff

 Jeff

 I appreciate that you think you're trying to be helpful to the list but
 your response indicates that either didn't read the question or have no
 useful answers beyond a snark and have succeeded only in cluttering the
 list with meaningless noise.

You asked for help from the group, true?  Then try to respect the group.  A 
well-indexed and searchable archive is
crucial to the success of an online group.  You may not be happy with me and my 
comments, but at the least I would
hope your subject lines are meaningful in the future.

-Jeff


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] OK, I'm stumped

2010-05-16 Thread Bruce Ferrell
I'm trying to make an AMI call.  I want to call a number, play an
announcement when the call is answered, then call a second number and
connect the two when the second call is answered.

I an able to make a simple call to two numbers and connect them using
the manager API but playing the announcement has me beat.

Suggestions anyone?

Bruce Ferrell

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread bruce bruce
Maybe drop the call in a Meetme room and have an announcement?

On Sun, May 16, 2010 at 10:15 AM, Bruce Ferrell bferr...@baywinds.orgwrote:

 I'm trying to make an AMI call.  I want to call a number, play an
 announcement when the call is answered, then call a second number and
 connect the two when the second call is answered.

 I an able to make a simple call to two numbers and connect them using
 the manager API but playing the announcement has me beat.

 Suggestions anyone?

 Bruce Ferrell

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread Jim Dickenson
Use a dialplan to do what you want and dial that.

Originate a call to the first person and point it at context, exten, priority 
that plays the sound file and then does a dial command to the number you want 
them to talk to.
-- 
Jim Dickenson
mailto:dicken...@cfmc.com

CfMC
http://www.cfmc.com/



On May 16, 2010, at 7:15 AM, Bruce Ferrell wrote:

 I'm trying to make an AMI call.  I want to call a number, play an
 announcement when the call is answered, then call a second number and
 connect the two when the second call is answered.
 
 I an able to make a simple call to two numbers and connect them using
 the manager API but playing the announcement has me beat.
 
 Suggestions anyone?
 
 Bruce Ferrell
 
 -- 
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread Tzafrir Cohen
On Sun, May 16, 2010 at 07:15:50AM -0700, Bruce Ferrell wrote:
 I'm trying to make an AMI call.  I want to call a number, play an
 announcement when the call is answered, then call a second number and
 connect the two when the second call is answered.
 
 I an able to make a simple call to two numbers and connect them using
 the manager API but playing the announcement has me beat.

Isn't it simple? What am I missing?

Action: Originate
Channel: $channel_for_first_number
Context: whatever
Extension: $second_number

...

[whatever]
exten= _X.,1,Playback(an-announcement)
exten= _X.,n,Dial(${some_trunk}/${EXTEN})

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread Steve Edwards
On Sun, 16 May 2010, Bruce Ferrell wrote:

 Suggestions anyone?

We all get stumped from time to time.

A better subject yields better responses.

-- 
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread Jeff Brower
Bruce-

 I'm trying to make an AMI call.  I want to call a number, play an
 announcement when the call is answered, then call a second number and
 connect the two when the second call is answered.

 I an able to make a simple call to two numbers and connect them using
 the manager API but playing the announcement has me beat.

 Suggestions anyone?

Suggest:

  -use an accurate subject line

  -be very specific about the problem

  -show an example of your script or command sequence
   that is not working

When people search Asterisk archives for a solution they're typically going to 
search for subject lines containing
technical terms related to their problem.

-Jeff



-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread Jose Flores Galicia
Maybe because I am closer to several customers which often make questions
like yours.

I can supposse you mean that the call is answered by the dahdi channel as
soon as you set the originate command on AMI, I supposse you are using an
FXO channel connected to your POTS line.

Am I right?

Jose Flores Galicia
floj...@gmail.com
BriefCode  Code Based Training


2010/5/16 Bruce Ferrell bferr...@baywinds.org

 I'm trying to make an AMI call.  I want to call a number, play an
 announcement when the call is answered, then call a second number and
 connect the two when the second call is answered.

 I an able to make a simple call to two numbers and connect them using
 the manager API but playing the announcement has me beat.

 Suggestions anyone?

 Bruce Ferrell

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread Adolphe Cher-aime
Mi too I've experienced the same problem with my script. Dahdi answers  
the channel once Ami is running it's the same thing for call files .  
When using sip Chanel or skype channel it work as I wanted. I thank  
that analog fxo is the problem if automatic outgoing calls when you  
want the called party to answer first befor moving to the context  
extension.


Adolphe Cher-aime
From my Iphone

On May 16, 2010, at 1:32 PM, Jose Flores Galicia floj...@gmail.com  
wrote:


Maybe because I am closer to several customers which often make  
questions like yours.


I can supposse you mean that the call is answered by the dahdi  
channel as soon as you set the originate command on AMI, I supposse  
you are using an FXO channel connected to your POTS line.


Am I right?

Jose Flores Galicia
floj...@gmail.com
BriefCode  Code Based Training


2010/5/16 Bruce Ferrell bferr...@baywinds.org
I'm trying to make an AMI call.  I want to call a number, play an
announcement when the call is answered, then call a second number and
connect the two when the second call is answered.

I an able to make a simple call to two numbers and connect them using
the manager API but playing the announcement has me beat.

Suggestions anyone?

Bruce Ferrell

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread Pascal Bruno
That's how analog lines work. Asterisk do not know when the called is picked
up so it goes straight to the context execution.  You may want to try
setting callprogress=yes and answeronpolarity=yes on your chan dahdi conf
file as a work around, or switch to PRI



On Sun, May 16, 2010 at 3:38 PM, Adolphe Cher-aime achera...@gmail.comwrote:

 Mi too I've experienced the same problem with my script. Dahdi answers the
 channel once Ami is running it's the same thing for call files . When using
 sip Chanel or skype channel it work as I wanted. I thank that analog fxo is
 the problem if automatic outgoing calls when you want the called party to
 answer first befor moving to the context extension.

 Adolphe Cher-aime
 From my Iphone

 On May 16, 2010, at 1:32 PM, Jose Flores Galicia floj...@gmail.com
 wrote:

 Maybe because I am closer to several customers which often make questions
 like yours.

 I can supposse you mean that the call is answered by the dahdi channel as
 soon as you set the originate command on AMI, I supposse you are using an
 FXO channel connected to your POTS line.

 Am I right?

 Jose Flores Galicia
  floj...@gmail.comfloj...@gmail.com
 BriefCode  Code Based Training


 2010/5/16 Bruce Ferrell  bferr...@baywinds.orgbferr...@baywinds.org

 I'm trying to make an AMI call.  I want to call a number, play an
 announcement when the call is answered, then call a second number and
 connect the two when the second call is answered.

 I an able to make a simple call to two numbers and connect them using
 the manager API but playing the announcement has me beat.

 Suggestions anyone?

 Bruce Ferrell

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com
 http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 http://lists.digium.com/mailman/listinfo/asterisk-users


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 http://lists.digium.com/mailman/listinfo/asterisk-users


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




-- 
Pascal B.
http://www.kameleonlabs.com/
Twitter: @petchaw
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] OK, I'm stumped

2010-05-16 Thread Jose Flores Galicia
Yep, that's the way analog lines on asterisk works.

Callprogress had never work for production to me, the way I resolv this is
asking to Telco the polarity reverse on answer and it will fully work for an
production environment.

Switching to PRI is even better, but think will be an small scenario.

Jose Flores Galicia
floj...@gmail.com
BriefCode  Code Based Training


2010/5/16 Pascal Bruno tipas...@gmail.com

 That's how analog lines work. Asterisk do not know when the called is
 picked up so it goes straight to the context execution.  You may want to try
 setting callprogress=yes and answeronpolarity=yes on your chan dahdi conf
 file as a work around, or switch to PRI



 On Sun, May 16, 2010 at 3:38 PM, Adolphe Cher-aime achera...@gmail.comwrote:

 Mi too I've experienced the same problem with my script. Dahdi answers the
 channel once Ami is running it's the same thing for call files . When using
 sip Chanel or skype channel it work as I wanted. I thank that analog fxo is
 the problem if automatic outgoing calls when you want the called party to
 answer first befor moving to the context extension.

 Adolphe Cher-aime
 From my Iphone

 On May 16, 2010, at 1:32 PM, Jose Flores Galicia floj...@gmail.com
 wrote:

 Maybe because I am closer to several customers which often make questions
 like yours.

 I can supposse you mean that the call is answered by the dahdi channel as
 soon as you set the originate command on AMI, I supposse you are using an
 FXO channel connected to your POTS line.

 Am I right?

 Jose Flores Galicia
  floj...@gmail.comfloj...@gmail.com
 BriefCode  Code Based Training


 2010/5/16 Bruce Ferrell  bferr...@baywinds.orgbferr...@baywinds.org

 I'm trying to make an AMI call.  I want to call a number, play an
 announcement when the call is answered, then call a second number and
 connect the two when the second call is answered.

 I an able to make a simple call to two numbers and connect them using
 the manager API but playing the announcement has me beat.

 Suggestions anyone?

 Bruce Ferrell

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com
 http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 http://lists.digium.com/mailman/listinfo/asterisk-users


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 http://lists.digium.com/mailman/listinfo/asterisk-users


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




 --
 Pascal B.
 http://www.kameleonlabs.com/
 Twitter: @petchaw

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users