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打手机 当电信提供语音答覆时就断线

14 years 1 month ago #4981 by ramble
问下
目前系统 freeiris2-2.4 + D410P (openvox)
在freeiris底下分机 透过 pri 外拨手机 , 手机没接 电信转语音回答 ,
此时 freeiris就挂断这通电话
尝试在 /etc/asterisk/chan_dahdi.conf 的 for digital 加入一段 callprogress=yes
但是 还是一样会断话
估计 这个问题是 电信要转到语音回答时 会送一个信号回来 因此 freeiris会误认 而切断这个电话
请问是否有人可以 提供方法解决问题
谢谢
14 years 1 month ago #4982 by Wayne
把外拨手机时候的PRI信令转储下来分析一下。看看跟正常的呼叫有什么不同。
14 years 1 month ago #4983 by ramble
这是执行 pri debug span 的 log

-- Executing [0916840931@from-exten-sip:1] NoOp("SIP/8001-b7d00598", "make call from 8001 to 0916840931") in new stack
-- Executing [0916840931@from-exten-sip:2] Set("SIP/8001-b7d00598", "CHANNEL(language)=cn") in new stack
-- Executing [0916840931@from-exten-sip:3] Set("SIP/8001-b7d00598", "FRI2_ROUTERLINE=1") in new stack
-- Executing [0916840931@from-exten-sip:4] Set("SIP/8001-b7d00598", "__FRI2_EFET_ONETOUCHMONITOR=1") in new stack
-- Executing [0916840931@from-exten-sip:5] AGI("SIP/8001-b7d00598", "agi://127.0.0.1/router?routerline=1&callednum=0916840931") in new stack
-- AGI Script Executing Application: (set) Options: (FRI2_SESSIONID=1269163084832181)
-- AGI Script Executing Application: (set) Options: (__FRI2_SESSIONID=1269163084832181)
-- AGI Script Executing Application: (set) Options: (CDR(userfield)=1269163084832181)
-- AGI Script Executing Application: (AGI) Options: (agi://127.0.0.1/sysautomon?type=caller&number=8001)
-- AGI Script agi://127.0.0.1/sysautomon?type=caller&number=8001 completed, returning 0
-- AGI Script Executing Application: (set) Options: (FRI2_AGISTATUS=1)
-- AGI Script Executing Application: (set) Options: (FRI2_ROUTER_PROCESS_MODE=2)
-- AGI Script Executing Application: (set) Options: (FRI2_ROUTER_PROCESS_DEFINED=5)
-- AGI Script Executing Application: (set) Options: (FRI2_ROUTER_PROCESS_EXTENSION=0916840931)
-- AGI Script Executing Application: (set) Options: (FRI2_ROUTER_PROCESS_CALLERIDNUM=8001)
-- AGI Script agi://127.0.0.1/router?routerline=1&callednum=0916840931 completed, returning 0
-- Executing [0916840931@from-exten-sip:6] ExecIf("SIP/8001-b7d00598", "0|Macro|REASON|NOVALID") in new stack
-- Executing [0916840931@from-exten-sip:7] ExecIf("SIP/8001-b7d00598", "0|Hangup") in new stack
-- Executing [0916840931@from-exten-sip:8] Set("SIP/8001-b7d00598", "CALLERID(all)=8001 <8001>") in new stack
-- Executing [0916840931@from-exten-sip:9] ExecIf("SIP/8001-b7d00598", "0|AGI|agi://127.0.0.1/dial_local?callednum=0916840931&typeof=5") in new stack
-- Executing [0916840931@from-exten-sip:10] ExecIf("SIP/8001-b7d00598", "1|AGI|agi://127.0.0.1/dial_outbound?callednum=0916840931&trunkid=5") in new stack
-- AGI Script Executing Application: (dial) Options: (DAHDI/R0/0916840931|60|tTkK)
-- Making new call for cr 32770
-- Requested transfer capability: 0x00 - SPEECH
> Protocol Discriminator: Q.931 (8) len=37
> Call Ref: len= 2 (reference 2/0x2) (Originator)
> Message type: SETUP (5)
> [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 9f]
> 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: 31 ]
> [6c 06 00 81 38 30 30 31]
> Calling Number (len= 8) [ Ext: 0 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0)
> Presentation: Presentation permitted, user number passed network screening (1) '8001' ]
> [70 0b 80 30 39 31 36 38 34 30 39 33 31]
> Called Number (len=13) [ Ext: 1 TON: Unknown Number Type (0) NPI: Unknown Number Plan (0) '0916840931' ]
> [a1]
> Sending Complete (len= 1)
q931.c:3134 q931_setup: call 32770 on channel 31 enters state 1 (Call Initiated)
-- Called R0/0916840931
< Protocol Discriminator: Q.931 (8) len=10
< Call Ref: len= 2 (reference 2/0x2) (Terminator)
< Message type: CALL PROCEEDING (2)
< [18 03 a9 83 9f]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit PRI Spare: 0 Exclusive Dchan: 0
< ChanSel: As indicated in following octets
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 31 ]
-- Processing IE 24 (cs0, Channel Identification)
q931.c:3683 q931_receive: call 32770 on channel 31 enters state 3 (Outgoing call Proceeding)
-- DAHDI/62-1 is proceeding passing it to SIP/8001-b7d00598
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 2/0x2) (Terminator)
< Message type: ALERTING (1)
< [1e 02 84 88]
< Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the remote user (4)
< Ext: 1 Progress Description: Inband information or appropriate pattern now available. (8) ]
-- Processing IE 30 (cs0, Progress Indicator)
q931.c:3596 q931_receive: call 32770 on channel 31 enters state 4 (Call Delivered)
[Mar 21 17:18:11] WARNING[20142]: chan_dahdi.c:1774 dahdi_enable_ec: Unable to enable echo cancellation on channel 62 (No such device)
-- DAHDI/62-1 is ringing
-- DAHDI/62-1 is busy
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Call Delivered, peerstate Call Received
q931.c:3015 q931_disconnect: call 32770 on channel 31 enters state 11 (Disconnect Request)
> Protocol Discriminator: Q.931 (8) len=9
> Call Ref: len= 2 (reference 2/0x2) (Originator)
> Message type: DISCONNECT (69)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Hungup 'DAHDI/62-1'
== Everyone is busy/congested at this time (1:1/0/0)
-- AGI Script agi://127.0.0.1/dial_outbound?callednum=0916840931&trunkid=5 completed, returning 0
-- Executing [0916840931@from-exten-sip:11] Hangup("SIP/8001-b7d00598", "") in new stack
== Spawn extension (from-exten-sip, 0916840931, 11) exited non-zero on 'SIP/8001-b7d00598'
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 2/0x2) (Terminator)
< Message type: RELEASE (77)
q931.c:3801 q931_receive: call 32770 on channel 31 enters state 0 (Null)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request
> Protocol Discriminator: Q.931 (8) len=9
> Call Ref: len= 2 (reference 2/0x2) (Originator)
> Message type: RELEASE COMPLETE (90)
> [08 02 81 90]
> Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) Spare: 0 Location: Private network serving the local user (1)
> Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null


