Re: [asterisk-users] dial and bridge

2013-05-16 Thread Lenz Emilitri
Thanks all for your help, in the end I was able to do something like:

Action: Originate
Channel: Local/300@from-internal/n
Application: MusicOnHold
Async: 1


As soon as this connects, the callee hears MOH. I get the channel out via
AMI events and start another call:

Action: Originate
Channel: Local/301@from-internal/n
Application: Bridge
Data: Local/300@from-internal-aa8c;1
Async: 1

when this connects, it is immediately bridged to the first callee. I just
have to keep track of errors and hang up the first call if the seconds does
not go through.

Thanks a lot!
l.




2013/5/15 Dan Cropp d...@amtelco.com

 You could use AsyncAGI to achieve this.

 ** **

 Originate the first call (passing in some unique identifier as a
 variable), then using AMI you will see the channel data.  When you see an
 Event: AysncAGI for that channel (with that id, you have control of the
 call).  Send a Dial Action telling it to dial the call and bridge them
 together if the person answers.  If they don’t answer, you will be notified
 and can do something with the original call (play a message, hangup, etc).
 If they are bridged, you can see how long, etc.

 ** **

 Setup an extension, naming it something like patching

 ** **

 exten = patching,1,AGI(agi:async)

 ** **

 Action: Originate
 Channel: Local/300@from-internal

 Async: 1
 Exten: 1

 Context: patching
 Data: 1973

 Variable: YourUniquePatchID=1234

 ** **

 ** **

 Using AsyncAGI and AMI, you can have full control of the call.  You do
 have to setup a very simple dial plan so Asterisk knows you are using
 AsyncAGI to control the call.

 ** **

 Have a great day!

 Dan

 ** **

 ** **

 ** **

 *From:* asterisk-users-boun...@lists.digium.com [mailto:
 asterisk-users-boun...@lists.digium.com] *On Behalf Of *Lenz Emilitri
 *Sent:* Tuesday, May 14, 2013 11:16 AM
 *To:* Asterisk Users Mailing List - Non-Commercial Discussion
 *Subject:* [asterisk-users] dial and bridge

 ** **


 

 Hi all,

 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them. 

 What I want to do is:

 - dial call 1 (where the caller is in a channel format, like SIp/1234 or
 Local/1234@ext) and park it somehow

 - dial call 2 (where again the caller is in channel format) and join it to
 the previous call.

 ** **

 As a requirement, I cannot use the dialplan as an end-point (as I cannot
 change it) but need to use the AMI only.

 ** **

 I tried doing something like:

 ** **

 Action: Originate
 Channel: Local/300@from-internal

 Async: 1
 Application: Wait
 Data: 1973

 ** **

 So that the call goes to 300 and then basically stays there forever, and
 then I dial again:

 ** **

 Action: Originate
 Channel: Local/500@from-internal

 Async: 1
 Application: Wait
 Data: 1973

   

 And then try to bridge the results, but it does not seem to work.

 What I would like to do would be more on the lines of:

 ** **

 Originate call 1 and park it (using a park or waiting)

 Originate call 2 and bridge it immediately to call1 (using the Application
 part)

 ** **

 But maybe I am missing something? is there anybody who has better
 suggestions?

 ** **

 Thanks

 l.

 ** **

 ** **

 ** **

 ** **

 ** **

 ** **

 -- 

 Loway - home of QueueMetrics - http://queuemetrics.com

 Test-drive WombatDialer beta @ http://wombatdialer.com 

 --
 _
 -- 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




-- 
Loway - home of QueueMetrics - http://queuemetrics.com
Test-drive WombatDialer beta @ http://wombatdialer.com
--
_
-- 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] dial and bridge

2013-05-15 Thread Lenz Emilitri
Hi Mitul,
I agree that the dialplan way is easier, but it's a client requirement to
avoid using it. I was wondering if there was a way to send a call directly
to a parking slot right from the originate, because that is cheaper than
running conferences, and then joining the second call right to the parked
call, so that all we have to do is two originates.
l.


