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

Elastix+ Multifon

не могу настроить входящие
Сообщений: 4

Elastix+ Multifon

Прошу помощи в настройке мультифона. У меня стоит Elastix (Asterisk 1.6.2.10). Никак не получается настроить входящие, исходящие заработали с самого начала. Сипнетовский транк работает на исходящие и входящие без проблем.
Через freepbx создаю транк:
В Outgoing Settings прописываю:
Транк наме: sip79307000747
PEER Details:
type=friend
host=sbc.megafon.ru
username=79307000747
secret=QAZ1qaz
insecure=invite
fromdomain=multifon.ru
fromuser=79307000747
disallow=all
allow=g729,ulaw
qualify=yes
transport=tcp
nat=yes
dtmfmode=inband
context=from-trunk
canreinvite=no

Incoming Settings (не знаю надо ли вообще трогать, на всех форумах про этот пункт вообще не пишут- пробывал оставлять пустым все равно не работает)
ВАРИАНТ 1:
type=friend
host=sbc.megafon.ru
transport=tcp
nat=yes
dtmfmode=inband
context=from-trunk

В ЭТОМ СЛУЧАЕ при звонке астерикс отбивается (то есть по телефону звонящему ничего не говорят и он сразу скидывается), а в астериксе (asterisk -vvvvvr) пишет след строки:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5

И все.

ВТОРОЙ ВАРИАНТ:
Решил попробывать так:
type=friend
host=sbc.megafon.ru
username=79307000747
secret=QAZ1qaz
insecure=invite
fromdomain=multifon.ru
fromuser=79307000747
disallow=all
allow=g729,ulaw
qualify=yes
transport=tcp
nat=yes
dtmfmode=inband
context=from-trunk
canreinvite=no

