Thank you all for the help. Is been so long that I touch the dial plan that I am having a hard time remembering lol.... I just updated to AST 13 from 1.8 not too long ago.... LOL
Here is what I got and does not seem to do the trick [flowroute-outbound] exten => _1NXXNXXXXXX,1,Set(TRUNKCHECK=0) same => n,Set(PEERCHECK1=flowroute) same => n,NoOp(-- ${PEERCHECK1} status: ${SIPPEER(${PEERCHECK1},status)} --) same => n,ExecIf($["${SIPPEER(${PEERCHECK1},status):0:2}"="OK"]?Set(TRUNKCHECK=1)) same => n,GotoIf($[${TRUNKCHECK}=0]?${EXTEN},failover) same => n,Set(CALLERID(num)=MYCID) same => n,Verbose(0,${CALLERID(num)} is calling ${EXTEN}) same => n,GotoIf($["${CALLERID(num)}" = "MYKIDSMISTERYGIRLFRIENDAT3AM"]?lenny2) same => n,Dial(${FLWRT}/${EXTEN}) same => n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN},failover) same => n(failover),Dial(${GSM}/${EXTEN}) same => n,Hangup() exten => _NXXNXXXXXX,1,Goto(1${EXTEN},1) exten => 911,1,Set(CALLERID(num)=MYCID) same => n,Dial(${VMS}/911) same => n,Dial(${GSM}/911) same => n,Hangup() same => n(lenny2),1,NoOp(Rerouting outbound call...) same => n,Set(SENDTO=53669) same => n,System(echo "Channel: local/${SENDTO}@from-internal" > /tmp/lenny.call) same => n,System(echo "MaxRetries: 0" >> /tmp/lenny.call) same => n,System(echo "RetryTime: 3" >> /tmp/lenny.call) same => n,System(echo "WaitTime: 30" >> /tmp/lenny.call) same => n,System(echo "Context: bridgit" >> /tmp/lenny.call) same => n,System(echo "samesion: 4" >> /tmp/lenny.call) same => n,System(echo "Priority: 1" >> /tmp/lenny.call) same => n,System(mv /tmp/lenny.call /var/spool/asterisk/outgoing) Any ideas what I am doing wrong? I am sure is all jacked up lol! Thanks! -- Fernando Fuentes ffuen...@txweather.org http://www.txweather.org On Sat, Aug 17, 2019, at 5:57 PM, David Kerr wrote: > Well, I don't block individual numbers but I do control outbound > international calls. I have a list of permitted country codes in ActionList > and I check against those for all calls starting with 00 or 011. If the > country code is not in my (comma separated) list then I ask the caller to > Authenticate() and if that passes then it is ok to dial. I implemented this > years ago when international calls cost way more than they do now. But still > its a nice check to have. Premium rate 900 calls might also be good to block > (or require a passcode). > > David > > > > On Sat, Aug 17, 2019 at 6:28 PM Lonnie Abelbeck <li...@lonnie.abelbeck.com> > wrote: >> >> >> > On Aug 17, 2019, at 4:44 PM, Fernando Fuentes <ffuen...@darktcp.net> wrote: >> > >> > Team, >> > >> > I have a blacklist setup and works perfectly fine for incoming. >> > I have one number that I want to block outgoing. >> > >> > Can I do that? Can I block an outgoing number if it exists in the >> blacklist? >> >> Sure, take a look in your current extensions.conf and see how the inbound >> handles the blacklist using >> -- >> ${DB_EXISTS(blacklist/${CALLERID(num)} >> -- >> study it and refresh your memory how this works. >> >> >> Then, when dialing out, the "${CALLERID(num)" would be replaced with the >> dialout number passed to your outbound provider. You probably don't need to >> act on "${DB_RESULT}", just if DB_EXISTS(...) = 0 do nothing. >> >> Then create an outbound blacklist gosub to test and act accordingly and >> call the gosub in the outbound path. >> >> Then test. >> >> Though, personally I don't see how generally useful this would be. >> >> Lonnie >> >> >> >> _______________________________________________ >> Astlinux-users mailing list >> Astlinux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to >> pay...@krisk.org. > > _______________________________________________ > Astlinux-users mailing list > Astlinux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pay...@krisk.org.
_______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.