2013/5/14 Mitul Limbani mi...@enterux.in

 Dial first call and put it into a conference, then dial second call and
 put him into same conference to bridge both.

 However dial plan way is much more simpler.

 Mitul


 On Tuesday, May 14, 2013, Lenz Emilitri wrote:


 Hi all,
 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like SIp/1234
 or Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join it
 to the previous call.

 As a requirement, I cannot use the dialplan as an end-point (as I cannot
 change it) but need to use the AMI only.

 I tried doing something like:

 Action: Originate
 Channel: Local/300@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 So that the call goes to 300 and then basically stays there forever, and
 then I dial again:

 Action: Originate
 Channel: Local/500@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 And then try to bridge the results, but it does not seem to work.
 What I would like to do would be more on the lines of:

 Originate call 1 and park it (using a park or waiting)
 Originate call 2 and bridge it immediately to call1 (using the
 Application part)

 But maybe I am missing something? is there anybody who has better
 suggestions?

 Thanks
 l.






 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



 --
 Regards,
 Mitul Limbani,
 Chief Architech  Founder,
 Enterux Solutions Pvt. Ltd.
 110 Reena Complex, Opp. Nathani Steel,
 Vidyavihar (W), Mumbai - 400 086. India
 http://www.enterux.com/
 http://www.entvoice.com/
 email: mi...@enterux.in
 DID: +91-22-71967121
 Cell: +91-9820332422



 --
 _
 -- 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




-- 
Loway - home of QueueMetrics - http://queuemetrics.com
Test-drive WombatDialer beta @ http://wombatdialer.com
--
_
-- 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] dial and bridge

2013-05-15 Thread Lenz Emilitri
Hi Warren,
the problem is that all I have is two channels, so the specs might be join
SIP/123 and SIP/345 not join SIP/123 to 456@from-internal. They might be
Local channels, but this should be able handle the general case. The reason
why I have channels and not ext@ctxt is that I read them live from the AMI
itself. any idea on how to do this?
Thanks
l.



2013/5/14 Warren Selby wcse...@selbytech.com

 On Tue, May 14, 2013 at 11:16 AM, Lenz Emilitri lenz.lo...@gmail.comwrote:


 Hi all,
 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like SIp/1234
 or Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join it
 to the previous call.



 Why not just originate from one extension to the other?  Something like
 this (not tested):

 Action: Originate
 Channel: Local/300@from-internal
 Context: from-internal
 Exten: 500
 Timeout: 30

 Should dial extension 500 in the from-internal context after the call to
 300@from-internal is answered.  Meaning, the person at 300@from-internalwould 
 have their phone ring, they'd pick it up, and then they'd hear
 ringing on the line as asterisk then dialed extension 500@from-internal.



 --
 Thanks,
 --Warren Selby, dCAP
 http://www.SelbyTech.com http://www.selbytech.com

 --
 _
 -- 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




-- 
Loway - home of QueueMetrics - http://queuemetrics.com
Test-drive WombatDialer beta @ http://wombatdialer.com
--
_
-- 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] dial and bridge

2013-05-15 Thread Mitul Limbani
The dial n bridge might work, but there ain't indefinite wait in that
scenario.
Direct calls to parking you might try Local(70X@from-internal) but I m not
sure if this method works reliably.

The method I mentioned is used by vicidial and it works flawlessly, yes it
comes with some computing load, however you can try the newer ConfBridge
app to see if its cheaper.

Mitul

