keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

sip trunk inbound 不能打入

14 years 2 months ago #4869 by ttarowu
版主,你好,我碰上这么一个问题,sip trunk注册一个号码到另外一台elastix服务器,号码是3002。本服务器上除了siptrunk还有fxs通道,希望能从fxs通道经过sip trunk打到另外一台服务器的号码。打出去没问题,打入的时候不行,显示 everyone is busy/congested...。具体如下
-- Executing [3002@from-sip-external:1] NoOp("SIP/3002-b7c90808", "Received incoming SIP connection from unknown peer to 3002") in new stack
-- Executing [3002@from-sip-external:2] Set("SIP/3002-b7c90808", "DID=3002") in new stack
-- Executing [3002@from-sip-external:3] Goto("SIP/3002-b7c90808", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/3002-b7c90808", "1?from-trunk|3002|1") in new stack
-- Goto (from-trunk,3002,1)
-- Executing [3002@from-trunk:1] Set("SIP/3002-b7c90808", "__FROM_DID=3002") in new stack
-- Executing [3002@from-trunk:2] Gosub("SIP/3002-b7c90808", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/3002-b7c90808", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("SIP/3002-b7c90808", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/3002-b7c90808", "") in new stack
-- Executing [3002@from-trunk:3] ExecIf("SIP/3002-b7c90808", "0 |Set|CALLERID(name)=3000") in new stack
-- Executing [3002@from-trunk:4] Set("SIP/3002-b7c90808", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [3002@from-trunk:5] SetCallerPres("SIP/3002-b7c90808", "allowed_not_screened") in new stack
-- Executing [3002@from-trunk:6] Goto("SIP/3002-b7c90808", "from-did-direct|1001|1") in new stack
-- Goto (from-did-direct,1001,1)
-- Executing [1001@from-did-direct:1] Macro("SIP/3002-b7c90808", "exten-vm|novm|1001") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/3002-b7c90808", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/3002-b7c90808", "AMPUSER=3000") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/3002-b7c90808", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/3002-b7c90808", "1|Set|REALCALLERIDNUM=3000") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/3002-b7c90808", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/3002-b7c90808", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/3002-b7c90808", "1?report") in new stack
-- Goto (macro-user-callerid,s,11)
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/3002-b7c90808", "0?continue") in new stack
-- Executing [s@macro-user-callerid:12] Set("SIP/3002-b7c90808", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:13] GotoIf("SIP/3002-b7c90808", "1?continue") in new stack
-- Goto (macro-user-callerid,s,20)
-- Executing [s@macro-user-callerid:20] NoOp("SIP/3002-b7c90808", "Using CallerID "wys" <3000>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/3002-b7c90808", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/3002-b7c90808", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/3002-b7c90808", "EXTTOCALL=1001") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/3002-b7c90808", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/3002-b7c90808", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/3002-b7c90808", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/3002-b7c90808", "record-enable|1001|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/3002-b7c90808", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/3002-b7c90808", "recordingcheck|20100303-104140|1267584100.7") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100303-104140|1267584100.7: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/3002-b7c90808", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/3002-b7c90808", "dial||tr|1001") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/3002-b7c90808", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/3002-b7c90808", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'wys' number is '3000'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 1001 to extension map
-- dialparties.agi: Extension 1001 cf is disabled
-- dialparties.agi: Extension 1001 do not disturb is disabled
dialparties.agi: Extension 1001 has ExtensionState: 0
-- dialparties.agi: Checking CW and CFB status for extension 1001
-- dialparties.agi: dbset CALLTRACE/1001 to 3000
-- dialparties.agi: Filtered ARG3: 1001
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/3002-b7c90808", "DAHDI/6||tr") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dial:8] Set("SIP/3002-b7c90808", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-dial:9] GosubIf("SIP/3002-b7c90808", "0?CHANUNAVAIL|1") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/3002-b7c90808", "0?exit|return") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/3002-b7c90808", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/3002-b7c90808", "0?docfu|1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/3002-b7c90808", "0?docfb|1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/3002-b7c90808", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/3002-b7c90808", "Voicemail is novm") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/3002-b7c90808", "1?s-CHANUNAVAIL|1") in new stack
-- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("SIP/3002-b7c90808", "IVR_RETVM: IVR_CONTEXT: ") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("SIP/3002-b7c90808", "0?exit|1") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("SIP/3002-b7c90808", "congestion") in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 3) exited non-zero on 'SIP/3002-b7c90808' in macro 'exten-vm'
== Spawn extension (from-did-direct, 1001, 1) exited non-zero on 'SIP/3002-b7c90808'


sip trunk的配置如下:
[3002trunk]
disallow=all
host=201.123.115.222
username=3002
secret=3002
type=peer
fromuser=3002
insecure=port,invite
allow=g729
allow=ilbc
allow=ulaw
allow=alaw
dtmfmode=rfc2833
authuser=3002

注册如下:
register=3002:[email protected]/3002
fxs通道 配置如下:
;;;;;;[1001]
signalling=fxo_ks
pickupgroup=
This email address is being protected from spambots. You need JavaScript enabled to view it.
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <1001>
busydetect=no
busycount=7
accountcode=
channel=>6
当从sip trunk 3002打入电话的时候,就转到1001分机。

查了很多地方,都不知道原因,希望你能帮忙。
14 years 2 months ago #4870 by Joe.Yung
Hi,
你用的是什么卡,卡的序列号发给我。

14 years 2 months ago #4871 by james.zhu
hi:
我看到这个地方是这样的:
Executing [s@macro-dial:7] Dial("SIP/3002-b7c90808", "DAHDI/6||tr") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
你可以试试两个fxs 互打,如果能通,说明pstn, fxs 没有问题。然后你再检查sip的环境。

14 years 2 months ago #4874 by ttarowu
fxs是通的,2个fxs能互打。fxs通过sip trunk打出也是没问题的,就是打不进来。
14 years 2 months ago #4875 by ttarowu
sip环境怎么查?能给出具体一点的措施吗?能帮助我定位的。谢谢 james
14 years 2 months ago #4879 by Denins.Den
只要卡工作正常的话SIP这块我们不负责,这是asterisk提供的功能,请检查你的SIP trunk 和 log日志,看看到底为什么打不进去
实在解决不了请加我的MSN: This email address is being protected from spambots. You need JavaScript enabled to view it.
Time to create page: 0.036 seconds
Powered by Kunena Forum