谢谢
14 years 1 month ago #4989 by james.zhu
hi:
你检查这些问题:
1) dial) Options: (DAHDI/R0/0916840931|60|tTkK) 这个通道是确认没有问题的吗?
2) 你的PRI 是up. active 的还是down 的。
3) 你的线路只是打手机号码有问题吗? 如果是,你换其他运营商的手机试试。
4) callprogress=yes 这个设置根本和数字卡无关!
5) 设置pridialplan= local (or unknown, private, national, and international)

14 years 1 month ago #4990 by ramble
Hi 很高興收到您的回復
1) dial) Options: (DAHDI/R0/0916840931|60|tTkK) 这个通道是确认没有问题的吗?
這是 freeiris2的參數 60代表外撥響鈴時間 tTkK是asterisk的撥號參數
这是freeiris2的参数 60代表外拨响铃限制时间/秒(超过此时间自动断线) tTkK是asterisk的拨号参数
2) 你的PRI 是up. active 的还是down 的。
PRI 是up , active
PRI 是up , active
3) 你的线路只是打手机号码有问题吗? 如果是,你换其他运营商的手机试试。
只有打手機有問題 而且換了其他家手機 只是掛機時間長短不同
只有打手机有问题 而且换了其他手机运营商 只是挂机时间长短不同而已
4) callprogress=yes 这个设置根本和数字卡无关!
谢谢
5) 设置pridialplan= local (or unknown, private, national, and international)
pridialplan= unknown



-- DAHDI/62-1 is ringing
-- DAHDI/62-1 is busy

从ringing到busy依照不同的手机运营商 时间也不同 间隔搭约15~30秒
我假设 是否运营商pri有发出什么讯息 而让我们的系统当成busy而送出disconnect的需求

是否有什么命令 可以撷取pri之间互送讯息 例如cause xx的编码 这样有助于厘清 到底是哪里的问题

谢谢您的协助


14 years 1 month ago #4991 by james.zhu
hi:
1) DAHDI/R0/ 确认没有问题
2) DAHDI/62 通道的状态是什么?

Time to create page: 0.041 seconds
Powered by Kunena Forum