Вход | Регистрация
Вы здесь: Главная / Форум / Главный форум по Asterisk / TrixBox, Elastix, FreePbx / FreePBX проблема с дозвоном между двумя SIP

FreePBX проблема с дозвоном между двумя SIP

1 2>
Сообщений: 10

FreePBX проблема с дозвоном между двумя SIP

OS CentOS 5.4

[root@asterisk ~]# rpm -qa | grep asterisk
asterisk16-core-1.6.2.7-1_centos5
asterisk-sounds-extra-en-gsm-1.4.9-1_centos5
asterisk16-addons-ooh323-1.6.2.1-1_centos5
asterisk-sounds-core-en-gsm-1.4.15-1_centos5
asterisk16-voicemail-1.6.2.7-1_centos5
asterisk16-configs-1.6.2.7-1_centos5
asterisk16-1.6.2.7-1_centos5
asterisk16-addons-core-1.6.2.1-1_centos5
asterisk16-addons-mysql-1.6.2.1-1_centos5
asterisk16-addons-1.6.2.1-1_centos5
asterisk16-doc-1.6.2.7-1_centos5
asterisk16-dahdi-1.6.2.7-1_centos5
asterisk16-addons-bluetooth-1.6.2.1-1_centos5
[root@asterisk ~]# rpm -qa | grep freepbx
freepbx-2.7.0-2_centos5

У FreePBX обновлены модули до последних версий


Настроено 2 SIP номера,

SIP 019 разрешен только g723.1 кодек
disallow = all
allow = g723.1


и SIP 204 у него все кодеки разрешены




Нет дозвона с SIP204 на 019
в логах пишет следующее
Connected to Asterisk 1.6.2.7 currently running on asterisk (pid = 2478)
Verbosity is at least 12
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [019@from-internal:1] Macro("SIP/204-00000238", "exten-vm,novm,019") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/204-00000238", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/204-00000238", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/204-00000238", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/204-00000238", "1?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/204-00000238", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/204-00000238", "AMPUSERCIDNAME=Afanasiev Serg") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/204-00000238", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/204-00000238", "AMPUSERCID=204") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/204-00000238", "CALLERID(all)="Afanasiev Serg" <204>") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/204-00000238", "0?continue") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/204-00000238", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/204-00000238", "1?continue") in new stack
-- Goto (macro-user-callerid,s,18)
-- Executing [s@macro-user-callerid:18] NoOp("SIP/204-00000238", "Using CallerID "Afanasiev Serg" <204>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/204-00000238", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/204-00000238", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/204-00000238", "EXTTOCALL=019") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/204-00000238", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/204-00000238", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/204-00000238", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/204-00000238", "record-enable,019,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/204-00000238", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/204-00000238", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/204-00000238", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/204-00000238", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/204-00000238", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/204-00000238", "dial,"",tr,019") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/204-00000238", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/204-00000238", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is 'Afanasiev Serg' number is '204'
> dialparties.agi: USE_CONFIRMATION: 'FALSE'
> dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 019 to extension map
-- dialparties.agi: Extension 019 cf is disabled
-- dialparties.agi: Extension 019 do not disturb is disabled
> dialparties.agi: extnum 019 has: cw: 1; hascfb: 0 [] hascfu: 0 []
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
-- dialparties.agi: dbset CALLTRACE/019 to 204
-- dialparties.agi: Filtered ARG3: 019
-- <SIP/204-00000238>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/204-00000238", "SIP/019,"",tr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Couldn't call 019
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dial:8] Set("SIP/204-00000238", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-dial:9] GosubIf("SIP/204-00000238", "0?CHANUNAVAIL,1") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/204-00000238", "0?exit,return") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/204-00000238", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/204-00000238", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/204-00000238", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/204-00000238", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/204-00000238", "Voicemail is 'novm'") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/204-00000238", "1?s-CHANUNAVAIL,1") in new stack
-- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("SIP/204-00000238", "IVR_RETVM: IVR_CONTEXT: ") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("SIP/204-00000238", "0?exit,1") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("SIP/204-00000238", "congestion") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:4] Congestion("SIP/204-00000238", "10") in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on 'SIP/204-00000238' in macro 'exten-vm'
== Spawn extension (from-internal, 019, 1) exited non-zero on 'SIP/204-00000238'
-- Executing [h@from-internal:1] Macro("SIP/204-00000238", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/204-00000238", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/204-00000238", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/204-00000238", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/204-00000238", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/204-00000238' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/204-00000238'


В общем если сделать у обоих SIP кодеки g723.1 или разрешить все кодеки, то все нормально звонит.

Но мне нужно что бы 019 работал только на g723.1 так как канал узкий и в данном случае на этом кодеке работает лучше всего,
а 204 работал со всеми кодеками.


Из-за чего это может быть?
2010-10-19 16:59

Откуда: AST
Сообщений: 280

Re: FreePBX проблема с дозвоном между двумя SIP

core show translation
там есть 723 ?
2010-10-19 19:30

Сообщений: 10

Re: FreePBX проблема с дозвоном между двумя SIP

asterisk*CLI> core show translation
Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)

