[asterisk-users] issue with some numbers

Danny Nicholas danny at debsinc.com
Mon Feb 14 09:15:25 CST 2011


The simplest (IMO) option for this would be "ex-girlfriend" blocking.  The
"CON" to this is that it would require an entry for each number to block.

Say all of your calls to 555-1234 go to the answering machine.  In the EGB
scenario, you would put this line in your dialplan

Exten => _5551234,1,hangup

Or 

Exten => _5551234,1,goto(rien)

 

If you had (or wanted to plan for) multiple numbers to handle this way,
ASTDB would be an easy way to handle it.

Exten => _OUT,n,Set(CHECKNO=${DB(block/${OUT})}

Exten => _OUT,n,Gotoif(${EXTEN} == ${CHECKNO}]?rien) - goes to rien only if
number dialed is in ASTDB "block" family)

 

** add a number to block **

exten => 999,1(entno),BackGround(beep)

exten => 999,n,Read(digito,soundfile,7) - you have to record "soundfile"

exten => 999,n,Gotoif($[ "${LEN(${digito})}" != "7"]?entno)

exten => 999,n,SayDigits(${digito})

exten => 999,n,Set(DB(block/${digito}=${digito}))

exten => 999,n,BackGround(vm-goodbye)

exten => 999,n,Hangup(${HANGUP_CAUSE})

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of salaheddine
elharit
Sent: Monday, February 14, 2011 8:45 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] issue with some numbers

 

thanks for your response

 

i have tested with a regular phone and i get the same result

 

my question if there is any action to do in dial plan or extenssion.conf in
order to call this number becouse in dial plan i can  

 

bloc a number to be call 

exten => _OUT.,n,Set(match=${REGEX("^06XXXXXXX" ${AH_PHONE_NUMBER})})

exten => _OUT.,n,GotoIf($["${match}" = "1"]?rien)

 

thanks and regards

 

2011/2/14 Danny Nicholas <danny at debsinc.com>

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of salaheddine
elharit
Sent: Monday, February 14, 2011 8:16 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] issue with some numbers

 

Hello all

 

I have a small issue with some mobiles numbers when I call these numbers
using asterisk I have all the time answer machine. But when I call these
numbers using my mobile or another phone there is no problem.

 

Any help will be appreciated

 

I doubt that asterisk per se is the cause of your problem.  My suggestions
would be

#1 call using a regular phone with the asterisk line to insure that you're
not getting a telco block on the ID (Assuming you're using DAHDI and copper,
not SIP trunk)

#2 check the delay on your dial command - you might be taking long enough to
complete the command that the carrier dumps you straight to VM.

 


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
<http://www.api-digital.com/>  --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110214/ad476288/attachment.htm>


More information about the asterisk-users mailing list