有时候会碰到从E1 线路进来的呼叫送到CUCM上的时候,IP电话看不到主叫号码。
我们可以在语音网关上开启ISDN debug 来看运营商送过来的主叫号的 Calling Party Number i 这个参数。
Jul 29 10:28:02.950: ISDN Se0/1/0:15 Q931: RX <- SETUP pd = 8 callref = 0x0076
Bearer Capability i = 0x8090A3
Standard = CCITT
Transfer Capability = Speech
Transfer Mode = Circuit
Transfer Rate = 64 kbit/s
Channel ID i = 0xA98386
Exclusive, Channel 6
Progress Ind i = 0x8481 - Call not end-to-end ISDN, may have in-band info
Calling Party Number i = 0x21A3, '0123456789<tel:0123456789>'
Plan:ISDN, Type:National
Called Party Number i = 0xC1, '68826810<tel:68826810>'
Plan:ISDN, Type:Subscriber(local)
Sending Complete
从上面的log 输出我们能看到主叫号是0123456789,但是当这个呼叫送到IP 电话时,主叫号就变成了单词restrticted. 我们可以看到 上面这个情况里的 Calling Party Number indication是 0x21A3.
对于主叫号来说我们看的是后两个字母(A3),我们把A3 转化为二进制的话就是。
1010 0011

我们从右往左数,最右边的是第一bit 最左边的是第八bit。
Presentation = 01 which means restricted
Screening =11 which means network provided
所以我们这个情况能看到,这个主叫号是由运营商提供,且显示状态设置为了restricted。所以导致了我们内部无法显示主叫号。所以说这种情况下需要联系运营商,让他们修改Presentation indication 成00.
bits 7 6 Presentation indicator ( read the hexa number from right to left)
0 0 Presentation allowed
0 1 Presentation restricted
1 0 Number not available
1 1 Reserved