Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

FreePBX i Grandstream HT503 problem Outbound

[es] :: VoIP :: FreePBX i Grandstream HT503 problem Outbound

[ Pregleda: 2165 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

dragansar
Sarajevo

Član broj: 84903
Poruke: 612
..able.dyn.broadband.blic.net.

Sajt: https://nf-tel.com


+22 Profil

icon FreePBX i Grandstream HT503 problem Outbound26.04.2018. u 12:50 - pre 72 meseci
Pozdrav svima koji citaju :) Pokusavam da podesim Grandstream HT503 kao gateway na FreePBX IP Centrali, pa sam naisao na određene probleme :/ predpostavaljam da ima neko iskusan da pomogne i da neki hint :D Prvi put podesavam sa gateway-om pa moguce da sam napravio i neku glupu gresku, napisacu sta sam uradio tacno i sta mi predstavlja problem.
Inace sve sam podesavao kao na upustvu sa :FreePBX WIKI
Evo seme kao na slici:

*Fiksna linija koja se zavrsava na Cable modemu je spojena sa FXO portom na HT530
*na FreePBX je kreirana SIP ekstenzija i podesena i na HT503 po upustvu...regularno se vidi da je konektovana kao Chan SIP peers na centrali

Trunk podesen kao na upustvu:

Outgoing:
type=peer
authname=05793****
secret=sifra ekstenzije na FreePBX-u
host=192.168.77.2
port=5062
disallow=all
allow=ulaw
dtmfmode=rfc2833
canreinvite=no
context=internal-phones
Inbound Routes podesen kao u upustvu:
[img]https://ibb.co/joJAjH[/img]
Kada sa zovem sa mobilnog ovaj fiksni broj 05793**** uredno mi zvoni ekstenzija koju sam i definisao tj 202
Outbound Routees podesena kao u upustvu:

E sad problem koji imam je kada ja sa lokala pozovem bilo koji broj ne mogu da izađem dalje!
Sad predpostavljam da bi problem mogao biti u podesavanjima Outbound rute, ovde je postavljeno Optional Destination on Congestion na "Normal Congestion"
Predpostavljam da kada se obavi poziv sa FreePBX centrale da ona mora prvo da pozove sip ekstenziju 05793**** da dobije ton (tj kao kad se podigne slusalica na obicnoj liniji pa da se onda pozove broj) POkusao sam jos npr da pozovem sa IP TEL u mrezi ekstenziju 05793**** i dobijem uretno ton kao kad podignems slusalicu...pa bi onda trebalo da otkucam broj...
Jos jedna stvar koja bi mozda mogla biti problem je trunk nije dobro podesen...ne znam jel ovaj peer treba da bude u statusu "Unmonitored"

Probao sam razne varijante ali nikako ne uspjevam da "ubodem" ispravno podesavanje u ovakvoj varijanti da mogu normalno obavljati vanjske pozive sa IP Telefona kroz ovu fiksnu analognu liniju kroz ovaj Gateway, pa molim za pomoc :) ili neki hint sta bi trebalo uraditi.
Vidim da ima jos razlicitih varijanti na koji se ovo moze namjestiti pa sad ne znam jesam li na pravom putu :/











Šaka
 
Odgovor na temu

valjan
Janko Valencik
Software Deployer
Schneider Electric
Novi Sad

Član broj: 158605
Poruke: 3531
*.mediaworksit.net.



+553 Profil

icon Re: FreePBX i Grandstream HT503 problem Outbound26.04.2018. u 14:42 - pre 72 meseci
Za taj unmonitored status dovoljno je da staviš "qualify=yes" u podešavanja (ako druga strana to podržava) i biće isti kao i oni iznad njega. Ovo za problem sa odlazom najbolje da otvoriš asterisk cli, povećaš verbosity i pratiš šta ti izbacuje kada pozoveš neki broj, pa će i tebi i nama biti jednostavnije da otkrijemo uzrok.
 
Odgovor na temu

dragansar
Sarajevo

Član broj: 84903
Poruke: 612
..able.dyn.broadband.blic.net.

Sajt: https://nf-tel.com


+22 Profil

icon Re: FreePBX i Grandstream HT503 problem Outbound27.04.2018. u 08:38 - pre 72 meseci
@valjan hvala na odgovoru :) qualify=yes je odradio sta je trebao.

Kada pokusam sa neke od SIP ekstenzija da pozovem vanjski fiksni broj dobijem ton zauzeca (od freePBX-sa) i ovaj log na asterisku

