Re: [asterisk-users] Automatically dial a number, then an extension

2017-05-15 Thread Victor Villarreal
Hi John,

I think we need to known how you play the audio to the customers, before we
can help you.

Are you using AMI? Or AGI maybe? Or Call files?

What Asterisk version do you have?

El 15 may. 2017 12:35, "Tech Support"  escribió:

> All;
>
> I have an application that dials a list of numbers and then plays a
> recorded message. My customer uses it to dial a list of customers to
> confirm their appointment for the next day. No biggie, maybe 25 – 30 calls
> per day for customers who want the confirmation call. What they need now is
> a way to dial an extension after the number is dialed and answered. I’ve
> seen that before, but I just can't remember where. I was wondering if
> anyone else has implemented something along these lines. Any insight at all
> would be greatly appreciated.
>
> Thanks Much;
>
> John V.
>
> --
> _
> -- 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] Automatically dial a number, then an extension

2017-05-15 Thread Tony Mountifield
In article <004201d2cd90$cad754e0$6085fea0$@us>,
Tech Support  wrote:
> 
> I have an application that dials a list of numbers and then plays a
> recorded message. My customer uses it to dial a list of customers to confirm
> their appointment for the next day. No biggie, maybe 25 - 30 calls per day
> for customers who want the confirmation call. What they need now is a way to
> dial an extension after the number is dialed and answered. I've seen that
> before, but I just can't remember where. I was wondering if anyone else has
> implemented something along these lines. Any insight at all would be greatly
> appreciated.
> 
> Thanks Much;
> 
> John V.   

That depends on how you are playing the message. If you are doing an Originate,
either via the AMI or via a call file, then you dial the outbound call using
the Channel parameter, and when the call is answered, it gets attached to the
dialplan segment given by your Context, Extension and Priority parameters.

The dialplan segment at its simplest could be something like this:

[myplaycontext]
exten => s,1,Playback(${MESSAGE})
exten => s,n,Hangup

You would give:
Context: myplaycontext
Extension: s
Priority: 1

You would need to supply the message filename in the variable MESSAGE in the
AMI command or call file (maybe you need _MESSAGE or __MESSAGE when setting).

But you can make it more complex, and could do something like:

[myplaycontext]
...
exten => _X!,1,Wait(3)
exten => _X!,n,SendDTMF(${EXTEN})
exten => _X!,n,Wait(5) ; how long???
exten => _X!,n,Playback(${MESSAGE})
exten => _X!,n,Hangup

So if your recipient has an extension number configured, instead of giving s as
the Extension, you give the extension number.

Alternatively, you could supply the DTMF to be dialled in a channel variable.

The problem you will have is that, while for direct lines, you know when to
start playing the message, as you can tell when the line has been answered,
when dialling an extension number on the answering PBX, you have no way of
telling when that extension has been answered and it is safe to play the 
message.
That is why I added the comment "how long???", as it is just a guess.

Cheers
Tony
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org

-- 
_
-- 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] Automatically dial a number, then an extension

2017-05-15 Thread Administrator TOOTAI

Le 15/05/2017 à 17:34, Tech Support a écrit :

All;

I have an application that dials a list of numbers and then plays a
recorded message. My customer uses it to dial a list of customers to
confirm their appointment for the next day. No biggie, maybe 25 – 30
calls per day for customers who want the confirmation call. What they
need now is a way to dial an extension after the number is dialed and
answered. I’ve seen that before, but I just can't remember where. I was
wondering if anyone else has implemented something along these lines.
Any insight at all would be greatly appreciated.

Thanks Much;


Hi,

look at option G in dial command

--
Daniel

--
_
-- 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] Automatically dial a number, then an extension

2017-05-15 Thread Tech Support
All;

I have an application that dials a list of numbers and then plays a
recorded message. My customer uses it to dial a list of customers to confirm
their appointment for the next day. No biggie, maybe 25 - 30 calls per day
for customers who want the confirmation call. What they need now is a way to
dial an extension after the number is dialed and answered. I've seen that
before, but I just can't remember where. I was wondering if anyone else has
implemented something along these lines. Any insight at all would be greatly
appreciated.

Thanks Much;

John V.   

-- 
_
-- 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] Surrogate channels

2017-05-15 Thread Richard Mudgett
On Mon, May 15, 2017 at 1:21 AM, Patrick Wakano  wrote:

