Cisco Fax to Email forward

introduzione

Questo memo tratta di come fare il forward di un fax su una casella di posta elettronica utilizzando un voice gateway cisco (nel mio caso un 2650)

ovviamente il software a corredo dovrà essere già installato sul router, per maggiori informazioni a riguardo vi consiglio un giro presso questo indirizzo sul sito cisco, la guida per i fax services over ip e questo thread su google groups

iniziamo

innanzitutto dal prompt di dos o da una qualsiasi shell fate partire una connessione telnet verso il vostro router cisco su cui è presente il voice gateway

#telnet $IP_ROUTER

dopo esservi loggati entrerete nel prompt del router e da li bisognerà autenticarsi come amministratore di macchina, quindi

2600> enable

a questo punto avrete i permessi di superuser e potrete utilizzare comandi prima negati, il primo da utilizzare è

2600> show running-config

si otterà un output lungo contenente tra le altre cose pezzi di codice come questo

dial-peer voice XX pots
 description FAX SERVER IOS per $NOME_UTENTE
 application fax-detect
 incoming called-number $NUMERO_TELEFONO_ESTESO
 direct-inward-dial
 port 0/0:15
!
dial-peer voice YY mmoip
 description INOLTRO FAX COME IMMAGINE TIFF VIA MAIL
 application fax_on_vfc_onramp_app out-bound
 destination-pattern $NUMERO_TELEFONO_BREVE
 information-type fax
 session target mailto:$EMAIL_UTENTE
!

dove XX e YY sono due numeri (di solito sequenziali), $NUMERO_TELEFONO_ESTESO e $NUMERO_TELEFONO_BREVE sono i numeri di telefono dell'interno dell'utente e $EMAIL_UTENTE è l'email alla quale vorremo rigirare il fax

annotiamoci l’ultimo valore di dial-peer (in questo caso 67) ed entrare in modalità configurazione

2600> conf t

a questo punto digitare riga per riga il seguente testo:

2600(config)> dial-peer voice 68 pots

dove 68 è il numero successivo all’ultimo valore annotato, il prompt cambierà di conseguenza

2600(config-dial-peer)> description FAX SERVER IOS per $NOME_UTENTE
2600(config-dial-peer)> application fax-detect
2600(config-dial-peer)> incoming called-number $NUMERO_TELEFONO_ESTESO
2600(config-dial-peer)> direct-inward-dial
2600(config-dial-peer)> port 0/0:15
2600(config-dial-peer)> !
2600(config-dial-peer)> exit

a questo punto abbiamo configurato il redirect dei fax per il $NUMERO_TELEFONO_ESTESO

ora dobbiamo specificare dove fare il redirect, creando una nuova dial-peer (la 69)

2600(config)> dial-peer voice 69 mmoip
2600(config-dial-peer)> description INOLTRO FAX COME IMMAGINE TIFF VIA MAIL
2600(config-dial-peer)> application fax_on_vfc_onramp_app out-bound
2600(config-dial-peer)> destination-pattern $NUMERO_TELEFONO_BREVE
2600(config-dial-peer)> information-type fax
2600(config-dial-peer)> session target mailto:$EMAIL_UTENTE
2600(config-dial-peer)> !
2600(config-dial-peer)> exit
2600(config)> exit

controlliamo che la configurazione sia stata correttamente inserita (nel caso ci sia qualche errore basterà riscrivere la riga intera. Ad esempio se errammo il $NUMERO_TELEFONO_BREVE ci basterà rientrare in dial-peer voice 69 mmoip e reinserire la stringa destination-pattern $NUMERO_TELEFONO_BREVE con il numero corretto)

2600> show running-config

se lo è proviamola inviando un fax al $NUMERO_TELEFONO_ESTESO (che è il numero comprensivo di prefisso), se il fax arriva allora possiamo salvare il tutto altrimenti ci basterà riavviare la macchina per ritornare allo stato precedente. Per salvare la configurazione:

2600> write

cancellazione di un forward

mentre per cancellare una configurazione bisognerà scrivere dalla console di configurazione:

2600(config)> no dial-peer voice XX pots
2600(config)> no dial-peer voice YY mmoip

dove XX e YY rappresentano i numeri delle configurazioni da cancellare (nel nostro caso 68 e 69)

PHP Warnings

lib/WikiUser.php:59: Notice[8]: Only variables should be assigned by reference

lib/Template.php:112: Notice[8]: Only variables should be assigned by reference

lib/Template.php:114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'top') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'top') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference