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
my general default incoming calls arecase @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)
# ******************** 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