> Hello Asterisk list!
>
> I've been facing some scenarios in my dialplan where I see the "h"
> extension being executed for Surrogate channels.
> For me, it is kind of a mystery what these Surrogate channels are... I
> couldn't find good information about them... the source code is where I
> could find the most detailed info:
>
> /*! \brief Channel technology used to extract a channel from a running 
> application. The * channel created with this technology will be immediately 
> hung up - most external
>  * applications won't ever want to see this.
>  */
>
> It mentions "*won't ever want to see this*", so I am unsure if they are
> only internal to Asterisk core and I should not be seeing these channels
> executing my dialplan, or if indeed I will see them in my dialplan, and
> then I have to handle them somehow (even if I don't want them)
>
> Anyway, does anyone know a good explanation about these surrogate
> channels, and what is expected of them when it comes to dialplan execution?
>

The surrogate channels are replacement channels for masquerades to swap with
your target channel.  They are created to die after a masquerade has
substituted it
for the target channel.  If you are seeing them in dialplan then just let
them die
without doing anything else with them.  The target channel is off doing
whatever
caused the masquerade in the first place.

Richard
-- 
_
-- 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] Callee id over chan_sip trunk

2017-05-15 Thread Sebastian Nielsen
I found very useful info here:
https://www.voip-info.org/wiki/view/Asterisk+func+CONNECTEDLINE

In other words, on the asterisk1 box, you need to fetch from SIPPEER in
extensions on asterisk1 box, and then populate connectedline.
SIPPEER is the callee leg of the call, and CONNECTEDLINE is the caller. So
if you set CONNECTEDLINE on caller (eg the asterisk2 side of the trunk
between asterisk1 and asterisk2),
You need to fetch this info in extensions for the SIPPEER on asterisk1 side
of the trunk between asterisk1 and asterisk2, and copy this info into
CONNECTEDLINE (the ISDN PRI leg of the call) on the asterisk1 box.

I guess you have a extension on asterisk2, and then call "through" asterisk1
box.

(Otherwise, if you are "behind" asterisk2 box and call the Conf line on
asterisk1, you need to do the opposite of above, set the things on asterisk2
box.)

-Ursprungligt meddelande-
Från: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] För Dmitry Melekhov
Skickat: den 15 maj 2017 12:47
Till: Asterisk Users Mailing List - Non-Commercial Discussion

Ämne: [asterisk-users] Callee id over chan_sip trunk

Hello!


I run two asterisks 13.13.1.


Here is how they are connected:


me---PBX--isdn pri--asterisk1--sip--asterisk2.


If I call something from asterisk1 and have in dial plan:

Let's say

exten => 6000,n,Set(CONNECTEDLINE(name)=Conf. 6000)

exten => 6000,n,Meetme(6000,TL(1080:6))


Then I see Conf. 6000 on my phone if I call 6000.


If I have the same code for number on asterisk2, then there is no name on my
phone,

i.e. looks like asterisk doesn't send this info, at least I don't see it in
sip debug.


Could you tell me is it possible to pass this over sip?

Thank you!





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



smime.p7s
Description: S/MIME Cryptographic Signature
-- 
_
-- 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] Callee id over chan_sip trunk

2017-05-15 Thread Dmitry Melekhov

Hello!


I run two asterisks 13.13.1.


Here is how they are connected:


me---PBX--isdn pri--asterisk1--sip--asterisk2.


If I call something from asterisk1 and have in dial plan:

Let's say

exten => 6000,n,Set(CONNECTEDLINE(name)=Conf. 6000)

exten => 6000,n,Meetme(6000,TL(1080:6))


Then I see Conf. 6000 on my phone if I call 6000.


If I have the same code for number on asterisk2, then there is no name 
on my phone,


i.e. looks like asterisk doesn't send this info, at least I don't see it 
in sip debug.



Could you tell me is it possible to pass this over sip?

Thank you!





--
_
-- 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] Surrogate channels

2017-05-15 Thread Patrick Wakano
Hello Asterisk list!

I've been facing some scenarios in my dialplan where I see the "h"
extension being executed for Surrogate channels.
For me, it is kind of a mystery what these Surrogate channels are... I
couldn't find good information about them... the source code is where I
could find the most detailed info:

/*! \brief Channel technology used to extract a channel from a running
application. The * channel created with this technology will be
immediately hung up - most external
 * applications won't ever want to see this.
 */

It mentions "*won't ever want to see this*", so I am unsure if they are
only internal to Asterisk core and I should not be seeing these channels
executing my dialplan, or if indeed I will see them in my dialplan, and
then I have to handle them somehow (even if I don't want them)

Anyway, does anyone know a good explanation about these surrogate channels,
and what is expected of them when it comes to dialplan execution?

Cheers!
Patrick


Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-- 
_
-- 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