FXS+FXO

Voice su IP

Moderatore: Federico.Lagni

Rispondi
infor_mare
Cisco fan
Messaggi: 67
Iscritto il: mer 20 feb , 2008 1:41 am

Ho inserito nel mio 1751-v una scheda fxs ed una fxo.
Ho configurato la fxo con il connection plar per far squillare uno dei numeri della fxs; sembra funzionare , ma la cosa che ho notato è che quando arriva la chiamata i l1751 RISPONDE e gira poi la chiamata sulla fxs che simula lo squillo per il chiamante. Il risultato è che il chiamante paga anche gli squilli !!! La tariffazione infatti parte dal momento che il cisco risponde. Come facci oa girare solo la segnalazione senza rispondere?
Avatar utente
IsaCab
Network Emperor
Messaggi: 349
Iscritto il: ven 18 gen , 2008 3:45 pm
Contatta:

Ciao,

non credo si a possibile. La connessione tra FXO e FXS è sempre stata difficoltosa e non priva di problemi. Proprio per il funzionamento delle due interfacce, la FXO deve prendere in carico la chiamata (risposta) e poi a sua volta effettua una chiamata verso la FXS. Quindi in realtà è la FXO che parla con la FXS. Uno dei problemi più comuni era la mancata disconnessione della chiamata nel caso l'user esterno metteva giù la comunicazione e viceversa.

Prova a postare la configurazione e vediamo se è possibile intervenire.

