Asterisk + VoipJet

Avui m’he donat d’alta a VoipJet, un servei de trucades per veu sobre IP similar a SkypeOut, però amb preus més competitius:

Destí SkypeOut VoipJet
Fixe Espanya 2 1,14
Móbil Espanya 26,9 18,07
USA 2 0,99

NOTA: Els preus estàn en convertits a centims d’euro per minut, amb IVA inclòs

El pagament es fa a través de PayPal i quan et dones d’alta et regalen 0,25 centims de dolar per a que pugis provar el servei. A diferència de SkypeOut et tarifiquen per segón en lloc de per minut, i de la mateixa manera que a SkypeOut no pagues si no s’estableix la trucada.

Si teniu instal·lat l’Asterisk, per a enllaçar-lo amb VoipJet s’ha de fer la següent configuració:

1) Al fitxer iax.conf:

secret= secret_obtingut_a_voipjet

2) Aquest pas és opcional. A la secció codec del fitxer iax.conf configurem el codec a G.711 ulaw per a qualitat óptima de sò i minim delay en la transmissió.

disallow=all ; Prevent all codecs...
allow = ulaw ; ...except G.711 ulaw

3) També opcionalment, just després de la secció codec del fitxer iax.conf habilitem el buffer de jitter:

jitterbuffer=yes ; Jitter buffer enabled...
dropcount=1 ; drop at most 0.5% of VoIP packets

4) Al fitxer extensions.conf, afegir el següent, modificant 0000 pel nostre userid de VoipJet i canviant els deu ceros del CallerID pel número que volem que aparegui quan fem les trucades (si, ho has entes bé, et permet posar el numero que vulguis al CallerID!!).

