Manual dial with External DNC Check

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Manual dial with External DNC Check

Postby kapil_budhiraja » Mon Aug 11, 2014 3:31 am

Dear All,
Cheers for your great work always.

I have a custom situation where all manual dials should be checked for two level of DNC's.

First : Camapign level which is present.
Second : Third party url-based DNC where number shall be posted to a url which returns Y/N as result. I would appreciate if any available expert could guide me the dialplan which check this upon manual dial request from agent. If result N then play recording to agent "Number is in DNC' and hangup.


Thanks,
Kapil
kapil_budhiraja
 
Posts: 3
Joined: Mon Aug 11, 2014 3:20 am

Re: Manual dial with External DNC Check

Postby geoff3dmg » Mon Aug 11, 2014 7:57 am

i don't think a dialplan can do what you want. You'd need to do it with a custom AGI script.
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Manual dial with External DNC Check

Postby kapil_budhiraja » Mon Aug 11, 2014 10:25 pm

I believe this function could call the URL directly and set the url response into foo variable. But just not sure if this works. If so, how to process the dial plan further based on foo result Y or N.

exten => s,1,Set(foo=${CURL(url?x=5&y=4)})

Please advice.
kapil_budhiraja
 
Posts: 3
Joined: Mon Aug 11, 2014 3:20 am

Re: Manual dial with External DNC Check

Postby geoff3dmg » Tue Aug 12, 2014 5:26 am

You could use GotoIf?
Vicibox 5.03 from .iso | VERSION: 2.10-451a BUILD: 140902-0816 | Asterisk 1.8.28.2-vici | Multi-Server | Amfeltec H/W Timing Cards | No Extra Software After Installation | Dell PowerEdge 1850 | Pentium 4 'Prescott' Xenon Quad @ 3.40GHz
geoff3dmg
 
Posts: 403
Joined: Tue Jan 29, 2013 4:35 am
Location: Lancashire, UK

Re: Manual dial with External DNC Check

Postby kapil_budhiraja » Wed Aug 13, 2014 1:54 am

Yeah. It's working using CURL and gotoIf functions.

[abc]
exten => _X.,1,Answer()
exten => _X.,2,Set(var=${CURL(URL?phone=${EXTEN})})
exten => _X.,3,GotoIf($["${var}" != ""]?4:5)
exten => _X.,4,NoOp(${var})
exten => _X.,5,Hangup()
kapil_budhiraja
 
Posts: 3
Joined: Mon Aug 11, 2014 3:20 am


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 104 guests