Code:
[2018-04-27 09:21:32] WARNING[1934][C-00000077]: chan_sip.c:23250 handle_response_invite: Received response: "Forbidden" from '<sip:05793****@192.168.77.250>;tag=as645e559d'
[2018-04-27 09:21:32] WARNING[303][C-00000077]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short
[2018-04-27 09:21:32] WARNING[303][C-00000077]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short
[2018-04-27 09:21:32] WARNING[303][C-00000077]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short
[2018-04-27 09:21:32] WARNING[303][C-00000077]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short
[2018-04-27 09:21:32] WARNING[303][C-00000077]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short
[2018-04-27 09:21:32] WARNING[303][C-00000077]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short
[2018-04-27 09:21:32] WARNING[303][C-00000077]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short
[2018-04-27 09:21:32] WARNING[303][C-00000077]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short
[2018-04-27 09:21:34] WARNING[303][C-00000077]: file.c:701 ast_openstream_full: File please-try-call-later does not exist in any format
[2018-04-27 09:21:34] WARNING[303][C-00000077]: file.c:1017 ast_streamfile: Unable to open please-try-call-later (format (ulaw)): No such file or directory
[2018-04-27 09:21:34] WARNING[303][C-00000077]: app_playback.c:484 playback_exec: ast_streamfile failed on SIP/202-000000b0 for all-circuits-busy-now&please-try-call-later, noanswer
[2018-04-27 09:21:34] WARNING[303][C-00000077]: channel.c:4861 ast_prod: Prodding channel 'SIP/202-000000b0' failed


Šaka
 
Odgovor na temu

valjan
Janko Valencik
Software Deployer
Schneider Electric
Novi Sad

Član broj: 158605
Poruke: 3531
*.mediaworksit.net.



+553 Profil

icon Re: FreePBX i Grandstream HT503 problem Outbound27.04.2018. u 10:33 - pre 72 meseci
Onaj prvi red iz loga ti je ključan, to gejtvej ne dozvoljava da napraviš poziv na način na koji si pokušao, odnosno on očekuje neki callerid ili nešto slično kao vrstu identifikacije, ti mu ga ne pošalješ, i lepo ti srpski kaže "dalje nećeš proći"...
 
Odgovor na temu

dragansar
Sarajevo

Član broj: 84903
Poruke: 612
..able.dyn.broadband.blic.net.

Sajt: https://nf-tel.com


+22 Profil

icon Re: FreePBX i Grandstream HT503 problem Outbound05.05.2018. u 10:23 - pre 71 meseci
Isao sam u pogresnom smjeru sa konfiguracijom...
Sad imam sledecu situaciju, kada pokusam da okrenem bilo koji broj sa lokala, tj neke ekstenzije dobijem ton sa fiksne linije, tj kao da je slusalica podignuta.

U osnovnom log-u dobijem samo
Code:
WARNING[23517][C-000000dc]: res_rtp_asterisk.c:4300 ast_rtp_read: RTP Read too short


Dial Patterns za Outbound Routes:


PEER Details na Outgoing strani:
Code:
host=192.168.77.2
type=peer
canreinvite=no
insecure=very
dtmfmode=rfc2833
port=5062
qualify=yes


Gdje bi sad logicno bilo traziti problem?

Evo i kompletan log priliko poziva