On Wednesday, May 15, 2013, Lenz Emilitri wrote:

 Hi Mitul,
 I agree that the dialplan way is easier, but it's a client requirement to
 avoid using it. I was wondering if there was a way to send a call directly
 to a parking slot right from the originate, because that is cheaper than
 running conferences, and then joining the second call right to the parked
 call, so that all we have to do is two originates.
 l.


 2013/5/14 Mitul Limbani mi...@enterux.in javascript:_e({}, 'cvml',
 'mi...@enterux.in');

 Dial first call and put it into a conference, then dial second call and
 put him into same conference to bridge both.

 However dial plan way is much more simpler.

 Mitul


 On Tuesday, May 14, 2013, Lenz Emilitri wrote:


 Hi all,
 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like SIp/1234
 or Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join it
 to the previous call.

 As a requirement, I cannot use the dialplan as an end-point (as I cannot
 change it) but need to use the AMI only.

 I tried doing something like:

 Action: Originate
 Channel: Local/300@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 So that the call goes to 300 and then basically stays there forever, and
 then I dial again:

 Action: Originate
 Channel: Local/500@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 And then try to bridge the results, but it does not seem to work.
 What I would like to do would be more on the lines of:

 Originate call 1 and park it (using a park or waiting)
 Originate call 2 and bridge it immediately to call1 (using the
 Application part)

 But maybe I am missing something? is there anybody who has better
 suggestions?

 Thanks
 l.






 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



 --
 Regards,
 Mitul Limbani,
 Chief Architech  Founder,
 Enterux Solutions Pvt. Ltd.
 110 Reena Complex, Opp. Nathani Steel,
 Vidyavihar (W), Mumbai - 400 086. India
 http://www.enterux.com/
 http://www.entvoice.com/
 email: mi...@enterux.in javascript:_e({}, 'cvml', 'mi...@enterux.in');
 DID: +91-22-71967121
 Cell: +91-9820332422



 --
 _
 -- 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




 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



-- 
Regards,
Mitul Limbani,
Chief Architech  Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-71967121
Cell: +91-9820332422
--
_
-- 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] dial and bridge

2013-05-15 Thread Lenz Emilitri
I never actually used parking, but should it work if I call the Park
application as the second leg of the Originate (w/o going through the
dialplan)? I dont seem to be able to make it work.
l.


2013/5/15 Mitul Limbani mi...@enterux.in

 The dial n bridge might work, but there ain't indefinite wait in that
 scenario.
 Direct calls to parking you might try Local(70X@from-internal) but I m
 not sure if this method works reliably.

 The method I mentioned is used by vicidial and it works flawlessly, yes it
 comes with some computing load, however you can try the newer ConfBridge
 app to see if its cheaper.

 Mitul

 On Wednesday, May 15, 2013, Lenz Emilitri wrote:

 Hi Mitul,
 I agree that the dialplan way is easier, but it's a client requirement to
 avoid using it. I was wondering if there was a way to send a call directly
 to a parking slot right from the originate, because that is cheaper than
 running conferences, and then joining the second call right to the parked
 call, so that all we have to do is two originates.
 l.


 2013/5/14 Mitul Limbani mi...@enterux.in

 Dial first call and put it into a conference, then dial second call and
 put him into same conference to bridge both.

 However dial plan way is much more simpler.

 Mitul


 On Tuesday, May 14, 2013, Lenz Emilitri wrote:


 Hi all,
 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like SIp/1234
 or Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join it
 to the previous call.

 As a requirement, I cannot use the dialplan as an end-point (as I
 cannot change it) but need to use the AMI only.

 I tried doing something like:

 Action: Originate
 Channel: Local/300@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 So that the call goes to 300 and then basically stays there forever,
 and then I dial again:

 Action: Originate
 Channel: Local/500@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 And then try to bridge the results, but it does not seem to work.
 What I would like to do would be more on the lines of:

 Originate call 1 and park it (using a park or waiting)
 Originate call 2 and bridge it immediately to call1 (using the
 Application part)

 But maybe I am missing something? is there anybody who has better
 suggestions?

 Thanks
 l.






 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



 --
 Regards,
 Mitul Limbani,
 Chief Architech  Founder,
 Enterux Solutions Pvt. Ltd.
 110 Reena Complex, Opp. Nathani Steel,
 Vidyavihar (W), Mumbai - 400 086. India
 http://www.enterux.com/
 http://www.entvoice.com/
 email: mi...@enterux.in
 DID: +91-22-71967121
 Cell: +91-9820332422



 --
 _
 -- 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




 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



 --
 Regards,
 Mitul Limbani,
 Chief Architech  Founder,
 Enterux Solutions Pvt. Ltd.
 110 Reena Complex, Opp. Nathani Steel,
 Vidyavihar (W), Mumbai - 400 086. India
 http://www.enterux.com/
 http://www.entvoice.com/
 email: mi...@enterux.in
 DID: +91-22-71967121
 Cell: +91-9820332422



 --
 _
 -- 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




