cd /usr/src
sudo svn co https://www.makhutov.org/svn/chan_datacard/trunk/chan-datacard
cd chan-datacard
sudo make
sudo make install
semplicissimo!
Poi ti ritrovi, o copi, datacard.conf in /etc/asterisk (se l'hai l?) e lo configuri... il mio:
root@OpenWrt:/etc/asterisk# cat datacard.conf
[general]
interval=15 ; Number of seconds between trying to connect to devices.
;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of an
; OSS channel. Defaults to "no". An enabled jitterbuffer will
; be used only if the sending side can create and the receiving
; side can not accept jitter. The OSS channel can't accept jitter,
; thus an enabled jitterbuffer on the receive OSS side will always
; be used if the sending side can create jitter.
; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
; resynchronized. Useful to improve the quality of the voice, with
; big jumps in/broken timestamps, usualy sent from exotic devices
; and programs. Defaults to 1000.
; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of an OSS
; channel. Two implementations are currenlty available - "fixed"
; (with size always equals to jbmax-size) and "adaptive" (with
; variable size, actually the new jb of IAX2). Defaults to fixed.
; jbtargetextra = 40 ; This option only affects the jb when 'jbimpl = adaptive' is set.
; The option represents the number of milliseconds by which the new
; jitter buffer will pad its size. the default is 40, so without
; modification, the new jitter buffer will set its size to the jitter
; value plus 40 milliseconds. increasing this value may help if your
; network normally has low jitter, but occasionally has spikes.
; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
;-----------------------------------------------------------------------------------
[datacard0]
context=datacard-incoming ; context for incoming calls
audio=/dev/ttyUSB1 ; tty port for audio connection
data=/dev/ttyUSB2 ; tty port for AT commands
group=1 ; calling group
;[datacard1]
;context=datacard-incoming ; context for incoming calls
;audio=/dev/ttyUSB4 ; tty port for audio connection
;data=/dev/ttyUSB5 ; tty port for AT commands
;group=2 ; calling group
rxgain=10 ; increase the incoming volume
txgain=10 ; increase the outgoint volume
autodeletesms=yes ; auto delete incoming sms
;resetdatacard=yes ; reset datacard during initialization
;u2duag=0 ; set U2DIAG parameter (0 = disable everything except modem function)
root@OpenWrt:/etc/asterisk#