g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722 siren7 siren14 slin16
g723 - - - - - - - - - - - - - - - -
gsm - - 1001 1001 2000 1001 1000 2999 - - - 2000 2000 - - 3000
ulaw - 2001 - 1 1001 2 1 2000 - - - 1001 1001 - - 2001
alaw - 2001 1 - 1001 2 1 2000 - - - 1001 1001 - - 2001
g726aal2 - 3000 1001 1001 - 1001 1000 2999 - - - 2000 2000 - - 3000
adpcm - 2001 2 2 1001 - 1 2000 - - - 1001 1001 - - 2001
slin - 2000 1 1 1000 1 - 1999 - - - 1000 1000 - - 2000
lpc10 - 4000 2001 2001 3000 2001 2000 - - - - 3000 3000 - - 4000
g729 - - - - - - - - - - - - - - - -
speex - - - - - - - - - - - - - - - -
ilbc - - - - - - - - - - - - - - - -
g726 - 3000 1001 1001 2000 1001 1000 2999 - - - - 2000 - - 3000
g722 - 2999 1000 1000 1999 1000 999 2998 - - - 1999 - - - 1000
siren7 - - - - - - - - - - - - - - - -
siren14 - - - - - - - - - - - - - - - -
slin16 - 3999 2000 2000 2999 2000 1999 3998 - - - 2999 1000 - - -
asterisk*CLI>
2010-10-20 09:19

Avatara of zzuz
Откуда: SPb
Сообщений: 1307

Re: FreePBX проблема с дозвоном между двумя SIP

Как говорится "нету ножек-нет варенья".
http://линия24.рф - Астериск и прочие бубны!
2010-10-20 11:19

Сообщений: 10

Re: FreePBX проблема с дозвоном между двумя SIP

И что это значит ?
2010-10-21 08:56

Avatara of zzuz
Откуда: SPb
Сообщений: 1307

Re: FreePBX проблема с дозвоном между двумя SIP

это значит
asterisk -rx 'module show like 723' | grep codec
http://линия24.рф - Астериск и прочие бубны!
2010-10-21 09:34

Сообщений: 10

Re: FreePBX проблема с дозвоном между двумя SIP

[root@asterisk /]# asterisk -rx 'module show like 723'
Module Description Use Count
format_g723.so G.723.1 Simple Timestamp File Format 0
1 modules loaded
Так и что это дает ?


Попробовал позвонить с 204 на 019 все так же, нет дозвона
2010-10-21 10:00

Сообщений: 21

Re: FreePBX проблема с дозвоном между двумя SIP

Конечно, пропиши кодек не g723.1, а g723
Available values