-- 
Loway - home of QueueMetrics - http://queuemetrics.com
Test-drive WombatDialer beta @ http://wombatdialer.com
--
_
-- 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] dial and bridge

2013-05-15 Thread Ioan Indreias
I think you could use twice the Park action to park the channels -
https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Park

In the end you will have to bridge the parked channels.

HTH,
Ioan


On Wed, May 15, 2013 at 1:03 PM, Lenz Emilitri lenz.lo...@gmail.com wrote:

 I never actually used parking, but should it work if I call the Park
 application as the second leg of the Originate (w/o going through the
 dialplan)? I dont seem to be able to make it work.
 l.


 2013/5/15 Mitul Limbani mi...@enterux.in

 The dial n bridge might work, but there ain't indefinite wait in that
 scenario.
 Direct calls to parking you might try Local(70X@from-internal) but I m
 not sure if this method works reliably.

 The method I mentioned is used by vicidial and it works flawlessly, yes
 it comes with some computing load, however you can try the newer ConfBridge
 app to see if its cheaper.

 Mitul

 On Wednesday, May 15, 2013, Lenz Emilitri wrote:

 Hi Mitul,
 I agree that the dialplan way is easier, but it's a client requirement
 to avoid using it. I was wondering if there was a way to send a call
 directly to a parking slot right from the originate, because that is
 cheaper than running conferences, and then joining the second call right to
 the parked call, so that all we have to do is two originates.
 l.


 2013/5/14 Mitul Limbani mi...@enterux.in

 Dial first call and put it into a conference, then dial second call and
 put him into same conference to bridge both.

 However dial plan way is much more simpler.

 Mitul


 On Tuesday, May 14, 2013, Lenz Emilitri wrote:


 Hi all,
 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like
 SIp/1234 or Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join
 it to the previous call.

 As a requirement, I cannot use the dialplan as an end-point (as I
 cannot change it) but need to use the AMI only.

 I tried doing something like:

 Action: Originate
 Channel: Local/300@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 So that the call goes to 300 and then basically stays there forever,
 and then I dial again:

 Action: Originate
 Channel: Local/500@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 And then try to bridge the results, but it does not seem to work.
 What I would like to do would be more on the lines of:

 Originate call 1 and park it (using a park or waiting)
 Originate call 2 and bridge it immediately to call1 (using the
 Application part)

 But maybe I am missing something? is there anybody who has better
 suggestions?

 Thanks
 l.






 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



 --
 Regards,
 Mitul Limbani,
 Chief Architech  Founder,
 Enterux Solutions Pvt. Ltd.
 110 Reena Complex, Opp. Nathani Steel,
 Vidyavihar (W), Mumbai - 400 086. India
 http://www.enterux.com/
 http://www.entvoice.com/
 email: mi...@enterux.in
 DID: +91-22-71967121
 Cell: +91-9820332422



 --
 _
 -- 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




 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



 --
 Regards,
 Mitul Limbani,
 Chief Architech  Founder,
 Enterux Solutions Pvt. Ltd.
 110 Reena Complex, Opp. Nathani Steel,
 Vidyavihar (W), Mumbai - 400 086. India
 http://www.enterux.com/
 http://www.entvoice.com/
 email: mi...@enterux.in
 DID: +91-22-71967121
 Cell: +91-9820332422



 --
 _
 -- 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




 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com

 --
 _
 -- 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 

Re: [asterisk-users] dial and bridge

2013-05-15 Thread Ioan Indreias
BTW - what was exactly the problem when trying to bridge the two channels
that you have sent to the wait application?


