|
Italiano
English
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Modifica del file di configurazione jswitch.propertiesA servizio (Dexgate) arrestato, aprire con un qualunque elaboratore di testi il file jswitch.properties nella cartella: <Path d'installazione del DexgateMicro>\prop e cercare in esso il blocco relativo al provider Messagenet. Scommentare le righe di tale blocco (eliminando il carattere # di inizio riga) come mostrato di seguito: ## Trunk Provider Messagenet #channels.phone.jswitch.trunks.trunk-MESSAGENET.classname=it.tradesoft.tegate.channels.CorbaChannel.jswitch.trunks.sip.SipTrunk #channels.phone.jswitch.trunks.trunk-MESSAGENET.port=4002 #channels.phone.jswitch.trunks.trunk-MESSAGENET.public.address=**** #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.enable=yes #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.ttl=20 #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.address=stun.fwdnet.net #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.port=3478 #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.backup.address=**** #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.backup.port=3478 #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.backup2.address=**** #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.backup2.port=3478 #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.address.detector.enable=yes #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.address.detector.port=4101 #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.address.detector.ttl=20 #channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.enable=yes #channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.domain=sip.messagenet.it #channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.name=**** #channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.password=**** #channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.address=sip.messagenet.it #channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.port=5061 #channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.refresh=170 #channels.phone.jswitch.trunks.trunk-MESSAGENET.checkbusytable=no #channels.phone.jswitch.trunks.trunk-MESSAGENET.limbo.enable=no #channels.phone.jswitch.trunks.trunk-MESSAGENET.video.enable=no #channels.phone.jswitch.trunks.trunk-MESSAGENET.codecs.0.classname=it.tradesoft.tegate.rtp.codecs.gsm #channels.phone.jswitch.trunks.trunk-MESSAGENET.codecs.1.classname=it.tradesoft.tegate.rtp.codecs.alaw #channels.phone.jswitch.trunks.trunk-MESSAGENET.callernumber.default=**** #channels.phone.jswitch.trunks.trunk-MESSAGENET.sessionprogress.ignoring=yes #channels.phone.jswitch.trunks.trunk-MESSAGENET.sessionprogress.connect=yes #channels.phone.jswitch.trunks.trunk-MESSAGENET.response4xx.action=REMOTE_BUSY #channels.phone.jswitch.trunks.trunk-MESSAGENET.max.resources.enable=no #channels.phone.jswitch.trunks.trunk-MESSAGENET.max.resources.number=***** #channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.enable=yes #channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.min=***** #channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.max=***** A questo punto ipotizziamo che da Messagenet ci sia stato assegnato il seguente account:
Dovremo modificare le seguenti linee del blocco:
Le proprietà che seguono dovranno rimanere commentate in quanto il loro utilizzo e' opzionale e in alcuni casi vanno in conflitto con altre:
channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.enable=yes channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.min=***** channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.max=***** altrimenti basta scommentare tali righe ed impostare il range opportuno di porte da usare indicando il valore minimo e massimo. Le porte corrispondenti, oltre a quella su cui abbiamo messo in ascolto il trunk (nell'esempio, la 4002) dovranno essere aperte sul firewall e routate internamente verso Dexgate Nell'esempio utilizzeremo:
Il blocco dovrà essere a questo punto configurato nel modo seguente: ## Trunk Provider Messagenet channels.phone.jswitch.trunks.trunk-MESSAGENET.classname=it.tradesoft.tegate.channels.CorbaChannel.jswitch.trunks.sip.SipTrunk channels.phone.jswitch.trunks.trunk-MESSAGENET.port=4002 #channels.phone.jswitch.trunks.trunk-MESSAGENET.public.address=**** channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.enable=yes channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.ttl=20 channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.address=stun.fwdnet.net channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.port=3478 channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.backup.address=stun.voxgratia.org channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.backup.port=3478 #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.backup2.address=**** #channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.backup2.port=3478 channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.address.detector.enable=yes channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.address.detector.port=4101 channels.phone.jswitch.trunks.trunk-MESSAGENET.stun.address.detector.ttl=20 channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.enable=yes channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.domain=sip.messagenet.it channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.name=5353535 channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.password=123pass456 channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.address=sip.messagenet.it channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.port=5061 channels.phone.jswitch.trunks.trunk-MESSAGENET.registrar.refresh=170 channels.phone.jswitch.trunks.trunk-MESSAGENET.checkbusytable=no channels.phone.jswitch.trunks.trunk-MESSAGENET.limbo.enable=no channels.phone.jswitch.trunks.trunk-MESSAGENET.video.enable=no channels.phone.jswitch.trunks.trunk-MESSAGENET.codecs.0.classname=it.tradesoft.tegate.rtp.codecs.gsm channels.phone.jswitch.trunks.trunk-MESSAGENET.codecs.1.classname=it.tradesoft.tegate.rtp.codecs.alaw channels.phone.jswitch.trunks.trunk-MESSAGENET.callernumber.default=5353535 channels.phone.jswitch.trunks.trunk-MESSAGENET.sessionprogress.ignoring=yes channels.phone.jswitch.trunks.trunk-MESSAGENET.sessionprogress.connect=yes channels.phone.jswitch.trunks.trunk-MESSAGENET.response4xx.action=REMOTE_BUSY channels.phone.jswitch.trunks.trunk-MESSAGENET.max.resources.enable=yes channels.phone.jswitch.trunks.trunk-MESSAGENET.max.resources.number=2 channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.enable=yes channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.min=10010 channels.phone.jswitch.trunks.trunk-MESSAGENET.rtp.port.max=10019
A questo punto salvare i cambiamenti e ristartare il servizio. Verifica stato del trunk messagenetUna volta ripartito il servizio, logghiamoci sul DexGateMicro come amministratore ed in 'Gestione numeri' clicchiamo sul link 'Stato Trunk'. Se non ci sono errori nel file di configurazione e il provider ha accettato la vostra registrazione troveremo una schermata come quella qui sotto: Come notiamo la riga relativa al trunk messagenet indica che siamo registrati. Settaggio Regole UscitaVediamo ora come creare una regola per chiamare con il trunk appena creato. Clicchiamo quindi su "Esegui" Creazione della regola di redirezione numero esternoImmaginiamo a questo punto di voler indirizzare verso un certo interno, IVR o numero di gruppo ogni chiamata entrante dall'esterno sul trunk Messagenet (destinata cioè al nostro numero geografico 02999888777) e supponiamo che tale numero sia il 100. In 'Gestione numeri' cliccare sul link 'Lista numeri esterni rediretti', quindi su 'Redirigi numero esterno' e creare una nuova redirezione come mostrato di seguito: Cliccare sul link 'Esegui' per salvare le impostazioni. A questo punto si è pronti per utilizzare il nostro Account Messagenet con il DexGateMicro. In particolare, da qualunque terminale SIP registrato sul trunk interno 'tegate' del DexGateMicro potremo utilizzare il nostro account Messagenet premettendo al numero da chiamare il prefisso '0' (oppure il prefisso '9' nel caso si sia seguita la configurazione avanzata) e nel contempo saremo in grado d'indirizzare ogni chiamata diretta al nostro numero geografico 02999888777 verso un terminale, un numero di gruppo o un IVR di nostra scelta. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||