В этом случае в телефоне тотже эффект, но строк в астериксе больше (не пойму, что он говорит)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [79307000747@from-trunk:1] Set("SIP/79307000747in-0000000c", "__FROM_DID=79307000747") in new stack
-- Executing [79307000747@from-trunk:2] Gosub("SIP/79307000747in-0000000c", "app-blacklist-check,s,1") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/79307000747in-0000000c", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/79307000747in-0000000c", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/79307000747in-0000000c", "") in new stack
-- Executing [79307000747@from-trunk:3] ExecIf("SIP/79307000747in-0000000c", "1 ?Set(CALLERID(name)=79159355404)") in new stack
-- Executing [79307000747@from-trunk:4] Set("SIP/79307000747in-0000000c", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [79307000747@from-trunk:5] Set("SIP/79307000747in-0000000c", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [79307000747@from-trunk:6] Goto("SIP/79307000747in-0000000c", "from-did-direct,300,1") in new stack
-- Goto (from-did-direct,300,1)
-- Executing [300@from-did-direct:1] Macro("SIP/79307000747in-0000000c", "exten-vm,novm,300") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/79307000747in-0000000c", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/79307000747in-0000000c", "AMPUSER=79159355404") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/79307000747in-0000000c", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/79307000747in-0000000c", "1?Set(REALCALLERIDNUM=79159355404)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/79307000747in-0000000c", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/79307000747in-0000000c", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/79307000747in-0000000c", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/79307000747in-0000000c", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/79307000747in-0000000c", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/79307000747in-0000000c", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/79307000747in-0000000c", "Using CallerID "79159355404" <79159355404>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/79307000747in-0000000c", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/79307000747in-0000000c", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/79307000747in-0000000c", "__EXTTOCALL=300") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/79307000747in-0000000c", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/79307000747in-0000000c", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/79307000747in-0000000c", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/79307000747in-0000000c", "record-enable,300,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/79307000747in-0000000c", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/79307000747in-0000000c", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/79307000747in-0000000c", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,15)
-- Executing [s@macro-record-enable:15] GotoIf("SIP/79307000747in-0000000c", "1?IN") in new stack
-- Goto (macro-record-enable,s,20)
-- Executing [s@macro-record-enable:20] ExecIf("SIP/79307000747in-0000000c", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/79307000747in-0000000c", "dial-one,,tr,300") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/79307000747in-0000000c", "DEXTEN=300") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/79307000747in-0000000c", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/79307000747in-0000000c", "0?screen,1") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/79307000747in-0000000c", "0?cf,1") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/79307000747in-0000000c", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/79307000747in-0000000c", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/79307000747in-0000000c", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/79307000747in-0000000c", "EXTHASCW=") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/79307000747in-0000000c", "1?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,12)
-- Executing [s@macro-dial-one:12] GotoIf("SIP/79307000747in-0000000c", "0?docfu:skip3") in new stack
-- Goto (macro-dial-one,s,16)
-- Executing [s@macro-dial-one:16] GotoIf("SIP/79307000747in-0000000c", "1?next2:continue") in new stack
-- Goto (macro-dial-one,s,17)
-- Executing [s@macro-dial-one:17] GotoIf("SIP/79307000747in-0000000c", "1?continue") in new stack
-- Goto (macro-dial-one,s,25)
-- Executing [s@macro-dial-one:25] GotoIf("SIP/79307000747in-0000000c", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("SIP/79307000747in-0000000c", "1?dstring,1:dlocal,1") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/79307000747in-0000000c", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/79307000747in-0000000c", "DEVICES=300") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/79307000747in-0000000c", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/79307000747in-0000000c", "0?Set(DEVICES=00)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/79307000747in-0000000c", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/79307000747in-0000000c", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/79307000747in-0000000c", "THISDIAL=SIP/300") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/79307000747in-0000000c", "1?zap2dahdi,1") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/79307000747in-0000000c", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/79307000747in-0000000c", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/79307000747in-0000000c", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/79307000747in-0000000c", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/79307000747in-0000000c", "THISPART2=SIP/300") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/79307000747in-0000000c", "0?Set(THISPART2=DAHDI/300)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/79307000747in-0000000c", "NEWDIAL=SIP/300&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/79307000747in-0000000c", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/79307000747in-0000000c", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/79307000747in-0000000c", "THISDIAL=SIP/300") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/79307000747in-0000000c", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("SIP/79307000747in-0000000c", "DSTRING=SIP/300&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("SIP/79307000747in-0000000c", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("SIP/79307000747in-0000000c", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("SIP/79307000747in-0000000c", "DSTRING=SIP/300") in new stack
-- Executing [dstring@macro-dial-one:13] Return("SIP/79307000747in-0000000c", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("SIP/79307000747in-0000000c", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/79307000747in-0000000c", "1?skiptrace") in new stack
-- Goto (macro-dial-one,s,30)
-- Executing [s@macro-dial-one:30] Set("SIP/79307000747in-0000000c", "D_OPTIONS=tr") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("SIP/79307000747in-0000000c", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("SIP/79307000747in-0000000c", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/79307000747in-0000000c", "0?SetMusicOnHold()") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("SIP/79307000747in-0000000c", "0?qwait,1") in new stack
-- Executing [s@macro-dial-one:35] Set("SIP/79307000747in-0000000c", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("SIP/79307000747in-0000000c", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] Dial("SIP/79307000747in-0000000c", "SIP/300,,tr") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Couldn't call 300
== Everyone is busy/congested at this time (0:0/0/0)
-- Executing [s@macro-dial-one:38] ExecIf("SIP/79307000747in-0000000c", "0?Set(DIALSTATUS=)") in new stack
-- Executing [s@macro-dial-one:39] GosubIf("SIP/79307000747in-0000000c", "0?s-CHANUNAVAIL,1") in new stack
-- Executing [s@macro-dial-one:40] MacroExit("SIP/79307000747in-0000000c", "") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/79307000747in-0000000c", "0?exit,return") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/79307000747in-0000000c", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/79307000747in-0000000c", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/79307000747in-0000000c", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/79307000747in-0000000c", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/79307000747in-0000000c", "Voicemail is 'novm'") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/79307000747in-0000000c", "1?s-CHANUNAVAIL,1") in new stack
-- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("SIP/79307000747in-0000000c", "IVR_RETVM: IVR_CONTEXT: ") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("SIP/79307000747in-0000000c", "0?exit,1") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("SIP/79307000747in-0000000c", "congestion") in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 3) exited non-zero on 'SIP/79307000747in-0000000c' in macro 'exten-vm'
== Spawn extension (from-did-direct, 300, 1) exited non-zero on 'SIP/79307000747in-0000000c'
-- Executing [h@from-did-direct:1] Macro("SIP/79307000747in-0000000c", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/79307000747in-0000000c", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/79307000747in-0000000c", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/79307000747in-0000000c", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/79307000747in-0000000c", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/79307000747in-0000000c", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/79307000747in-0000000c", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/79307000747in-0000000c' in macro 'hangupcall'
== Spawn extension (from-did-direct, h, 1) exited non-zero on 'SIP/79307000747in-0000000c'
2010-12-26 15:53

Откуда: Красноярск
Сообщений: 171

Re: Elastix+ Multifon

В строке регистрации что?
*********************************************
2010-12-26 18:53

Откуда: Красноярск
Сообщений: 171

Re: Elastix+ Multifon

PEER Details:
disallow=all
allow=g729
context=from-trunk
type=peer
host=multifon.ru
fromdomain=multifon.ru
insecure=port,invite
username=7923*******
fromuser=7923*******
secret=password
nat=no
canreinvite=no

Register string:
7923*******:password@multifon.ru/7923*******

В Inbound Routes создал входящий маршрут с DID=7923*******
С такими настройками все работает
*********************************************
2010-12-26 18:58

Сообщений: 4

Re: Elastix+ Multifon

tcp://79307000747@multifon.ru:ПАРОЛЬ:79307000747@sbc.megafon.ru/79307000747 была
В Inbound Routes создал входящий маршрут с DID=7923*******
С такими настройками все работает ТАК жЕ ПРИСУТСТВОВАЛО

2010-12-26 20:01

Сообщений: 4

Re: Elastix+ Multifon

disallow=all
allow=g729
context=from-trunk
type=friend
host=multifon.ru
fromdomain=multifon.ru
insecure=port,invite
username=79307000747
fromuser=79307000747
secret=ПАРОЛЬ
nat=yes
canreinvite=no


поставил эти настройки и соответ рег строку 79307000747@multifon.ru:ПАРОЛЬ:79307000747@sbc.megafon.ru/79307000747

не работает: исходящие не работают (с моими работают), входящие частично принимаются- у звонившего на трубке стабильно вызов 3 секунды и отрубается (звуков никаких нет) астерикс пишет следующие (как будто я нажимаю кнопку на внутреннем номере сбросить- я так понимаю):
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [79307000747@from-trunk:1] Set("SIP/sip79307000747-00000017", "__FROM_DID=79307000747") in new stack
-- Executing [79307000747@from-trunk:2] NoOp("SIP/sip79307000747-00000017", "Received an unknown call with DID set to 79307000747") in new stack
-- Executing [79307000747@from-trunk:3] Goto("SIP/sip79307000747-00000017", "s,a2") in new stack
-- Goto (from-trunk,s,2)
-- Executing [s@from-trunk:2] Answer("SIP/sip79307000747-00000017", "") in new stack
-- Executing [s@from-trunk:3] Wait("SIP/sip79307000747-00000017", "2") in new stack
-- Executing [s@from-trunk:4] Playback("SIP/sip79307000747-00000017", "ss-noservice") in new stack
-- Executing [s@from-trunk:5] SayAlpha("SIP/sip79307000747-00000017", "79307000747") in new stack
== Spawn extension (from-trunk, s, 5) exited non-zero on 'SIP/sip79307000747-00000017'
-- Executing [h@from-trunk:1] Macro("SIP/sip79307000747-00000017", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/sip79307000747-00000017", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] NoOp("SIP/sip79307000747-00000017", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/sip79307000747-00000017", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/sip79307000747-00000017", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,10)
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/sip79307000747-00000017", "1?theend") in new stack
-- Goto (macro-hangupcall,s,12)
-- Executing [s@macro-hangupcall:12] Hangup("SIP/sip79307000747-00000017", "") in new stack
== Spawn extension (macro-hangupcall, s, 12) exited non-zero on 'SIP/sip79307000747-00000017' in macro 'hangupcall'
== Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/sip79307000747-00000017'

А может регион симки значение имеет?
2010-12-26 20:43

Сообщений: 4

Re: Elastix+ Multifon

МОИ настройки внутреннего номера- может там несоответствие (Inbound Routes отсылает на 300 номер)

300

secret: XXXX
dtmfmode:rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
callgroup=10
pickupgroup=10
disallow=all
allow=alaw&ulaw&gsm&g729
dial=SIP/300


больше ничего не менял
sipnet на него же работает

2010-12-26 20:53

Добавить страницу в закладки:  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