On Wed, May 15, 2013 at 4:29 PM, Ioan Indreias indre...@gmail.com wrote:

 I think you could use twice the Park action to park the channels -
 https://wiki.asterisk.org/wiki/display/AST/ManagerAction_Park

 In the end you will have to bridge the parked channels.

 HTH,
 Ioan


 On Wed, May 15, 2013 at 1:03 PM, Lenz Emilitri lenz.lo...@gmail.comwrote:

 I never actually used parking, but should it work if I call the Park
 application as the second leg of the Originate (w/o going through the
 dialplan)? I dont seem to be able to make it work.
  l.


 2013/5/15 Mitul Limbani mi...@enterux.in

 The dial n bridge might work, but there ain't indefinite wait in that
 scenario.
 Direct calls to parking you might try Local(70X@from-internal) but I m
 not sure if this method works reliably.

  The method I mentioned is used by vicidial and it works flawlessly, yes
 it comes with some computing load, however you can try the newer ConfBridge
 app to see if its cheaper.

 Mitul

 On Wednesday, May 15, 2013, Lenz Emilitri wrote:

 Hi Mitul,
 I agree that the dialplan way is easier, but it's a client requirement
 to avoid using it. I was wondering if there was a way to send a call
 directly to a parking slot right from the originate, because that is
 cheaper than running conferences, and then joining the second call right to
 the parked call, so that all we have to do is two originates.
 l.


 2013/5/14 Mitul Limbani mi...@enterux.in

 Dial first call and put it into a conference, then dial second call
 and put him into same conference to bridge both.

 However dial plan way is much more simpler.

 Mitul


 On Tuesday, May 14, 2013, Lenz Emilitri wrote:


 Hi all,
 I need some advice - I have been working on originating multiple
 calls using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like
 SIp/1234 or Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join
 it to the previous call.

 As a requirement, I cannot use the dialplan as an end-point (as I
 cannot change it) but need to use the AMI only.

 I tried doing something like:

 Action: Originate
 Channel: Local/300@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 So that the call goes to 300 and then basically stays there forever,
 and then I dial again:

 Action: Originate
 Channel: Local/500@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 And then try to bridge the results, but it does not seem to work.
 What I would like to do would be more on the lines of:

 Originate call 1 and park it (using a park or waiting)
 Originate call 2 and bridge it immediately to call1 (using the
 Application part)

 But maybe I am missing something? is there anybody who has better
 suggestions?

 Thanks
 l.






 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



 --
 Regards,
 Mitul Limbani,
 Chief Architech  Founder,
 Enterux Solutions Pvt. Ltd.
 110 Reena Complex, Opp. Nathani Steel,
 Vidyavihar (W), Mumbai - 400 086. India
 http://www.enterux.com/
 http://www.entvoice.com/
 email: mi...@enterux.in
 DID: +91-22-71967121
 Cell: +91-9820332422



 --
 _
 -- 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




 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



 --
 Regards,
 Mitul Limbani,
 Chief Architech  Founder,
 Enterux Solutions Pvt. Ltd.
 110 Reena Complex, Opp. Nathani Steel,
 Vidyavihar (W), Mumbai - 400 086. India
 http://www.enterux.com/
 http://www.entvoice.com/
 email: mi...@enterux.in
 DID: +91-22-71967121
 Cell: +91-9820332422



 --
 _
 -- 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




 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com

 --
 _
 -- 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:
 

Re: [asterisk-users] dial and bridge

2013-05-15 Thread Dan Cropp
You could use AsyncAGI to achieve this.

 

Originate the first call (passing in some unique identifier as a variable), 
then using AMI you will see the channel data.  When you see an Event: AysncAGI 
for that channel (with that id, you have control of the call).  Send a Dial 
Action telling it to dial the call and bridge them together if the person 
answers.  If they don’t answer, you will be notified and can do something with 
the original call (play a message, hangup, etc).  If they are bridged, you can 
see how long, etc.

 

Setup an extension, naming it something like patching

 

exten = patching,1,AGI(agi:async)

 

Action: Originate
Channel: Local/300@from-internal

Async: 1 
Exten: 1

Context: patching
Data: 1973

Variable: YourUniquePatchID=1234

 

 

Using AsyncAGI and AMI, you can have full control of the call.  You do have to 
setup a very simple dial plan so Asterisk knows you are using AsyncAGI to 
control the call.

 

Have a great day!

