Why wait? And why use agi? and why in the hell use parking?
Call comes in without callerid:
; call gets answered
exten => s/,1,Answer
exten => s/,2,Set(SCREENFILE=/tmp/screen-${CALLERIDNUM})
; ask the callers name and records it
exten => s/,3,Playback(screen-record)
exten => s/,4,Record(${SCREENFILE}.gsm|60|20)
; dials you playing music to the caller (no need to park it)
exten => s/,5,Dial(SIP/me|120|mM(screen^${SCREENFILE}))
exten => s/,6,Voicemail(u200)
; You answer and this macro exec's caller still hears music
[macro-screen]
exten => s,1,Playback(silence/1)
exten => s,2,Playback(screen-from)
; plays recorded file
exten => s,3,Playback(${ARG1})
;asks you to accept it by pressing 1 anything else rejects the call
exten => s,4,Read(ACCEPT|screen-accept|1||3)
exten => s,5,GotoIf($[${ACCEPT} = 1 ] ?7:6)
; if you pressed 1 this will make it bridge the call else it sends it
to voicemail
exten => s,6,SetVar(MACRO_RESULT=CONTINUE)
exten => s,7,System(/bin/rm -f ${ARG1}*)
Don't forget to visit http://www.pbxfreeware.org and http://
www.cluecon.com
/b
---
Anakin: “You’re either with me, or you’re my enemy.”
Obi-Wan: “Only a Sith could be an absolutist.”
On Jun 23, 2005, at 10:11 AM, John Hill wrote:
1- Call comes in without callerid
2- AGI script answers line
3- AGI script asks to record name
4- Park the call and get the parked extension number
5- Ring all the phones in the house (exec Dial)
6- If phone is picked up, play recorded name
7- Wait for DTMF to accept or decline call
8- If accepted, bridge parked call and current call.
Mike,
I am wanting this same application. Have you found a soulution?
--john
_______________________________________________
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