Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Oct 16, 2018 4:17 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: DID forwarding to voicemail if not answered by SIP_FRIEND.
PostPosted: Thu Jun 25, 2015 2:38 pm 
Offline

Joined: Sat Oct 01, 2011 4:41 am
Posts: 50
My option was to give the callee the option to dial or vm (through IVR) in the beginning, and if they dial an it times out, it goes back to the IVR giving them the option again. What i actually trying to search for now is a way to pass a the customers pin to the AGI so customers do not need to enter the pin if thy did already in my dialplan.


[a2billing-did]
exten => _+X.,1,Goto(${EXTEN:1},100)
exten => h,1,Hangup
exten => _X.,1,Set(extenstion=1${EXTEN})
exten => _X.,n,GotoIf($["${CHANNEL:0:3}" = "SIP"]?call:sms)

exten => _X.,n(call),Answer
exten => _X.,n,agi(googletts.agi,"Welcome to Beat My Price dot US! Please Press 1 to dial your Callee OR Press 2 to leave him a voice message",en,any)
exten => _X.,n,WaitExten()
exten => i,1,agi(googletts.agi,"Invalid extension.",en)
exten => i,n,goto(n,1)
exten => t,1,agi(googletts.agi,"Request timed out.",en)
exten => t,n,goto(s,start)
exten => 1,1,agi(googletts.agi,"Calling Now",en)
exten => 1,n,Wait(2)
exten => 1,n,goto(a2billing-did-pass,${extenstion},1)
; exten => 1,n,Hangup()
exten => 1,n,goto(2,1)
exten => 2,1,Wait(1)
exten => 2,n,VoiceMail(${extenstion}@default,u)
exten => _X.,n,Hangup


exten => _X.,100(sms),Verbose(2,Incoming SMS from ${MESSAGE(from):5:11}. Message is "${MESSAGE(body)}".)
exten => _X.,n,MessageSend(sip:${EXTEN},"${CALLERID(name)}"${MESSAGE(from)})
exten => _X.,n,System(echo "${MESSAGE(body)}" >> /etc/asterisk/MSG/'${EXTEN}')



[a2billing-did-pass]
exten => _X.,1,Set(CALLERID(dnid)=${EXTEN})
exten => _X.,n,DEADAGI(a2billing.php,2,did)
exten => _X.,n,Set(EXITCONTEXT=a2billing-did-pass)
exten => _X.,n,goto(a2billing-did,${EXTEN},1)
exten => _X.,n,Hangup()
exten => i,1,agi(googletts.agi,"Invalid extension.",en)
exten => i,n,goto(n,1)
; exten => h,1,goto(a2billing-did,${extenstion},1)
;exten => h,n,Hangup()
exten => 9,1,goto(a2billing-did,${extenstion},1)
exten => 9,1,Answer
exten => 9,n,goto(a2billing-did,${extenstion},1)
; exten => 9,n,Hangup()


Top
 Profile  
 
 Post subject: Re: DID forwarding to voicemail if not answered by SIP_FRIEND.
PostPosted: Fri Jun 26, 2015 7:17 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Set(CDR(accountcode)

Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group