Dan

 

 

 

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Lenz Emilitri
Sent: Tuesday, May 14, 2013 11:16 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] dial and bridge

 




Hi all,

I need some advice - I have been working on originating multiple calls using 
AMI and then joining them. 

What I want to do is:

- dial call 1 (where the caller is in a channel format, like SIp/1234 or 
Local/1234@ext) and park it somehow

- dial call 2 (where again the caller is in channel format) and join it to the 
previous call.

 

As a requirement, I cannot use the dialplan as an end-point (as I cannot change 
it) but need to use the AMI only.

 

I tried doing something like:

 

Action: Originate
Channel: Local/300@from-internal

Async: 1 
Application: Wait
Data: 1973

 

So that the call goes to 300 and then basically stays there forever, and then I 
dial again:

 

Action: Originate
Channel: Local/500@from-internal

Async: 1 
Application: Wait
Data: 1973

  

And then try to bridge the results, but it does not seem to work.

What I would like to do would be more on the lines of:

 

Originate call 1 and park it (using a park or waiting)

Originate call 2 and bridge it immediately to call1 (using the Application part)

 

But maybe I am missing something? is there anybody who has better suggestions?

 

Thanks

l.

 

 

 

 

 

 

-- 

Loway - home of QueueMetrics - http://queuemetrics.com

Test-drive WombatDialer beta @ http://wombatdialer.com 

--
_
-- 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] dial and bridge

2013-05-14 Thread Lenz Emilitri
Hi all,
I need some advice - I have been working on originating multiple calls
using AMI and then joining them.
What I want to do is:
- dial call 1 (where the caller is in a channel format, like SIp/1234 or
Local/1234@ext) and park it somehow
- dial call 2 (where again the caller is in channel format) and join it to
the previous call.

As a requirement, I cannot use the dialplan as an end-point (as I cannot
change it) but need to use the AMI only.

I tried doing something like:

Action: Originate
Channel: Local/300@from-internal
Async: 1
Application: Wait
Data: 1973

So that the call goes to 300 and then basically stays there forever, and
then I dial again:

Action: Originate
Channel: Local/500@from-internal
Async: 1
Application: Wait
Data: 1973

And then try to bridge the results, but it does not seem to work.
What I would like to do would be more on the lines of:

Originate call 1 and park it (using a park or waiting)
Originate call 2 and bridge it immediately to call1 (using the Application
part)

But maybe I am missing something? is there anybody who has better
suggestions?

Thanks
l.






-- 
Loway - home of QueueMetrics - http://queuemetrics.com
Test-drive WombatDialer beta @ http://wombatdialer.com
--
_
-- 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] dial and bridge

2013-05-14 Thread Mitul Limbani
Dial first call and put it into a conference, then dial second call and put
him into same conference to bridge both.

However dial plan way is much more simpler.

Mitul

On Tuesday, May 14, 2013, Lenz Emilitri wrote:


 Hi all,
 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like SIp/1234 or
 Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join it to
 the previous call.

 As a requirement, I cannot use the dialplan as an end-point (as I cannot
 change it) but need to use the AMI only.

 I tried doing something like:

 Action: Originate
 Channel: Local/300@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 So that the call goes to 300 and then basically stays there forever, and
 then I dial again:

 Action: Originate
 Channel: Local/500@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 And then try to bridge the results, but it does not seem to work.
 What I would like to do would be more on the lines of:

 Originate call 1 and park it (using a park or waiting)
 Originate call 2 and bridge it immediately to call1 (using the Application
 part)

 But maybe I am missing something? is there anybody who has better
 suggestions?

 Thanks
 l.






 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



-- 
Regards,
Mitul Limbani,
Chief Architech  Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-71967121
Cell: +91-9820332422
--
_
-- 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] dial and bridge

2013-05-14 Thread Warren Selby
On Tue, May 14, 2013 at 11:16 AM, Lenz Emilitri lenz.lo...@gmail.comwrote:


 Hi all,
 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like SIp/1234 or
 Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join it to
 the previous call.



Why not just originate from one extension to the other?  Something like
this (not tested):

