keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about D110/210/410 T1/E1/J1 PRI Cards

pri电话呼入问题

15 years 5 days ago #3152 by zy7884
运营商不给改,说是改的话所有用户的就都改了
15 years 5 days ago #3153 by zy7884
朱工,除了运营商改, zapata。conf里能改配置项来完成吗
15 years 5 days ago #3154 by james.zhu
hello:
不能改了,可能需要改代码(libpri)?麻烦联系我: This email address is being protected from spambots. You need JavaScript enabled to view it.
james.zhu

14 years 10 months ago #3528 by cncba
你好!
我们现在遇到了同样的问题,用移动的手机拔打的话经常会出现"请检查网络服务"。
之前用的电信的线路没有问题,后来换成网通就出现这样的问题。
想请教您是怎么解决的?
我从LOG里找出了pri的LOG,正常和不正常的情况做了下对比:

正常的情况:
< Protocol Discriminator: Q.931 (8) len=48
< Call Ref: len= 2 (reference 1242/0x4DA) (Originator)
< Message type: SETUP (5)
< [a1]*CLI>
< Sending Complete (len= 1)
< [04 03 80 90 a3]
< Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
< Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
< User information layer 1: A-Law (35)
< [18 03 a1 83 82]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Preferred Dchan: 0
< ChanSel: As indicated in following octets
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 2 ]
< [6c 0d 21 81 31 35 39 31 31 30 39 36 38 37 32]
< Calling Number (len=15) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
< Presentation: Presentation permitted, user number passed network screening (1) '15912345678' ]
< [70 0b a1 31 30 38 35 36 35 38 30 30 30]
< Called Number (len=13) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '1085123456' ]
< [7d 02 91 81]
< IE: High-layer Compatibility (len = 4)
-- Making new call for cr 1242
-- Processing Q.931 Call Setup
-- Processing IE 161 (cs0, Sending Complete)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 125 (cs0, High-layer Compatibility)
q931.c:3509 q931_receive: call 1242 on channel 2 enters state 6 (Call Present)
Sending Receiver Ready (69)
duobao*CLI>
> [ 02 01 01 8a ]

> Supervisory frame:
> SAPI: 00 C/R: 1 EA: 0
> TEI: 000 EA: 1
> Zero: 0 S: 0 01: 1 [ RR (receive ready) ]
> N(R): 069 P/F: 0
> 0 bytes of data

错误情况:
< Protocol Discriminator: Q.931 (8) len=54
< Call Ref: len= 2 (reference 1185/0x4A1) (Originator)
< Message type: SETUP (5)
< [a1]
< Sending Complete (len= 1)
< [04 03 80 90 a3]
< Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
< Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
< User information layer 1: A-Law (35)
< [04 04 80 98 90 a3]
< Bearer Capability (len= 6) [ Ext: 1 Q.931 Std: 0 Info transfer capability: Speech (0)
< Ext: 1 Trans mode/rate: (Nx64kbps) (24)
< Ext: 1 Transfer rate multiplier: 16 x 64
< User information layer 1: A-Law (35)
< [18 03 a1 83 98]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Preferred Dchan: 0
< ChanSel: As indicated in following octets
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 24 ]
< [6c 0d 21 81 31 35 39 31 31 30 39 36 38 37 32]
< Calling Number (len=15) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
< Presentation: Presentation permitted, user number passed network screening (1) '15912345678' ]
< [70 0b a1 31 30 38 35 36 35 38 30 30 30]
< Called Number (len=13) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1) '1085123456' ]
< [7d 02 91 81]
< IE: High-layer Compatibility (len = 4)
-- Making new call for cr 1185
-- Processing Q.931 Call Setup
-- Processing IE 161 (cs0, Sending Complete)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
-- Processing IE 125 (cs0, High-layer Compatibility)
q931.c:3509 q931_receive: call 1185 on channel 24 enters state 6 (Call Present)
q931.c:3104 q931_release_complete: call 1185 on channel 24 enters state 0 (Null)
duobao*CLI>
> [ 00 01 80 6c 08 02 84 a1 5a 08 02 81 c1 ]

> Informational frame:
> SAPI: 00 C/R: 0 EA: 0
> TEI: 000 EA: 1
> N(S): 064 0: 0
> N(R): 054 P: 0
> 9 bytes of data
14 years 10 months ago #3529 by miaolin
不正常的呼叫SETUP消息里面有2个Bearer Capability字段,而正常的只有1个。能否修改一下switchtype?如果还不行,就只能修改libpri或者chan_zap.c了
14 years 10 months ago #3530 by james.zhu
解决办法两个:
1) 让运营商改成 支持 speech 64 kb 的
2) 修改代码:
libpri lm1d1q931.c
注释点下面的代码,然后重新编译libpri(3302 行).
===================================
if (c->transmoderate != TRANS_MODE_64_CIRCUIT) {
q931_release_complete(pri, c, PRI_CAUSE_BEARERCAPABILITY_NOTIMPL);
break;
}
===================================
james.zhu

Time to create page: 0.038 seconds
Powered by Kunena Forum