* all
* g723 - G.723.1
* gsm - GSM
* ulaw - u-Law
* alaw - a-Law
* g726 - G.726-32
* adpcm - ADPCM
* slin - SLIN
* lpc10 - LPC10
* g729 - G.729
* speex - SPEEX
* ilbc - ILBC
2010-10-21 10:08

Сообщений: 10

Re: FreePBX проблема с дозвоном между двумя SIP

asterisk*CLI> module show like 723
Module Description Use Count
format_g723.so G.723.1 Simple Timestamp File Format 0
1 modules loaded
на 019 сделал
disallow = all
allow = g723

на 204 все разрешены.

звоню с 204 на 019 тоже самое.
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [019@from-internal:1] Macro("SIP/204-00000248", "exten-vm,novm,019") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/204-00000248", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/204-00000248", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/204-00000248", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/204-00000248", "1?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/204-00000248", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/204-00000248", "AMPUSERCIDNAME=Afanasiev Serg") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/204-00000248", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/204-00000248", "AMPUSERCID=204") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/204-00000248", "CALLERID(all)="Afanasiev Serg" <204>") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/204-00000248", "0?continue") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/204-00000248", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/204-00000248", "1?continue") in new stack
-- Goto (macro-user-callerid,s,18)
-- Executing [s@macro-user-callerid:18] NoOp("SIP/204-00000248", "Using CallerID "Afanasiev Serg" <204>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/204-00000248", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/204-00000248", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/204-00000248", "EXTTOCALL=019") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/204-00000248", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/204-00000248", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/204-00000248", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/204-00000248", "record-enable,019,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/204-00000248", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/204-00000248", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/204-00000248", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/204-00000248", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/204-00000248", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/204-00000248", "dial,"",tr,019") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/204-00000248", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/204-00000248", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
dialparties.agi: Caller ID name is 'Afanasiev Serg' number is '204'
> dialparties.agi: USE_CONFIRMATION: 'FALSE'
> dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 019 to extension map
-- dialparties.agi: Extension 019 cf is disabled
-- dialparties.agi: Extension 019 do not disturb is disabled
> dialparties.agi: extnum 019 has: cw: 1; hascfb: 0 [] hascfu: 0 []
dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
-- dialparties.agi: dbset CALLTRACE/019 to 204
-- dialparties.agi: Filtered ARG3: 019
-- <SIP/204-00000248>AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/204-00000248", "SIP/019,"",tr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Couldn't call 019
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dial:8] Set("SIP/204-00000248", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-dial:9] GosubIf("SIP/204-00000248", "0?CHANUNAVAIL,1") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/204-00000248", "0?exit,return") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/204-00000248", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/204-00000248", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/204-00000248", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/204-00000248", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/204-00000248", "Voicemail is 'novm'") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/204-00000248", "1?s-CHANUNAVAIL,1") in new stack
-- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("SIP/204-00000248", "IVR_RETVM: IVR_CONTEXT: ") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("SIP/204-00000248", "0?exit,1") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("SIP/204-00000248", "congestion") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:4] Congestion("SIP/204-00000248", "10") in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on 'SIP/204-00000248' in macro 'exten-vm'
== Spawn extension (from-internal, 019, 1) exited non-zero on 'SIP/204-00000248'
-- Executing [h@from-internal:1] Macro("SIP/204-00000248", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/204-00000248", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/204-00000248", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/204-00000248", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/204-00000248", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/204-00000248' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/204-00000248'
2010-10-21 10:46

Сообщений: 21

Re: FreePBX проблема с дозвоном между двумя SIP

тогда sip set debug peer 204 и вперед
2010-10-21 10:56

1 2>
Добавить страницу в закладки:  Delicious Google Slashdot Yahoo Yandex.ru Reddit Digg Technorati Bobrdobr.ru Newsland.ru Smi2.ru Rumarkz.ru Vaau.ru Memori.ru Rucity.com Moemesto.ru News2.ru Mister-Wong.ru Myscoop.ru 100zakladok.ru