现象
在HSS中,正常呼转号码都是数字,一般可能出现86,9186开头而已。
在TAS中,呼转号码可能存在:
tel:13912345678;phone-context=ims.mnc000.mcc460.3gppnetwork.org
tel:008613912345678
tel:+8613912345678
tel:+13912345678
tel:8613912345678
等各种情况。
下面的SQL可以提取出上述情况的单独呼转号码(字段2)(后续字段是为了核对)。
根据实际情况还应该对SQL做扩充,检查空值等。
SQL语句
select msisdn,case INSTR(nbr,';',1,1) when 0 then nbr else substr(nbr,1,INSTR(nbr,';',1,1)-1) end FTN_ISDN,nbr,cfnrc_ftno
from
(
select msisdn,substr(cfnrc_ftno,9) nbr,cfnrc_ftno from XHWTASHB_2274_SS a
where A.CFNRC_FTNO like 'tel:0086%'
union all
select msisdn,substr(cfnrc_ftno,8) nbr,cfnrc_ftno from XHWTASHB_2274_SS a
where A.CFNRC_FTNO like 'tel:+86%'
union all
select msisdn,substr(cfnrc_ftno,6) nbr,cfnrc_ftno from XHWTASHB_2274_SS a
where A.CFNRC_FTNO like 'tel:+%' and A.CFNRC_FTNO not like 'tel:+86%'
union all
select msisdn,substr(cfnrc_ftno,7) nbr,cfnrc_ftno from XHWTASHB_2274_SS a
where A.CFNRC_FTNO like 'tel:86%'
union all
select msisdn,substr(cfnrc_ftno,5) nbr,cfnrc_ftno from XHWTASHB_2274_SS a
where A.CFNRC_FTNO like 'tel:%' and A.CFNRC_FTNO not like 'tel:86%' and A.CFNRC_FTNO not like 'tel:+%' and A.CFNRC_FTNO not like 'tel:0086%'
)
相关名词
HSS(这个没有必要解释吧/以前叫HLR)
■ Home Subscriber Server
■ 用户归属服务器
TAS (有时也称为VoLTE AS)
■ Telephony Application Server
■ 电话业务应用服务器