; NANPA: North American Numbers dialed as 1 + area code
; For example, the New York Public Library is dialed as 12123400849
; 1 (North American call) 212 (New York area code) 3400849 (libary's phone number)
; WORLD: International Numbers dialed as 011 + country code + number
; For example, the Tate Modern Museum in London, U.K. is dialed as 011442078878000
; 011 (International call) 44 (U.K. country code) 2078878000 (museum's number)
; Finally, the number just before @voipjet in the Dial string is your VoipJet userid #
exten => _1NXXNXXXXXX,1,SetCallerID(0000000000); Set your CallerID as a ten digit number like this. See our FAQ
exten => _1NXXNXXXXXX,2,Dial,IAX2/0000@voipjet/${EXTEN} ; NANPA
exten => _011.,1,SetCallerID(0000000000); Set your CallerID as a ten digit number like this. See our FAQ.
exten => _011.,2,Dial,IAX2/0000@voipjet/${EXTEN} ; WORLD
;Do not change IAX2/0000 in the above two lines!

Per fer la trucada només haurem de connectar al asterisk —amb kphone per exemple— i marcar el número amb 011+codi_pais+numero_telf.

Ara penseu en les possibilitats… si connectem l’asterisk amb la linea telefònica de casa amb una tarja de Digium, i contractem un servei de l’estil mi preferido d’amena que permet fer trucades a un número a 3 centims per minut a qualsevol hora… podem trucar a Estats Units per 4 centims d’euro el minut des-de el movil en qualsevol moment 😉

This entry was posted in linux, voip. Bookmark the permalink.

9 Responses to Asterisk + VoipJet

  1. r $8.99 + despeses d’enviament. Al final acabaré fent el que comentava al final del post anterior de les trucades a USA des-de el mòbil… ja us ho contaré […]

  2. knoppix says:

    Hola es pot montar en un sistema windows?? si no es axio o puc montar amb linux feroda?suse?

  3. pof says:

    No tinc ni idea de si es pot fer amb win, però buscant a google he trobat aixó… jo crec que mes val que ho fassis amb linux 😉
    Val qualsevol linux, pots fer servir el que més t’agradi.

  4. knoppix says:

    merci ara meteix o provo pero quin material amb fa falta?
    quina targeta?

  5. pof says:

    Per connectar-te a la linia telefònica et fa falta una X100p, però si només vols fer proves no cal que la compris. Instal·la l’* i despres dona’t d’alta a voipjet, amb això ja podràs trucar a qualsevol part del mon desde l’ordinador 😀

  6. hi son). En canvi, si el callerID és el meu número de mòvil haig de poder fer trucades amb voipjet. Com el callerID és molt fàcil de spoofejar també posarm protecció sol·licitant u […]

  7. […] Asterisk is an Open Source PBX which provides almost everything anyone could need from a PBX in hardware, so it’s more than enough for my needs.Everything started in the Wireless Meeting I assisted the week before, someone was talking about this fantastic piece of software and how they’ve managed to get interconnected between some towns over Internet using IAX. That made some people start to discuss some points on how Asterisk and WLANs could work together to help zones, rooms, shops, etc where the phone line is not available.Then pof started to work on it, looking for services using IAX to call land lines, mobiles, other IAX users, etc. from your PC or even from a SIP phone which could be plugged into your LAN. Also Asterisk allows you to work with digital and analog telephony equipment, Asterisk supports a number of hardware devices, most notably all of the hardware manufactured by Asterisk’s sponsors, Digium. So everything seems possible!Finally last Friday, I was in pof’s home, like I use to…, then he started to show me how Asterisk was working and how it helps to save money using VoIP providers like VoipJet with very nice prices, look what they’ve got. With all this fun…you know what’s coming, don’t you? I had to start playing with it, but where? all my parent’s home is under a chaos of builders, painters and a long etc., so my laptop seemed a good place at least just for starters. I followed pof’s step-by-step guide so I got it working quickly and Saturday night I was talking with Asterisk’s echo service :P.On Sunday morning I wanted to flash my Linksys WRT54GSv2 with OpenWRT because it has lots of features I’d like to check, also I wanna give a try to Wi-Viz a very nice application which is able to provide a map, drawing your wireless network without interfering in the normal operation of the router. There I was…putting away HyperWRT and flashing the new image to the router, learning how to configure it without the web interface, updating packages, etc. Then I realized someone had built Asterisk packages for this firmware and installed them without losing a moment.The package system adopted by OpenWRT is ipkg (very common on such devices), it seems to have some problems tracking dependencies (I don’t even know if it should do so…) cause I had some shared object not found problems, solved by installing libpthread and libncurses both were available to be installed from OpenWRT’s repositories.And there I was again talking with Asterisk’s echo service…:PP but now running it on low-end hardware designed not to do PBX tasks! I’d like to thank from here all the people is working on hacking all those little thingies that are running around these days with Linux inside :)Finally, after playing for awhile with OpenWRT I got problems, I installed DropBear I set the root password, rebooted the box and … I can no longer login into the router. Telnet service has been disabled auto-magically (:P) after setting up the password and my SSH client is not allowed to login. I still don’t know why…but I hope re-flashing it will solve the problem. I will try to use pof’s instructions to upload the new image via TFTP. […]

  8. Sulfuric says:

    Hola, una pregunta jo tinc contractat a telsome un nombre ip per a que puguen cridarme si us interesa les trucades a mobils a espanya 14 cent/min (no esta gens mal), em conecte amb x-lite estic informant-me per fer-ho desde asterisk y aixi tindre varios telefons i ordinadors per poder trucar, y cridar gratis a nacionals amb el voip-bluster ja que amb telsome val 1.5 cent/min, la pregunta !! a telsome et donen usuari passs y direccio proxy per conectarte, es podria fer que asterisk truque als mobils per telsome i a nacionals per voip-bluster(estic segur que si), podria despres conectarme desde qualsevol ordinador al meu server amb asterisk y fer trucades igualment (com es faria axò desde x-lite per exemple), UN BLOG FANTASTIC SALU2 desde el pais Valencia

  9. werutzb says:


    I would like make better my SQL experience.
    I red that many SQL resources and would like to
    read more about SQL for my position as db2 database manager.

    What can you recommend?


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>