Есть проблемы с запуском B410P со *1.2.16, сама карта установилась без проблем.
Проблема с организацией связи через нее, не получается ни входящие ни исходящие вызовы =(.
MSN номера не используем.
Плата в режиме TE
Вот настройки
misdn-init.conf
card=1,0x4
te_ptp=1,2,3,4
poll=128
dsp_options=0
debug=0xf
misdn.conf
[general]
misdn_init=/etc/misdn-init.conf
debug=3
stop_tone_after_first_digit=yes
bridging=no
[default]
context=isdn1
allowed_bearers=all
nationalprefix=0
internationalprefix=00
rxgain=0
txgain=0
echocancel=yes
te_choose_channel=no
pmp_l1_check=yes
method=standard
dialplan=0
localdialplan=0
cpndialplan=0
early_bconnect=yes
always_immediate=no
immediate=no
hdlc=yes
[isdn]
ports=1,2,3,4
context=isdn-pstn
msns=*
extensions.conf
exten =>_66XXXX.,1,Dial(mISDN/g:isdn/${EXTEN:2})
[isdn-pstn]
exten => 700001,1,Dial(SIP/213)
exten => 700001,n,Hangup
Дебаг при входящем.
P[ 1] set_channel: bc->channel:0 channel:1
P[ 1] I IND :SETUP oad:89117007070 dad:700001 pid:9 state:none
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> Bearer: Speech
P[ 1] --> Codec: Alaw
P[ 0] --> * NEW CHANNEL oad:89117007070 dad:700001
P[ 1] --> CTON: Unknown
P[ 1] --> EXPORT_PID: pid:9
P[ 1] --> PRES: Restricted (0)
P[ 1] --> SCREEN: Unscreened (0)
P[ 1] I SEND:PROCEEDING oad:89117007070 dad:700001 pid:9
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> TRANSPARENT Mode
P[ 1] $$$ Set StackIND Err: -1 Success
P[ 1] I IND :BCHAN_ERROR oad:89117007070 dad:700001 pid:9 state:DIALING
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> hangup
P[ 1] * IND : HANGUP pid:9 ctx:isdn-pstn oad:89117007070 dad:700001 State:DIALING
P[ 1] --> l3id:2002d
P[ 1] --> cause:16
P[ 1] --> out_cause:16
P[ 1] --> state:DIALING
P[ 1] I SEND:DISCONNECT oad:89117007070 dad:700001 pid:9
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> Channel: mISDN/1-1 hanguped new state:CLEANING
P[ 1] send_event: setup_bc failed
Mar 4 09:00:12 WARNING[24548]: pbx.c:2551 ast_pbx_start: Asked to start thread on NULL channel?
P[ 1] --> hangup
P[ 0] send_cause2ast: No Ast
Mar 4 09:00:12 WARNING[24548]: chan_misdn.c:4834 chan_misdn_log: ast_pbx_start returned channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] BCHAN: MGR_DELLAYER|CNF pid:9
P[ 1] $$$ CLEANUP CALLED pid:0
P[ 1] $$$ Cleaning up bc with stid :10010100 pid:0
P[ 1] Sending Control ECHOCAN_OFF
P[ 1] I IND :RELEASE oad: dad: pid:0 state:none
P[ 1] --> channel:0 mode:TE cause:101 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] Chan not existing at the moment bc->l3id:2002d bc:0x9c4eb78 event:RELEASE port:1 channel:0
P[ 1] $$$ CLEANUP CALLED pid:0
P[ 0] handle_bchan: BC not found for prim:f2481 with addr:55010180 dinfo:0
P[ 0] MGMT: DELLAYER|CONFIRM Addr: 55010180 !
P[ 1] MGMT: SSTATUS: L1_DEACTIVATED
P[ 1] $$$ CLEANUP CALLED pid:0
P[ 1] $$$ CLEANUP CALLED pid:0
P[ 1] MGMT: SSTATUS: L2_RELEASED
При исходящем: вызов проходит (звонит моб. вижу что звонит мой isdn номер) и канал сразу разрывается.
Если какой косяк в конфигах , чтобы при входящем звонил SIP/213?
Спасибо!
CLI> misdn show config ?
# rxclock - use clocking for pcm from ST Port
# crystalclock - use clocking for pcm from PLL (genrated on board)
Ещё тонкости: на карте есть ДИП свичи на переключение каждого порта, смотри в мануал?
misdnportinfo
Port 1: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
-> childcnt: 2
* Port NOT useable for PBX--------
Port 2: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2
--------
Port 3: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2
--------
Port 4: TE-mode BRI S/T interface line (for phone lines)
-> Protocol: DSS1 (Euro ISDN)
-> childcnt: 2
--------
mISDN_close: fid(3) isize(131072) inbuf(0x80f2060) irp(0x80f2060) iend(0x80f2060)
localhost*CLI> misdn show config
Misdn General-Config:
-> Version: chan_misdn-0.3.0
-> misdn_init: /etc/misdn-init.conf -> debug: 3
-> tracefile: /var/log/asterisk/misdn.log -> bridging: no
-> stop_tone_after_first_digit: yes -> append_digits2exten: yes
-> dynamic_crypt: no -> crypt_prefix:
-> crypt_keys: -> ntdebugflags: 0
-> ntdebugfile: /var/log/misdn-nt.log
[PORT 1]
-> name: isdn -> allowed_bearers: all
-> far_alerting: no -> rxgain: 0
-> txgain: 0 -> te_choose_channel: no
-> pmp_l1_check: yes -> reject_cause: 21
-> block_on_alarm: no -> hdlc: yes
-> context: isdn-pstn -> language: en
-> musicclass: default -> callerid:
-> method: standard -> dialplan: 0
-> localdialplan: 0 -> cpndialplan: 0
-> nationalprefix: 0 -> internationalprefix: 00
-> presentation: -1 -> screen: -1
-> always_immediate: no -> nodialtone: no
-> immediate: no -> senddtmf: no
-> hold_allowed: no -> early_bconnect: yes
-> incoming_early_audio: no -> echocancel: 128
-> name: isdn -> need_more_infos: no
-> nttimeout: no -> jitterbuffer: 4000
-> jitterbuffer_upper_threshold: 0 -> callgroup:
-> pickupgroup: -> msns: *
-> ptp: no
| Код: |
| Misdn General-Config: -> Version: chan_misdn-0.3.1-rc36 -> misdn_init: /etc/misdn-init.conf -> debug: 1 -> tracefile: /var/log/asterisk/misdn.log -> bridging: no -> stop_tone_after_first_digit: yes -> append_digits2exten: yes -> dynamic_crypt: no -> crypt_prefix: ** -> crypt_keys: test,muh -> ntkeepcalls: no -> ntdebugflags: 3 -> ntdebugfile: /var/log/misdn-nt.log [PORT 1] -> name: extern -> allowed_bearers: all -> far_alerting: yes -> rxgain: 0 -> txgain: 0 -> te_choose_channel: no -> pmp_l1_check: yes -> reject_cause: 16 -> block_on_alarm: no -> hdlc: no -> context: from-pstn -> language: de -> musicclass: default -> callerid: -> method: standard -> dialplan: 4 -> localdialplan: 4 -> cpndialplan: 0 -> nationalprefix: 0 -> internationalprefix: 00 -> presentation: -1 -> screen: -1 -> always_immediate: no -> nodialtone: no -> immediate: no -> senddtmf: yes -> hold_allowed: no -> early_bconnect: yes -> incoming_early_audio: no -> echocancel: 0 -> need_more_infos: no -> noautorespond_on_setup: no -> overlapdial: 0 -> nttimeout: no -> bridging: yes -> jitterbuffer: 4000 -> jitterbuffer_upper_threshold: 0 -> callgroup: -> pickupgroup: -> msns: * -> ptp: no [PORT 2] -> name: extern -> allowed_bearers: all -> far_alerting: yes -> rxgain: 0 -> txgain: 0 -> te_choose_channel: no -> pmp_l1_check: yes -> reject_cause: 16 -> block_on_alarm: no -> hdlc: no -> context: from-pstn -> language: de -> musicclass: default -> callerid: -> method: standard -> dialplan: 4 -> localdialplan: 4 -> cpndialplan: 0 -> nationalprefix: 0 -> internationalprefix: 00 -> presentation: -1 -> screen: -1 -> always_immediate: no -> nodialtone: no -> immediate: no -> senddtmf: yes -> hold_allowed: no -> early_bconnect: yes -> incoming_early_audio: no -> echocancel: 0 -> need_more_infos: no -> noautorespond_on_setup: no -> overlapdial: 0 -> nttimeout: no -> bridging: yes -> jitterbuffer: 4000 -> jitterbuffer_upper_threshold: 0 -> callgroup: -> pickupgroup: -> msns: * -> ptp: no |
| Код: |
| [root@bestgroup ~]# misdnportinfo Port 1: TE-mode BRI S/T interface line (for phone lines) -> Interface is Poin-To-Point. -> Protocol: DSS1 (Euro ISDN) -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib. -> childcnt: 2 * Port NOT useable for PBX (maybe there is already a PBX running?) -------- Port 2: TE-mode BRI S/T interface line (for phone lines) -> Interface is Poin-To-Point. -> Protocol: DSS1 (Euro ISDN) -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib. -> childcnt: 2 * Port NOT useable for PBX (maybe there is already a PBX running?) -------- Port 3: TE-mode BRI S/T interface line (for phone lines) -> Interface is Poin-To-Point. -> Protocol: DSS1 (Euro ISDN) -> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib. -> childcnt: 2 * Port NOT useable for PBX (maybe there is already a PBX running?) -------- |
| Цитата: |
| * Port NOT useable for PBX (maybe there is already a PBX running?) |
misdnportinfo
Port 1: TE-mode BRI S/T interface line (for phone lines)
-> Interface is Poin-To-Point.
-> Protocol: DSS1 (Euro ISDN)
-> Layer 4 protocol 0x04000001 is detected, but not allowed for TE lib.
-> childcnt: 2
* Port NOT useable for PBX
завтро до начала рабочего дня проверю.
Дебаг
P[ 1] handle_frm: frm->addr:42000103 frm->prim:3f082
P[ 1] handle_frm: frm->addr:42000103 frm->prim:30582
P[ 1] set_channel: bc->channel:0 channel:1
P[ 1] set_chan_in_stack: 1
P[ 1] I IND :SETUP oad:89114002525 dad:700001 pid:33 state:none
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20020 b_stid:0 layer_id:50010180
P[ 1] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> Bearer: Speech
P[ 1] --> Codec: Alaw
P[ 0] --> * NEW CHANNEL dad:700001 oad:89114002525
P[ 1] --> CTON: Unknown
P[ 1] --> EXPORT_PID: pid:33
P[ 1] --> PRES: Restricted (0)
P[ 1] --> SCREEN: Unscreened (0)
P[ 1] * Queuing chan 0x8e30bc8
P[ 1] --> sending_complete so we never match ..
P[ 1] I SEND:RELEASE oad:89114002525 dad:700001 pid:33
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> channel:1 mode:TE cause:16 ocause:1 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20020 b_stid:0 layer_id:50010180
P[ 1] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1] GOT SETUP OK
P[ 1] Sending msg, prim:34d80 addr:41000104 dinfo:20020
P[ 1] handle_frm: frm->addr:42000103 frm->prim:35a82
P[ 1] empty_chan_in_stack: 1
P[ 1] $$$ CLEANUP CALLED pid:33
P[ 1] I IND :RELEASE_COMPLETE oad: dad: pid:33 state:EXTCANTMATCH
P[ 1] --> channel:0 mode:TE cause:16 ocause:1 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20020 b_stid:0 layer_id:50010180
P[ 1] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> hangup
P[ 1] * IND : HANGUP pid:33 ctx:isdn-pstn dad:700001 oad:89114002525 State:EXTCANTMATCH
P[ 1] --> l3id:20020
P[ 1] --> cause:16
P[ 1] --> out_cause:16
P[ 1] --> state:EXTCANTMATCH
P[ 1] --> Channel: mISDN/1-1 hanguped new state:CLEANING
P[ 1] handle_frm: frm->addr:42000103 frm->prim:3f182
P[ 1] --> lib: RELEASE_CR Ind with l3id:20020
P[ 1] --> lib: CLEANING UP l3id: 20020
P[ 1] $$$ CLEANUP CALLED pid:33
P[ 1] handle_frm: frm->addr:42000103 frm->prim:3f082
P[ 1] handle_frm: frm->addr:42000103 frm->prim:30582
P[ 1] set_channel: bc->channel:0 channel:1
P[ 1] set_chan_in_stack: 1
P[ 1] I IND :SETUP oad:89114002525 dad:700001 pid:34 state:none
P[ 1] --> channel:1 mode:TE cause:16 ocause:16 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20021 b_stid:0 layer_id:50010180
P[ 1] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> Bearer: Speech
P[ 1] --> Codec: Alaw
P[ 0] --> * NEW CHANNEL dad:700001 oad:89114002525
P[ 1] --> CTON: Unknown
P[ 1] --> EXPORT_PID: pid:34
P[ 1] --> PRES: Restricted (0)
P[ 1] --> SCREEN: Unscreened (0)
P[ 1] * Queuing chan 0x8e30bc8
P[ 1] --> sending_complete so we never match ..
P[ 1] I SEND:RELEASE oad:89114002525 dad:700001 pid:34
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> channel:1 mode:TE cause:16 ocause:1 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:4 rnumplan: cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:1
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20021 b_stid:0 layer_id:50010180
P[ 1] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1] Sending msg, prim:34d80 addr:41000104 dinfo:20021
P[ 1] GOT SETUP OK
P[ 1] handle_frm: frm->addr:42000103 frm->prim:35a82
P[ 1] empty_chan_in_stack: 1
P[ 1] $$$ CLEANUP CALLED pid:34
P[ 1] I IND :RELEASE_COMPLETE oad: dad: pid:34 state:EXTCANTMATCH
P[ 1] --> channel:0 mode:TE cause:16 ocause:1 rad: cad:
P[ 1] --> info_dad: onumplan:0 dnumplan:0 rnumplan:0 cpnnumplan:0
P[ 1] --> caps:Speech pi:0 keypad: sending_complete:0
P[ 1] --> screen:0 --> pres:0
P[ 1] --> addr:0 l3id:20021 b_stid:0 layer_id:50010180
P[ 1] --> facility:FAC_NONE out_facility:FAC_NONE
P[ 1] --> bc_state:BCHAN_CLEANED
P[ 1] --> hangup
P[ 1] * IND : HANGUP pid:34 ctx:isdn-pstn dad:700001 oad:89114002525 State:EXTCANTMATCH
P[ 1] --> l3id:20021
P[ 1] --> cause:16
P[ 1] --> out_cause:16
P[ 1] --> state:EXTCANTMATCH
P[ 1] --> Channel: mISDN/1-1 hanguped new state:CLEANING
P[ 1] handle_frm: frm->addr:42000103 frm->prim:3f182
P[ 1] --> lib: RELEASE_CR Ind with l3id:20021
P[ 1] --> lib: CLEANING UP l3id: 20021
P[ 1] $$$ CLEANUP CALLED pid:34
В конфиге misdn.conf в разделе [PORT1] не активируется bridging: yes
Mar 6 13:10:03 WARNING[24699]: misdn_config.c:650 _build_port_config: misdn.conf: "bridging=yes" (section: default) invalid or out of range. Please edit your misdn.conf and then do a "misdn reload".
localhost*CLI> misdn show config
Misdn General-Config:
-> Version: chan_misdn-0.3.0
-> misdn_init: /etc/misdn-init.conf -> debug: 4
-> tracefile: /var/log/asterisk/misdn.log -> bridging: no
-> stop_tone_after_first_digit: yes -> append_digits2exten: yes
-> dynamic_crypt: no -> crypt_prefix: **
-> crypt_keys: test,muh -> ntdebugflags: 0
-> ntdebugfile: /var/log/misdn-nt.log
[PORT 1]
-> name: isdn -> allowed_bearers: all
-> far_alerting: yes -> rxgain: 0
-> txgain: 0 -> te_choose_channel: no
-> pmp_l1_check: yes -> reject_cause: 21
-> block_on_alarm: no -> hdlc: no
-> context: isdn-pstn -> language: en
-> musicclass: default -> callerid:
-> method: standard -> dialplan: 0
-> localdialplan: 0 -> cpndialplan: 0
-> nationalprefix: 0 -> internationalprefix: 00
-> presentation: -1 -> screen: -1
-> always_immediate: no -> nodialtone: no
-> immediate: no -> senddtmf: no
-> hold_allowed: no -> early_bconnect: yes
-> incoming_early_audio: no -> echocancel: 0
-> name: isdn -> need_more_infos: no
-> nttimeout: no -> jitterbuffer: 4000
-> jitterbuffer_upper_threshold: 0 -> callgroup:
-> pickupgroup: -> msns: *
-> ptp: no
localhost*CLI>
| Цитата: |
| В конфиге misdn.conf в разделе [PORT1] не активируется bridging: yes |
| Цитата: | ||
| WARNING[24699]: misdn_config.c:650 _build_port_config: misdn.conf: "bridging=yes" (section: default) invalid or out of range. Please edit your misdn.conf |
| Код: |
| Не в той секции прописано bridging=yes (section: default), должно быть в general. Покажи вывод sip show peer 213 |
Последний раз редактировалось: Ded (Чт Мар 06, 2008 12:45)
exten => _X,1,Dial(SIP/213),
делать
exten => _X,1,Playback(beep),
Ситуация не улучшается.
localhost*CLI> sip show peer 213
* Name : 213
Secret :
MD5Secret :
Context : from_office_new
Subscr.Cont. : blf
Language : ru
Accountcode : office_user
AMA flags : Unknown
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Mailbox :
VM Extension : asterisk
LastMsgsSent : 32767/65535
Call limit : 0
Dynamic : Yes
Callerid : "Alex"
Expire : 3575
Insecure : no
Nat : RFC3581
ACL : No
CanReinvite : Yes
PromiscRedir : No
User=Phone : No
Trust RPID : No
Send RPID : No
DTMFmode : rfc2833
LastMsg : 0
ToHost :
Addr->IP : 192.168.13.157 Port 5060
Defaddr->IP : 0.0.0.0 Port 5060
Def. Username: 213
SIP Options : (none)
Codecs : 0x8000e (gsm|ulaw|alaw|h263)
Codec Order : (none)
Status : Unmonitored
Useragent : Linksys/SPA942-4.1.18
Reg. Contact : sip:213@192.168.13.157:5060
| Цитата: |
| Codecs : 0x8000e (gsm|ulaw|alaw|h263) Codec Order : (none) |
Это плохо. Пропиши alaw|ulaw чтобы видны были в Codec Order, возможно, канал закрывает не открыв из-за этого bearer incompatible.
И поставь Nat Yes (Always) Вместо: RFC3581
У тебя Линксис 192.168.13.157 относительно Астериска за НАТом? Если нет, то Nat=no
Если без него, то сделай
| Код: |
| exten => 700001,1,Playback(демо), или exten => s,1,Playback(demo), |
exten => 700001,1,Playback(демо) - на это ошибок нет , просто дисконект.
Решил поставить тестовую машину и продложить решать вопрос на ней, а то сейчас на рабочей системе...дергать болезнено, народ начал бухтит.
fc6, Asterisk-1.4.18, Zaptel-1.4.9.2, конфиги такие же.
Ded, спасибо!