Instalacao da Placa GSM 1 ) Pegar os drives no site http://www.khomp.com.br/pt.br/download.php 2 ) cd /usr/src gzip -d channel_2.3_013.sh.gz bash channel_2.3_013.sh cp /etc/asterisk/khomp.conf /etc/asterisk/khomp.conf.original kpload ls /etc/asterisk/khomp.conf ls /usr/doc/khomp/ 3 ) Verificação do mdulo do kernel 3.1) Verifique se o driver está carregado: lsmod | grep kpci9030 3.2) Configurar a placa : k3lconfig 4 ) Compilação do channel no asterisk cd /usr/src wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/lnussel:/win32/win32/i586/scons-1.0.1-2.1.i586.rpm rpm -ivh scons-1.0.1-2.1.i586.rpm cd /usr/src wget ftp://rpmfind.net/linux/SuSE-Linux/i386/update/10.2/rpm/i586/boost-devel-1.33.1-44.i586.rpm rpm -ivh boost-devel-1.33.1-44.i586.rpm cd /usr/src/dgvbuild/asterisk/ tar cvzfpP asterisk-1.2.24.mar.tar.gz asterisk-1.2.24 cd /usr/src/asterisk tar xvzf /usr/src/channel_2.3_013.tar.gz cd channel_2.3_rev1728/ scons cp chan_khomp.so /usr/lib/asterisk/modules 5 ) Configuração para receber as chamadas Para testar quando ligo para o numero do do chip escuto essa mensagem por exemplo Não estou conseguindo e redirecionar as ligações para um ramal SIP por exemplo [khomp-00-00] exten => s,1,Answer() ; exten => s,2,Wait(1) ; exten => s,3,DigitTimeout(3) exten => s,4,ResponseTimeout(4) exten => s,5,Background(/var/lib/asterisk/sounds/pt_BR/vm-reenterpassword) 6 ) Colocar o modulo para levantar no boot NÂO DEU certo AINDA !!!!! #cd /etc/rcS.d/ #ln -s /usr/sbin/kpload S19kpload #ln -s /usr/sbin/kserver S20kserver TO usando essa sequencia para levantar killall safe_asterisk killall asterisk kpload kserver start /usr/sbin/safe_asterisk 7 ) Para monitorar as ligações /usr/sbin/asterisk -rvvv Se alguem ligar deve aparecer algo semelhante a isso : -- Executing Playback("Khomp/B0C0-1", "vm-goodbye") in new stack -- Playing 'vm-goodbye' (language 'pt_BR') -- Executing Macro("Khomp/B0C0-1", "hangupcall") in new stack -- Executing ResetCDR("Khomp/B0C0-1", "w") in new stack -- Executing NoCDR("Khomp/B0C0-1", "") in new stack -- Executing GotoIf("Khomp/B0C0-1", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,6) -- Executing GotoIf("Khomp/B0C0-1", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,9) -- Executing GotoIf("Khomp/B0C0-1", "1?theend") in new stack -- Goto (macro-hangupcall,s,11) -- Executing Hangup("Khomp/B0C0-1", "") in new stack -- Executing Playback("Khomp/B0C0-1", "vm-goodbye") in new stack -- Playing 'vm-goodbye' (language 'pt_BR') -- Executing Macro("Khomp/B0C0-1", "hangupcall") in new stack -- Executing ResetCDR("Khomp/B0C0-1", "w") in new stack -- Executing NoCDR("Khomp/B0C0-1", "") in new stack -- Executing GotoIf("Khomp/B0C0-1", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,6) -- Executing GotoIf("Khomp/B0C0-1", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,9) -- Executing GotoIf("Khomp/B0C0-1", "1?theend") in new stack -- Goto (macro-hangupcall,s,11) -- Executing Hangup("Khomp/B0C0-1", "") in new stack == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Khomp/B0C0-1' in macro 'hangupcall' == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Khomp/B0C0-1'