Code:
-- Executing [9057931931@from-internal:1] Macro("SIP/202-00000183", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/202-00000183", "TOUCH_MONITOR=1525520838.415") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/202-00000183", "AMPUSER=202") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/202-00000183", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/202-00000183", "1?Set(REALCALLERIDNUM=202)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/202-00000183", "AMPUSER=202") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/202-00000183", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/202-00000183", "AMPUSERCIDNAME=DRAGAN") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/202-00000183", "0?report") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/202-00000183", "AMPUSERCID=202") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/202-00000183", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/202-00000183", "CALLERID(all)="DRAGAN" <202>") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/202-00000183", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("SIP/202-00000183", "1?Set(GROUP(concurrency_limit)=202)") in new stack
    -- Executing [s@macro-user-callerid:14] ExecIf("SIP/202-00000183", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/202-00000183", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,29)
    -- Executing [s@macro-user-callerid:29] Set("SIP/202-00000183", "CALLERID(number)=202") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/202-00000183", "CALLERID(name)=DRAGAN") in new stack
    -- Executing [s@macro-user-callerid:31] GotoIf("SIP/202-00000183", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/202-00000183", "CDR(cnam)=DRAGAN") in new stack
    -- Executing [s@macro-user-callerid:33] Set("SIP/202-00000183", "CDR(cnum)=202") in new stack
    -- Executing [s@macro-user-callerid:34] Set("SIP/202-00000183", "CHANNEL(language)=en") in new stack
    -- Executing [9057931931@from-internal:2] Gosub("SIP/202-00000183", "sub-record-check,s,1(out,9057931931,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/202-00000183", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/202-00000183", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/202-00000183", "NOW=1525520838") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/202-00000183", "__DAY=05") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/202-00000183", "__MONTH=05") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/202-00000183", "__YEAR=2018") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/202-00000183", "__TIMESTR=20180505-134718") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/202-00000183", "__FROMEXTEN=202") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/202-00000183", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/202-00000183", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/202-00000183", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/202-00000183", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("SIP/202-00000183", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("SIP/202-00000183", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("SIP/202-00000183", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("SIP/202-00000183", "Outbound Recording Check from 202 to 9057931931") in new stack
    -- Executing [out@sub-record-check:2] Set("SIP/202-00000183", "RECMODE=dontcare") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("SIP/202-00000183", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("SIP/202-00000183", "recordcheck,1(dontcare,out,9057931931)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/202-00000183", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/202-00000183", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/202-00000183", "") in new stack
    -- Executing [out@sub-record-check:8] Return("SIP/202-00000183", "") in new stack
    -- Executing [9057931931@from-internal:3] ExecIf("SIP/202-00000183", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [9057931931@from-internal:4] Set("SIP/202-00000183", "MOHCLASS=default") in new stack
    -- Executing [9057931931@from-internal:5] Set("SIP/202-00000183", "_NODEST=") in new stack
    -- Executing [9057931931@from-internal:6] Macro("SIP/202-00000183", "dialout-trunk,1,057931931,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/202-00000183", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/202-00000183", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/202-00000183", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/202-00000183", "DIAL_NUMBER=057931931") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/202-00000183", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/202-00000183", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/202-00000183", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/202-00000183", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/202-00000183", "DIAL_TRUNK_OPTIONS=TtXx") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/202-00000183", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/202-00000183", "0?Set(CALLERPRES(name-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/202-00000183", "0?Set(CALLERPRES(num-pres)=)") in new stack
    -- Executing [s@macro-outbound-callerid:3] ExecIf("SIP/202-00000183", "0?Set(REALCALLERIDNUM=202)") in new stack
    -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/202-00000183", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,7)
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/202-00000183", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/202-00000183", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] Set("SIP/202-00000183", "TRUNKOUTCID=057931090") in new stack
    -- Executing [s@macro-outbound-callerid:10] GotoIf("SIP/202-00000183", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,15)
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/202-00000183", "1?Set(CALLERID(all)=057931090)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/202-00000183", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/202-00000183", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:18] ExecIf("SIP/202-00000183", "0?Set(CALLERPRES(name-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:19] ExecIf("SIP/202-00000183", "0?Set(CALLERPRES(num-pres)=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:20] Set("SIP/202-00000183", "CDR(outbound_cnum)=057931090") in new stack
    -- Executing [s@macro-outbound-callerid:21] Set("SIP/202-00000183", "CDR(outbound_cnam)=") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/202-00000183", "0?sub-flp-1,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/202-00000183", "OUTNUM=057931931") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/202-00000183", "custom=SIP/Claro_1") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/202-00000183", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)TtXx)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/202-00000183", "0?Set(DIAL_TRUNK_OPTIONS=TtXxM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/202-00000183", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/202-00000183", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/202-00000183", "0?skipcrm") in new stack
    -- Executing [s@macro-dialout-trunk:19] Set("SIP/202-00000183", "__CRM_DIRECTION=OUTBOUND") in new stack
    -- Executing [s@macro-dialout-trunk:20] Set("SIP/202-00000183", "__CRM_DESTINATION=057931931") in new stack
    -- Executing [s@macro-dialout-trunk:21] Set("SIP/202-00000183", "__CRM_SOURCE=202") in new stack
    -- Executing [s@macro-dialout-trunk:22] AGI("SIP/202-00000183", "sangomacrm.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
    -- <SIP/202-00000183>AGI Script sangomacrm.agi completed, returning 0
    -- Executing [s@macro-dialout-trunk:23] Set("SIP/202-00000183", "CHANNEL(hangup_handler_push)=crm-hangup,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:24] NoOp("SIP/202-00000183", "CRM Finished") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("SIP/202-00000183", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:26] ExecIf("SIP/202-00000183", "1?Set(CONNECTEDLINE(num,i)=057931931)") in new stack
    -- Executing [s@macro-dialout-trunk:27] ExecIf("SIP/202-00000183", "1?Set(CONNECTEDLINE(name,i)=CID:057931090)") in new stack
    -- Executing [s@macro-dialout-trunk:28] ExecIf("SIP/202-00000183", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden)057931090)") in new stack
    -- Executing [s@macro-dialout-trunk:29] GotoIf("SIP/202-00000183", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:30] Dial("SIP/202-00000183", "SIP/Claro_1/057931931,300,TtXx") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/Claro_1/057931931
    -- SIP/Claro_1-00000184 is ringing


[Ovu poruku je menjao dragansar dana 05.05.2018. u 13:50 GMT+1]
Šaka
 
Odgovor na temu

dragansar
Sarajevo

Član broj: 84903
Poruke: 612
*.static.corp.blic.net.

Sajt: https://nf-tel.com


+22 Profil

icon Re: FreePBX i Grandstream HT503 problem Outbound25.02.2019. u 22:20 - pre 61 meseci
Inace problem je bio u firmware-u na Grandstream HT503...ako nekome zatreba nek prvo to uradi :)
Šaka
 
Odgovor na temu

[es] :: VoIP :: FreePBX i Grandstream HT503 problem Outbound

[ Pregleda: 2165 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.