Re: [asterisk-users] change dialing process on live call

2018-08-19 Thread Eric Wieling

Another way, using Local/

[do_dial]

exten => s,1,Noop
exten => s,n,Dial(SIP/1000&Local/1001@do_dial,20)
exten => s,n,Hangup()

exten => 1001,1,Noop
exten => 1001,n,Wait(20)
exten => 1001,n,Dial(SIP/1001)
exten => 1001,n,Hangup

More detailed:

https://wiki.asterisk.org/wiki/display/AST/Delay+Dialing+Devices+Example

On 08/19/2018 08:20 AM, Khalil Khamlichi wrote:
Thanks for your response, this works but we cannot hardcode this in the 
dialplan, we need this to be done from an external application connected 
either via manager or stasis.



On Sun, Aug 19, 2018, 11:14 AM Doug Lytle > wrote:


On 08/19/2018 05:57 AM, Khalil Khamlichi wrote:

Is there a way to add another extension to a live dial, for example

Dial(PJSIP/1000,,)

and after 20 secondes change it to

Dial(PJSIP/1000&PJSIP/1001,,)


This is a simple one.

     exten => s,1,Dial(SIP/1000,20)
     exten => s,n,Dial(SIP/1000&SIP/1001,20)
     exten => s,n,Hangup()

The first dial will ring with a 20 second timeout and proceed to the
next dial and ring both extensions for 20 seconds and finally hangup


--
http://help.nyigc.net/

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
 https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] change dialing process on live call

2018-08-19 Thread Antony Stone
On Sunday 19 August 2018 at 14:20:35, Khalil Khamlichi wrote:

> Thanks for your response, this works but we cannot hardcode this in the
> dialplan, we need this to be done from an external application connected
> either via manager or stasis.

Have you considered using Asterisk Realtime to store (part of) your dial plan 
in a database?  That can be updated dynamically and takes effect without a 
reload.

Obviously, if you have a Dial() command in the dial plan, you can't change 
that command *while* it's being executed, but you can change it for the next 
time that context gets executed.


Antony.

> On Sun, Aug 19, 2018, 11:14 AM Doug Lytle wrote:
> > On 08/19/2018 05:57 AM, Khalil Khamlichi wrote:
> > 
> > Is there a way to add another extension to a live dial, for example
> > 
> > Dial(PJSIP/1000,,)
> > 
> > and after 20 secondes change it to
> > 
> > Dial(PJSIP/1000&PJSIP/1001,,)
> > 
> > 
> > This is a simple one.
> > 
> > exten => s,1,Dial(SIP/1000,20)
> > exten => s,n,Dial(SIP/1000&SIP/1001,20)
> > exten => s,n,Hangup()
> > 
> > The first dial will ring with a 20 second timeout and proceed to the next
> > dial and ring both extensions for 20 seconds and finally hangup
> > 
> > Doug

-- 
I wish you the worst day of your life today.

After all, then you know the rest will always be better.

   Please reply to the list;
 please *don't* CC me.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] change dialing process on live call

2018-08-19 Thread Khalil Khamlichi
Thanks for your response, this works but we cannot hardcode this in the
dialplan, we need this to be done from an external application connected
either via manager or stasis.


On Sun, Aug 19, 2018, 11:14 AM Doug Lytle  wrote:

> On 08/19/2018 05:57 AM, Khalil Khamlichi wrote:
>
> Is there a way to add another extension to a live dial, for example
>
> Dial(PJSIP/1000,,)
>
> and after 20 secondes change it to
>
> Dial(PJSIP/1000&PJSIP/1001,,)
>
>
> This is a simple one.
>
> exten => s,1,Dial(SIP/1000,20)
> exten => s,n,Dial(SIP/1000&SIP/1001,20)
> exten => s,n,Hangup()
>
> The first dial will ring with a 20 second timeout and proceed to the next
> dial and ring both extensions for 20 seconds and finally hangup
>
> Doug
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Check out the new Asterisk community forum at:
> https://community.asterisk.org/
>
> New to Asterisk? Start here:
>   https://wiki.asterisk.org/wiki/display/AST/Getting+Started
>
> 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 --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

Re: [asterisk-users] change dialing process on live call

2018-08-19 Thread Doug Lytle

On 08/19/2018 05:57 AM, Khalil Khamlichi wrote:

Is there a way to add another extension to a live dial, for example

Dial(PJSIP/1000,,)

and after 20 secondes change it to

Dial(PJSIP/1000&PJSIP/1001,,)


This is a simple one.

    exten => s,1,Dial(SIP/1000,20)
    exten => s,n,Dial(SIP/1000&SIP/1001,20)
    exten => s,n,Hangup()

The first dial will ring with a 20 second timeout and proceed to the 
next dial and ring both extensions for 20 seconds and finally hangup


Doug

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

[asterisk-users] change dialing process on live call

2018-08-19 Thread Khalil Khamlichi
Hi,

Is there a way to add another extension to a live dial, for example

Dial(PJSIP/1000,,)

and after 20 secondes change it to

Dial(PJSIP/1000&PJSIP/1001,,)

I am open to suggestions such as using manager or stasis.

Thanks in advance.

Best regards,

Kkh
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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