Càbina Gratis:

Mediante SIP

Para montar la cabina “gratuita” del HM usamos estos ingredientes: * Un teléfono analógico

* Una conexión a internet

* Una cuenta SIP en voipbuster.com en la que metimos 10€, con lo que nos dan 3 o 4 meses de llamadas gratis a +30 países.

* Un ATA, que es un adaptador al que se conecta un teléfono analógico y se conecta a una cuenta SIP (tiene una toma de teléfono y otra ethernet)

El ATA se configura desde la web que trae. Ahí habrá que meter el nombre del servidor SIP (sip.voipbuster.com), junto al usuario y contraseña. Una vez hecho esto, ya tenemos la cabina ”“gratis””.

Lo propio sería configurar el ATA con un dialplan que sólo permita llamadas a los países que son gratuitos. La cabina del HM no tenía filtro y algunos avispados aprovecharon para hacer llamadas a móviles de Italia, a Birmania! (Myanmar), un móvil a Suiza… lo importante es que no se gastó el saldo y que hasta el final de HM se han podido hacer llamadas.

Para saber cómo hacer el dialplan, STFW. Esto no es algo genérico y cada ATA tendrá su forma de configurarse.

Por cierto, se hicieron 30 llamadas a 13 países diferentes, un montón de personas se interesó (y se interesan) por la cabina.. yo creo que se puede decir que ha sido un éxito :D

FXO (asterisk)

Configuració Asterisk

Creem un usuari admin amb contrasenya autoformacio per poder administrar remotament:

/etc/asterisk/manager.conf.

[admin]
secret = autoformacio
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
writetimeout = 100
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config

Connectant Asterisk am FWD (Free World Dialup)

Modifiquem sip.conf

externhost=server.dyndns.org
localnet=192.168.0.0/255.255.0.0

Redireccionar els ports: 5060 i del 10000 al 20000 del router al PC amb Asterisk.

Afegim:

register => FWD##:password@fwd.pulver.com/2030 
[fwd-in]
type=friend
host=fwd.pulver.com ; (this of course matches the domain in the register above to make this contex visible)
allow=ulaw
nat=yes ; Here's the obvious lines
canreinvite=no ; Magical line. You will actually be using * in the middle to make sure
                            ; that your sip phone can hear the fwd caller, but it means your sip
                            ; connection is going THROUGH the * server with means double the
                            ; bandwidth waste because you should have been able to connect
                            ; directly to the fwd caller.
[general]
disallow=all
allow=gsm
allow=ulaw
allow=alaw
context = from-sip
maxexpirey=180
defaultexpirey=160
tos=reliability  
[fwd-outgoing]
type=friend
secret=password 
username=FWD##
host=fwd.pulver.com
fromdomain=fwd.pulver.com
insecure=very  ; needed if we want to allow incoming FWD calls to bypass authentication

Fitxer extensions.conf

[globals]
FWDUSERID=yourFWDuserID
FWDUSERNAME=Your Name
PHONE1=anyextensionyouwant
PHONE1VM=Voicemail-of-that-extension
FWDEXTEN=2030 ;See above in SIP.conf
[fwd-out]
exten => _7.,1,SetCIDNum(${FWDUSERID})
exten => _7.,2,SetCIDName(${FWDUSERNAME})
exten => _7.,3,Dial(SIP/${EXTEN:1}@fwd-outgoing)
exten => _7.,4,Playback(invalid)
exten => _7.,5,Hangup
[from-sip]
exten => ${FWDEXTEN},1,Dial(${PHONE1},30)
exten => ${FWDEXTEN},2,Voicemail(u${PHONE1VM})
exten => ${FWDEXTEN},3,Hangup
exten => ${FWDEXTEN},102,Voicemail(b${PHONE1VM})
exten => ${FWDEXTEN},103,Hangup 
projectes/cabina_gratis.txt · Darrera modificació: 2008/10/27 18:09 per 80.37.31.107
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0