Action: Originate
Channel: Local/300@from-internal
Context: from-internal
Exten: 500
Timeout: 30

Should dial extension 500 in the from-internal context after the call to
300@from-internal is answered.  Meaning, the person at
300@from-internalwould have their phone ring, they'd pick it up, and
then they'd hear
ringing on the line as asterisk then dialed extension 500@from-internal.



-- 
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com http://www.selbytech.com
--
_
-- 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] dial and bridge

2013-05-14 Thread Mitul Limbani
Dial first call and put it into a conference, then dial second call and put
him into same conference to bridge both.

However dial plan way is much more simpler.

Mitul

On Tuesday, May 14, 2013, Lenz Emilitri wrote:


 Hi all,
 I need some advice - I have been working on originating multiple calls
 using AMI and then joining them.
 What I want to do is:
 - dial call 1 (where the caller is in a channel format, like SIp/1234 or
 Local/1234@ext) and park it somehow
 - dial call 2 (where again the caller is in channel format) and join it to
 the previous call.

 As a requirement, I cannot use the dialplan as an end-point (as I cannot
 change it) but need to use the AMI only.

 I tried doing something like:

 Action: Originate
 Channel: Local/300@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 So that the call goes to 300 and then basically stays there forever, and
 then I dial again:

 Action: Originate
 Channel: Local/500@from-internal
 Async: 1
 Application: Wait
 Data: 1973

 And then try to bridge the results, but it does not seem to work.
 What I would like to do would be more on the lines of:

 Originate call 1 and park it (using a park or waiting)
 Originate call 2 and bridge it immediately to call1 (using the Application
 part)

 But maybe I am missing something? is there anybody who has better
 suggestions?

 Thanks
 l.






 --
 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com



-- 
Regards,
Mitul Limbani,
Chief Architech  Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-71967121
Cell: +91-9820332422
--
_
-- 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] Dial without bridge

2004-11-12 Thread Adam Greenbaum
Hi,

 Is it possible to dial a number (from an extension dial plan) and not
bridge the call immediately? I want to announce something to the callee
before the caller is connected.

Thanks,

Adam.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dial without bridge

2004-11-12 Thread Selim
You can try a Background command in your dialplan before the Dial statement:

exten = _0Z,1,Answer()
exten = _0Z,2,Background(yourAnnouceFile)
exten = _0Z,3,Dial(...,30,r)

S.

On Fri, 12 Nov 2004 09:54:10 +, Adam Greenbaum [EMAIL PROTECTED] wrote:
 Hi,
 
  Is it possible to dial a number (from an extension dial plan) and not
 bridge the call immediately? I want to announce something to the callee
 before the caller is connected.
 
 Thanks,
 
 Adam.
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dial without bridge

2004-11-12 Thread Adam Greenbaum
On Fri, 2004-11-12 at 10:34, Selim wrote:
 You can try a Background command in your dialplan before the Dial statement:

Thanks for the reply. Doesn't the background command play to the caller
though? I need to send audio to the callee as soon as then pickup, but
before the call is bridged.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Dial without bridge

2004-11-12 Thread Nick Barnes
 
Adam Greenbaum:
  Is it possible to dial a number (from an extension dial 
 plan) and not bridge the call immediately?

Yes.

 I want to announce 
 something to the callee before the caller is connected.

The A(x) parameter of the dial command allows this - see
http://www.voip-info.org/wiki-Asterisk+cmd+dial.

The caller continues to hear ringing while the callee hears the audio. Once
the audio is finished, the call is bridged.

You could also use the M(x) parameter to run a macro instead.

Nick.



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Dial without bridge

2004-11-12 Thread Adam Greenbaum
  I want to announce 
  something to the callee before the caller is connected.
 
 The A(x) parameter of the dial command allows this - see
 http://www.voip-info.org/wiki-Asterisk+cmd+dial.
 The caller continues to hear ringing while the callee hears the audio. Once
 the audio is finished, the call is bridged.
 
 You could also use the M(x) parameter to run a macro instead.

Excellent, just what I was looking for, sorry for not finding it myself
in the first place!

Thanks.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users