Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] make asterisk do something when an outgoing call is picked up


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
lee at yagibdah.de
Guest





PostPosted: Sat Oct 25, 2014 5:43 pm    Post subject: [asterisk-users] make asterisk do something when an outgoing Reply with quote

Hi,

how can I make asterisk do something when an outgoing call is picked up?


The background is that I would like to record incoming and outgoing
phone calls. In order to do this, I need to play an announcement
telling the person calling or being called that the call will be
recorded.

Here's what I'm trying to do:


call comes in:
if(I pick up) {
play announcement to caller;
start recording;
let me talk to the caller;
end recording when call ends;
send recording to my email account;
} else {
record voice mail;
}


call goes out:
if(call is picked up) {
play announcement to callee;
if(callee hangs up) {
end call;
} else {
start recording;
let me talk to callee;
end recording when call ends;
send recording to my email account;
}
} else {
call ends;
offer me to automatically call again later;
}


Please keep in mind that I'm new to asterisk and just got it to work.
Searching for having asterisk do something when an outgoing call is
picked up has been unsuccessful other than that I found out that you can
have it make outgoing calls automatically to play pre-recorded messages:
So asterisk does have a way to detect when a call is picked up and a way
of doing something when that happens.

What I have working so far is incoming and outgoing calls and voicemail
for one phone/user, which is a basic set up I'm trying extend and
improve now.


--
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us. Finally, this fear has become reasonable.

--
_____________________________________________________________________
-- 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
Back to top
tg at ovm-group.com
Guest





PostPosted: Mon Oct 27, 2014 5:55 am    Post subject: [asterisk-users] make asterisk do something when an outgoing Reply with quote

Am 26.10.2014 00:43, schrieb lee:
Quote:
Hi,

how can I make asterisk do something when an outgoing call is picked up?


The background is that I would like to record incoming and outgoing
phone calls. In order to do this, I need to play an announcement
telling the person calling or being called that the call will be
recorded.

Here's what I'm trying to do:


call comes in:
if(I pick up) {
play announcement to caller;
start recording;
let me talk to the caller;
end recording when call ends;
send recording to my email account;
} else {
record voice mail;
}


call goes out:
if(call is picked up) {
play announcement to callee;
if(callee hangs up) {
end call;
} else {
start recording;
let me talk to callee;
end recording when call ends;
send recording to my email account;
}
} else {
call ends;
offer me to automatically call again later;
}


Please keep in mind that I'm new to asterisk and just got it to work.
Searching for having asterisk do something when an outgoing call is
picked up has been unsuccessful other than that I found out that you can
have it make outgoing calls automatically to play pre-recorded messages:
So asterisk does have a way to detect when a call is picked up and a way
of doing something when that happens.

What I have working so far is incoming and outgoing calls and voicemail
for one phone/user, which is a basic set up I'm trying extend and
improve now.


Maybe this will do a good job for recording all calls:
http://www.voip-info.org/wiki/view/Asterisk+cmd+ChanSpy

And playing an announcement, when a call is picked, should be done
within your dialplan with this function:
http://www.voip-info.org/wiki/view/Asterisk+cmd+Playback

-Thorsten-

--
_____________________________________________________________________
-- 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
Back to top
lee at yagibdah.de
Guest





PostPosted: Thu Oct 30, 2014 2:21 pm    Post subject: [asterisk-users] make asterisk do something when an outgoing Reply with quote

Thorsten Göllner <tg@ovm-group.com> writes:

Quote:
Am 26.10.2014 00:43, schrieb lee:
Quote:
Hi,

how can I make asterisk do something when an outgoing call is picked up?


The background is that I would like to record incoming and outgoing
phone calls. In order to do this, I need to play an announcement
telling the person calling or being called that the call will be
recorded.


Maybe this will do a good job for recording all calls:
http://www.voip-info.org/wiki/view/Asterisk+cmd+ChanSpy

And playing an announcement, when a call is picked, should be done
within your dialplan with this function:
http://www.voip-info.org/wiki/view/Asterisk+cmd+Playback

Thank you --- I'm not sure what to do with these. I've been able to use
Playback to play an announcement, and ChanSpy just looks complicated.

What if I press a button on the phone while a call is going on? Can I
somehow make it so that recording starts when I do that?


--
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us. Finally, this fear has become reasonable.

--
_____________________________________________________________________
-- 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
Back to top
johnkiniston at gmail.com
Guest





PostPosted: Thu Oct 30, 2014 3:59 pm    Post subject: [asterisk-users] make asterisk do something when an outgoing Reply with quote

Lee I recommend you use the MixMonitor application along with a combination of Playback to play your message to the Calling party and the A argument to Dial to play a file to the called party.


So for your outbound calls:

exten => _NXXXXXX,1,NoOP()
same =>                 n,MixMonitor(recording-${CDR(UNIQUEID)}.wav)
same =>                 n,Playback(this-call-may-be-monitored-or-recorded,noanswer)


same =>                 n,Dial(SIP/${EXTEN},A(this-call-may-be-monitored-or-recorded))


While your inbound calls would look like


exten => s,1,NoOP()

same  =>   n,Answer()
same =>    n,MixMonitor(recording-${CDR(UNIQUEID)}.wav)
same  =>   n,Playback(this-call-may-be-monitored-or-recorded)

same  =>   n,Dial(SIP/1001,Playback(this-call-may-be-monitored-or-recorded,))
On Thu, Oct 30, 2014 at 12:21 PM, lee <lee@yagibdah.de (lee@yagibdah.de)> wrote:
Quote:
Thorsten Göllner <tg@ovm-group.com (tg@ovm-group.com)> writes:

Quote:
Am 26.10.2014 00:43, schrieb lee:
Quote:
Hi,

how can I make asterisk do something when an outgoing call is picked up?


The background is that I would like to record incoming and outgoing
phone calls.  In order to do this, I need to play an announcement
telling the person calling or being called that the call will be
recorded.


Maybe this will do a good job for recording all calls:
http://www.voip-info.org/wiki/view/Asterisk+cmd+ChanSpy

And playing an announcement, when a call is picked, should be done
within your dialplan with this function:
http://www.voip-info.org/wiki/view/Asterisk+cmd+Playback

Thank you --- I'm not sure what to do with these.  I've been able to use
Playback to play an announcement, and ChanSpy just looks complicated.

What if I press a button on the phone while a call is going on?  Can I
somehow make it so that recording starts when I do that?


--
Again we must be afraid of speaking of daemons for fear that daemons
might swallow us.  Finally, this fear has become reasonable.

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




--
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
---Heinlein
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services