it is possible to create a voicemail admin area in the dialp

Catalog of dial plans
Post Reply
qubo
Posts: 127
Joined: Tue Apr 12, 2011 6:11 am

it is possible to create a voicemail admin area in the dialp

Post by qubo » Tue Sep 13, 2011 5:13 pm

it is possible to create a voicemail admin area in the dialplan of mike ?


basically what I want is an area in the dialplan that allow to put DIDs to forward inmediatly to voicemail. and put phone numbers and/or area codes that send the call directly to voicemail
and maybe a DID time to activate deactivate. for each configuration for each DID

that could be gorgeous is achieve

the DIDs are identificated by the prefix
ex.
case @trunk.to_s.downcase
when 'gvny', 'gvsm' # called at Google Voice DID
@cid = ('1' + @cid) if @cid =~ /^[2-9]\d\d[2-9]\d{6}$/ # Prepend 10-digit numbers with "1" (US country code)

the for number, area code to voicemail could be something like the code that blacklist number but dont know how
# ******************** i n c o m i n g C a l l B l a c k l i s t *************************

case req.Header.from.FromURI.User.to_s
when /904\d{7}/ then sys.Respond(403, "Forbidden") # No Country code dont disturb guadalajara 33\d{8}
when /561\d{7}/ then sys.Respond(403, "Forbidden") # block calls from (561)xxxxxxx example
when /11143550724/ then sys.Respond(403, "Forbidden")
when /46735373503/ then sys.Respond(403, "Forbidden")
when /HERE NUMBER6 YOU WANT TO BLOCK/ then sys.Respond(403, "Forbidden")
end

how to config a specific DID to ring a specifi sipsorcery us

Postby qubo » Tue Sep 13, 2011 9:08 am
I have several DIDs that arrive to my device inquss@sipsorcery.com

what I want is that a specific DID call use another specific user in sipsorcery instead of the General inquss@sipsorcery.com how I can achieve this ?

this is the DID i want to config with a specific user@sipsorcery.com so when gvsm is detected then it ring myotheruser@sipsorcery.com

case @trunk.to_s.downcase
when 'gvny', 'gvsm' # called at Google Voice DID
@cid = ('1' + @cid) if @cid =~ /^[2-9]\d\d[2-9]\d{6}$/ # Prepend 10-digit numbers with "1" (US country code)



my general default incoming calls are

# ******************** i n c o m i n g C a l l *************************

def incomingCall
sys.SetFromHeader(formatNum(@cname || @cid,true), nil, Host) # Set FromName & FromHost for sys.Dial

# Forward call to the bindings (ATA / softphone)
# Change FromURI when forwarding to @local, or else Bria won't find contact in its phonebook!

WhiteList = [
'10311702',
'15920766',
'38240083',
'10319999',
'36420040',
'38130134',
'10312255',
'31221070',
]

if !((100..700) === @t.hour*100 + @t.min) or WhiteList.map {|n| to_ENUM(n)}.include?(@cid)
callswitch("#{@user}@local&1777249xxxx@in.callcentric.com[dt=20][fu=#{@cid}]",45)
else
callswitch("1777249xxxx@in.callcentric.com[fu=#{@cid}]",45)
end

qubo
Posts: 127
Joined: Tue Apr 12, 2011 6:11 am

Re: it is possible to create a voicemail admin area in the d

Post by qubo » Sat Sep 17, 2011 4:09 pm

DONE I have put a an admin in my dialplan

Post Reply