Displaying 7 results from an estimated 7 matches for "screen_file".
2009 Dec 03
1
Dial application with M option
...:-*
*
*
*Example 2:* Dial macro
screen-record: Please record your name press pound when finished.
screen-from: You have a call from
screen-accept: Press 1 to accept this call or any other key to reject.
exten => 890,1,Wait(0.2)
exten => 890,n,Playback(screen-record)
exten => 890,n,SetVar(SCREEN_FILE=/tmp/${CALLERID(number)}-${EPOCH})
exten => 890,n,Record(${SCREEN_FILE}.gsm|6|25)
exten => 890,n,Dial(SIP/16|60|gM(screen^${SCREEN_FILE}))
exten => 890,n,Voicemail(10 at default)
[macro-screen]
exten => s,1,Wait(0.2)
exten => s,n,Playback(screen-from)
exten => s,n,Playback(${ARG1...
2007 Apr 03
0
Dial Macros
...some preprocessing in the middle of a call, before
bridging.
I've seen two choices: M() and G() parameters of the Dial() command.
G() was discarded because I don't know if it is possible to bridge
channels after processing.
With M() I've done something like that:
macro screen ( screen_file, destination, caller_email ) {
Set(screen_file=${ARG1});
Set(destination=${ARG2});
Set(caller_email=${ARG3});
begin:
// compute play prompt for background()
Set(BACKGROUND_PROMPT=voip-call-pending&${screen_file});
Wait(0.5);
Backgr...
2009 Mar 06
1
GoSub & Queue
...pickup which is great! problem is that now my options like Voicemail
or if the member hangs up with out choosing a option the call is dumped from
teh queue and the GOSUB_RESULT doesnt look to be checked or listened too.
Here's a snip of my screen subs
[screencaller]
exten => s,1,Set(__SCREEN_FILE=/tmp/screens-${UNIQUEID})
exten => s,n,Playback(screen-say-name)
exten => s,n,Wait(1)
exten => s,n,Record(${SCREEN_FILE}.gsm,3,6)
exten => s,n,Playback(screen-please-hold)
exten => s,n,Return
[screencallee]
exten => s,1,answer
exten => s,2,Set(GOSUB_RESULT=CONTINUE); set defau...
2007 Mar 22
3
accepting a call, macros, and key presses.
Hello,
I am using macros to give the ability to a call-receiver to 'accept' a
call. However, any keypress connects the caller.
Anyone have any suggestions about how to re-engineer this so that the
receiver can deny the call, or press other keys to do other actions,
without connecting to the user?
Thanks,
Jason Wolfe
2007 Jun 21
0
ENC: Action Originate (Asterisk Manager) X Monitor()
...ord
file is made normally.
My Action Originate:
Action: Originate
ActionID: 1BV2bwdI_#Ps20070620175008
Channel: Local/09194****
Exten: 101
Context: ramais
Priority: 1
Variable: ACTIONID=1BV2bwdI_#Ps20070620175008
Async: True
Part of my dial plan:
exten => _09194****,1,set(SCREEN_FILE=/calls/records/TESTE_${RAND(1,99999)}
exten => _09194****,2,Monitor(wav,${SCREEN_FILE},m)
exten => _09194****,3,Dial(SIP/TmaisMG/9194****,40,rtw)
exten => _09194****5,4,HangUp()
I checked, with SIP SET DEBUG, if it would be CODECs problems, all calls are
done by 'ulaw' CODEC...
2006 Nov 14
1
Broken Call Screening
...failed on channels Local/299@default-d64b,2 and Zap/3-1
-- Hungup 'Zap/3-1'
-- Local/299@default-d64b,1 answered SIP/7960A-Gary1-63f2
-- Stopped music on hold on SIP/7960A-Gary1-63f2
Dialplan:
exten => 299,1,Wait(0.2)
exten => 299,n,Dial(Zap/3/${CELLNUMBER}|60|gmM(screen^${SCREEN_FILE}))
[macro-screen]
exten => s,1,Wait(0.2)
exten => s,n,Answer
exten => s,n,Read(ACCEPT|${ARG1}|1)
exten => s,n,GotoIf($[${ACCEPT} = 1 ] ?yes:no)
exten => s,n(no),SetVar(MACRO_RESULT=CONTINUE)
Regards,
Gary
2003 May 14
20
Call forwarding
Yo,
Inspired by the example in the tips & tricks-section of
"http://www.junghanns.net/asterisk/", I built a more elaborate
call divert-feature. This one validates if the extension a call-forward
is to be set to is actually valid for the current context and
additionally saves this context into the DB and always uses it to
originate the divert from, as you can't expect the