Ciao Giulio
-------
Giulio Martino [ http://www.voipexperts.it ]
Avaya IP Office PA
Microsoft MCP [IsaServer]
Cisco SMB[AM,EN] - SBCS [AM,EN]
Technical Writer e Supporter di ISAServer.it
Articoli - <http://www.isaserver.it/articoli/>
Forum - <http://www.isaserver.it/forum/>
Blog - <http://blogs.dotnethell.it/isacab/>
infor_mare
Cisco fan
Messaggi: 67
Iscritto il: mer 20 feb , 2008 1:41 am

IsaCab ha scritto:Ciao,

non credo si a possibile. La connessione tra FXO e FXS è sempre stata difficoltosa e non priva di problemi. Proprio per il funzionamento delle due interfacce, la FXO deve prendere in carico la chiamata (risposta) e poi a sua volta effettua una chiamata verso la FXS. Quindi in realtà è la FXO che parla con la FXS. Uno dei problemi più comuni era la mancata disconnessione della chiamata nel caso l'user esterno metteva giù la comunicazione e viceversa.

Prova a postare la configurazione e vediamo se è possibile intervenire.

Ciao Giulio
questa non me la sarei mai aspettata! Ma questo discorso vale anche se invece di mandare la chiamata all'fxs la mando su un telefono voip?
Avatar utente
IsaCab
Network Emperor
Messaggi: 349
Iscritto il: ven 18 gen , 2008 3:45 pm
Contatta:

Ciao

no se hai un telefono IP o un ATA e parliamo di Call Manager (Express) allora non hai problemi.

Ciao Giulio
-------
Giulio Martino [ http://www.voipexperts.it ]
Avaya IP Office PA
Microsoft MCP [IsaServer]
Cisco SMB[AM,EN] - SBCS [AM,EN]
Technical Writer e Supporter di ISAServer.it
Articoli - <http://www.isaserver.it/articoli/>
Forum - <http://www.isaserver.it/forum/>
Blog - <http://blogs.dotnethell.it/isacab/>
infor_mare
Cisco fan
Messaggi: 67
Iscritto il: mer 20 feb , 2008 1:41 am

IsaCab ha scritto:Ciao

no se hai un telefono IP o un ATA e parliamo di Call Manager (Express) allora non hai problemi.

Ciao Giulio
salve .. vorrei evitare callmanager poichè i miei telefoni ip sono tutti voip ed io ho callmanaged 3.2 (che credo non li supporti.

ecco cmq la config:

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no logging buffered
enable password cba
!
aaa new-model
!
!
aaa authentication login default local group radius
aaa authentication login h323 group radius
aaa authentication login con none
aaa authorization exec h323 group radius
aaa accounting connection h323 start-stop group radius
!
aaa session-id common
!
resource policy
!
memory-size iomem 15
mmi polling-interval 10
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 1
!
voice-card 2
!
ip subnet-zero
ip cef
!
!
!
!
ip name-server 100.100.100.100
!
!
voice call send-alert
voice call disc-pi-off
voice call debug short-header
voice rtp send-recv
voice dsp release early
!
voice service voip
allow-connections sip to sip
fax protocol t38 ls-redundancy 2 hs-redundancy 2 fallback pass-through g711alaw
sip
registrar server expires max 600 min 60
!
!
!
voice class codec 1
codec preference 1 g729r8
codec preference 2 g729br8
codec preference 3 g711alaw
codec preference 4 g711ulaw
!
!
!
!
!
!
!
!
!
!
!
!
!
translation-rule 1
Rule 0 ^999 999 ANY unknown
Rule 1 ^90 0 ANY unknown
Rule 2 ^93 3 ANY unknown
Rule 3 ^900 00 ANY unknown
!
gw-accounting aaa
acct-template callhistory-detail
!
!
!
!
!
interface ATM0/0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
interface FastEthernet0/0
ip address 192.168.1.142 255.255.255.0
speed 100
full-duplex
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.2
!
!
no ip http server
no ip http secure-server
!
radius-server host 192.168.1.195 auth-port 1812 acct-port 1813
radius-server key SHAREDKEY
radius-server vsa send accounting
radius-server vsa send authentication
!
control-plane
!
!
!
voice-port 1/0
ring number 2
input gain 14
echo-cancel coverage 32
cptone IT
timeouts interdigit 4
connection plar 021111111
!
voice-port 1/1
!
voice-port 2/0
echo-cancel coverage 32
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
caller-id enable
!
voice-port 2/1
echo-cancel coverage 32
playout-delay nominal 100
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
caller-id enable
!
ccm-manager music-on-hold
!
!
!
!
dial-peer cor custom
!
!
!
dial-peer voice 1 voip
destination-pattern .T
voice-class codec 1
session protocol sipv2
session target sip-server
session transport udp
dtmf-relay rtp-nte
no vad
!
dial-peer voice 2 pots
description LINEA VOCE
destination-pattern 021111111
port 2/0
authentication username 021111111 password kjfbhgdfhgd
!
dial-peer voice 11 pots
destination-pattern 9
translate-outgoing called 1
port 1/0
!
dial-peer voice 12 pots
destination-pattern 023333333
port 2/0
!
dial-peer voice 14 pots
destination-pattern 023333333
port 2/1
!
sip-ua
authentication username 021111111 password argyhtrhrh
set pstn-cause 57 sip-status 486
retry invite 4
retry response 3
retry bye 2
retry cancel 2
registrar dns:voip.abcdef.it:5060 expires 3600
sip-server dns:voip.abcdef.it:5060
!
!
line con 0
line aux 0
line vty 0 4
password abc
!
end

considera il numero 021111111 come il mio numero voip e 023333333 come il numero della linea telecom che entraq dall'fxo
infor_mare
Cisco fan
Messaggi: 67
Iscritto il: mer 20 feb , 2008 1:41 am

infor_mare ha scritto:
IsaCab ha scritto:Ciao

no se hai un telefono IP o un ATA e parliamo di Call Manager (Express) allora non hai problemi.

Ciao Giulio
salve .. vorrei evitare callmanager poichè i miei telefoni ip sono tutti voip ed io ho callmanaged 3.2 (che credo non li supporti.

ecco cmq la config:

version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no logging buffered
enable password cba
!
aaa new-model
!
!
aaa authentication login default local group radius
aaa authentication login h323 group radius
aaa authentication login con none
aaa authorization exec h323 group radius
aaa accounting connection h323 start-stop group radius
!
aaa session-id common
!
resource policy
!
memory-size iomem 15
mmi polling-interval 10
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 1
!
voice-card 2
!
ip subnet-zero
ip cef
!
!
!
!
ip name-server 100.100.100.100
!
!
voice call send-alert
voice call disc-pi-off
voice call debug short-header
voice rtp send-recv
voice dsp release early
!
voice service voip
allow-connections sip to sip
fax protocol t38 ls-redundancy 2 hs-redundancy 2 fallback pass-through g711alaw
sip
registrar server expires max 600 min 60
!
!
!
voice class codec 1
codec preference 1 g729r8
codec preference 2 g729br8
codec preference 3 g711alaw
codec preference 4 g711ulaw
!
!
!
!
!
!
!
!
!
!
!
!
!
translation-rule 1
Rule 0 ^999 999 ANY unknown
Rule 1 ^90 0 ANY unknown
Rule 2 ^93 3 ANY unknown
Rule 3 ^900 00 ANY unknown
!
gw-accounting aaa
acct-template callhistory-detail
!
!
!
!
!
interface ATM0/0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
interface FastEthernet0/0
ip address 192.168.1.142 255.255.255.0
speed 100
full-duplex
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.2
!
!
no ip http server
no ip http secure-server
!
radius-server host 192.168.1.195 auth-port 1812 acct-port 1813
radius-server key SHAREDKEY
radius-server vsa send accounting
radius-server vsa send authentication
!
control-plane
!
!
!
voice-port 1/0
ring number 2
input gain 14
echo-cancel coverage 32
cptone IT
timeouts interdigit 4
connection plar 021111111
!
voice-port 1/1
!
voice-port 2/0
echo-cancel coverage 32
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
caller-id enable
!
voice-port 2/1
echo-cancel coverage 32
playout-delay nominal 100
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
caller-id enable
!
ccm-manager music-on-hold
!
!
!
!
dial-peer cor custom
!
!
!
dial-peer voice 1 voip
destination-pattern .T
voice-class codec 1
session protocol sipv2
session target sip-server
session transport udp
dtmf-relay rtp-nte
no vad
!
dial-peer voice 2 pots
description LINEA VOCE
destination-pattern 021111111
port 2/0
authentication username 021111111 password kjfbhgdfhgd
!
dial-peer voice 11 pots
destination-pattern 9
translate-outgoing called 1
port 1/0
!
dial-peer voice 12 pots
destination-pattern 023333333
port 2/0
!
dial-peer voice 14 pots
destination-pattern 023333333
port 2/1
!
sip-ua
authentication username 021111111 password argyhtrhrh
set pstn-cause 57 sip-status 486
retry invite 4
retry response 3
retry bye 2
retry cancel 2
registrar dns:voip.abcdef.it:5060 expires 3600
sip-server dns:voip.abcdef.it:5060
!
!
line con 0
line aux 0
line vty 0 4
password abc
!
end

considera il numero 021111111 come il mio numero voip e 023333333 come il numero della linea telecom che entraq dall'fxo

i miei telefoni sono SIP ... pardon
Avatar utente
IsaCab
Network Emperor
Messaggi: 349
Iscritto il: ven 18 gen , 2008 3:45 pm
Contatta:

Ciao,

qualcosa della tua conf non mi quadra. Puoi ripostarla cercando di commentare il più possibile ?

Ciao Giulio
-------
Giulio Martino [ http://www.voipexperts.it ]
Avaya IP Office PA
Microsoft MCP [IsaServer]
Cisco SMB[AM,EN] - SBCS [AM,EN]
Technical Writer e Supporter di ISAServer.it
Articoli - <http://www.isaserver.it/articoli/>
Forum - <http://www.isaserver.it/forum/>
Blog - <http://blogs.dotnethell.it/isacab/>
infor_mare
Cisco fan
Messaggi: 67
Iscritto il: mer 20 feb , 2008 1:41 am

IsaCab ha scritto:Ciao,

qualcosa della tua conf non mi quadra. Puoi ripostarla cercando di commentare il più possibile ?

Ciao Giulio
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no logging buffered
enable password cba
!
aaa new-model
!
!####ACCOUNTING E AUTH PER SERVER RADIUS
!
aaa authentication login default local group radius
aaa authentication login h323 group radius
aaa authentication login con none
aaa authorization exec h323 group radius
aaa accounting connection h323 start-stop group radius
!
aaa session-id common
!
resource policy
!
memory-size iomem 15
mmi polling-interval 10
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 1
!
voice-card 2
!
ip subnet-zero
ip cef
!
!
!
!
ip name-server 100.100.100.100
!
!
voice call send-alert
voice call disc-pi-off
voice call debug short-header
voice rtp send-recv
voice dsp release early
!
voice service voip
allow-connections sip to sip
fax protocol t38 ls-redundancy 2 hs-redundancy 2 fallback pass-through g711alaw
sip
registrar server expires max 600 min 60
!
!
!
voice class codec 1
codec preference 1 g729r8
codec preference 2 g729br8
codec preference 3 g711alaw
codec preference 4 g711ulaw
!
!
!
!
!
!
!
!
!
!
!
!
!
!#### TRANSLATION RULES PER USARE LA LINEA TELECOM DIGITANDO 9 DAVANTI AL NUMERO

translation-rule 1
Rule 0 ^999 999 ANY unknown
Rule 1 ^90 0 ANY unknown
Rule 2 ^93 3 ANY unknown
Rule 3 ^900 00 ANY unknown
!
gw-accounting aaa
acct-template callhistory-detail
!
!
!
!
!
interface ATM0/0
no ip address
shutdown
no atm ilmi-keepalive
dsl operating-mode auto
!
interface FastEthernet0/0
ip address 192.168.1.142 255.255.255.0
speed 100
full-duplex
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.2
!
!
no ip http server
no ip http secure-server
!
radius-server host 192.168.1.195 auth-port 1812 acct-port 1813
radius-server key SHAREDKEY
radius-server vsa send accounting
radius-server vsa send authentication
!
control-plane
!
!
!### PORTA 1/0 FXO. QUESTA PORTA è COLLEGATA ALLA LINEA ANALOGICA TELECOM
voice-port 1/0
ring number 2
input gain 14
echo-cancel coverage 32
cptone IT
timeouts interdigit 4
connection plar 021111111
!
voice-port 1/1
!
!### porta 1 FXS, PRIMO TELEFONO
voice-port 2/0
echo-cancel coverage 32
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
caller-id enable
!
!### PORTA 2 FXS, SECONDO TELEFONO
voice-port 2/1
echo-cancel coverage 32
playout-delay nominal 100
playout-delay mode fixed
cptone IT
timeouts initial 120
timeouts interdigit 3
timeouts call-disconnect 0
caller-id enable
!
ccm-manager music-on-hold
!
!
!
!
dial-peer cor custom
!
!
!#### CON QUESTO DIAL-PEER FACENDO UN QUALSIASI NUMERO SI ESCE SULL'ACCOUNT VOIP
dial-peer voice 1 voip
destination-pattern .T
voice-class codec 1
session protocol sipv2
session target sip-server
session transport udp
dtmf-relay rtp-nte
no vad
!
!#### DIAL-PEER CHE SERVE A FAR SQUILLARE IL PRIMO TELEFONO QUANDO VIENE CHIAMATO IL NUMERO VOIP
dial-peer voice 2 pots
description LINEA VOCE
destination-pattern 021111111
port 2/0
authentication username 021111111 password kjfbhgdfhgd
!
!#### DIAL-PEER PER USARE LA LINEA TELECOM ANTEPONENDO IL 9 DAVANTI IL NUMERO
dial-peer voice 11 pots
destination-pattern 9
translate-outgoing called 1
port 1/0
!
!#### DIAL-PEER 12 E 14 SERVONO A FAR SQUILLARE TUTTI E DUE GLI FXS QUANDO VIENE CHIAMATO IL NUMERO TELECOM (NON FUNZIONA)
dial-peer voice 12 pots
destination-pattern 023333333
port 2/0
!
dial-peer voice 14 pots
destination-pattern 023333333
port 2/1
!
sip-ua
authentication username 021111111 password argyhtrhrh
set pstn-cause 57 sip-status 486
retry invite 4
retry response 3
retry bye 2
retry cancel 2
registrar dns:voip.abcdef.it:5060 expires 3600
sip-server dns:voip.abcdef.it:5060
!
!
line con 0
line aux 0

commenti dopo ####
Avatar utente
IsaCab
Network Emperor
Messaggi: 349
Iscritto il: ven 18 gen , 2008 3:45 pm
Contatta:

Ciao,

purtroppo non sono in grado di fornirti una soluzione al problema. Aspetta cmq una risposa più autorevole.

Nel frattempo una ptenziale soluzione e far funzionare i telefoni messi su FXS come dei telefoni SCCP.
Da qui puoi verificare se questa soluzione è sposabile dal tuo scenario.

http://www.ciscoforums.it/viewtopic.php ... ght=#33912

Ciao Giulio
-------
Giulio Martino [ http://www.voipexperts.it ]
Avaya IP Office PA
Microsoft MCP [IsaServer]
Cisco SMB[AM,EN] - SBCS [AM,EN]
Technical Writer e Supporter di ISAServer.it
Articoli - <http://www.isaserver.it/articoli/>
Forum - <http://www.isaserver.it/forum/>
Blog - <http://blogs.dotnethell.it/isacab/>
Avatar utente
IsaCab
Network Emperor
Messaggi: 349
Iscritto il: ven 18 gen , 2008 3:45 pm
Contatta:

Dimanticavo,
!#### DIAL-PEER 12 E 14 SERVONO A FAR SQUILLARE TUTTI E DUE GLI FXS QUANDO VIENE CHIAMATO IL NUMERO TELECOM (NON FUNZIONA)
dial-peer voice 12 pots
destination-pattern 023333333
port 2/0
!
dial-peer voice 14 pots
destination-pattern 023333333
port 2/1
Anche questo non è possible nella tua siuazione.

Ciao Giulio
-------
Giulio Martino [ http://www.voipexperts.it ]
Avaya IP Office PA
Microsoft MCP [IsaServer]
Cisco SMB[AM,EN] - SBCS [AM,EN]
Technical Writer e Supporter di ISAServer.it
Articoli - <http://www.isaserver.it/articoli/>
Forum - <http://www.isaserver.it/forum/>
Blog - <http://blogs.dotnethell.it/isacab/>
infor_mare
Cisco fan
Messaggi: 67
Iscritto il: mer 20 feb , 2008 1:41 am

IsaCab ha scritto:Dimanticavo,
!#### DIAL-PEER 12 E 14 SERVONO A FAR SQUILLARE TUTTI E DUE GLI FXS QUANDO VIENE CHIAMATO IL NUMERO TELECOM (NON FUNZIONA)
dial-peer voice 12 pots
destination-pattern 023333333
port 2/0
!
dial-peer voice 14 pots
destination-pattern 023333333
port 2/1
Anche questo non è possible nella tua siuazione.

Ciao Giulio

Nel caso possa servire ad altri , per evitare il problema del falso squillo in entrata basta inserire l'opzione opx nel connection plar. In questo modo la fxo si comporta come se dovesse colloquiare con un pbx e gira esclusivamente la segnalazione. La chiamata parte quando effettivamente il telefono viene alzato.
il comando sarebbe

connection plar opx 0211111111
Avatar utente
IsaCab
Network Emperor
Messaggi: 349
Iscritto il: ven 18 gen , 2008 3:45 pm
Contatta:

connection plar opx 0211111111
ottimo, direi che questa volta almeno parzialmente ho toppato :oops:


Grazie per la segnalazione, ne farò tesoro.

Ciao Giulio
-------
Giulio Martino [ http://www.voipexperts.it ]
Avaya IP Office PA
Microsoft MCP [IsaServer]
Cisco SMB[AM,EN] - SBCS [AM,EN]
Technical Writer e Supporter di ISAServer.it
Articoli - <http://www.isaserver.it/articoli/>
Forum - <http://www.isaserver.it/forum/>
Blog - <http://blogs.dotnethell.it/isacab/>
Rispondi