Asterisk with MJ & reusing the USB Dongle?

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
padams
MagicJack Newbie
Posts: 4
Joined: Fri Feb 27, 2009 5:16 pm

Asterisk with MJ & reusing the USB Dongle?

Post by padams »

Hi,

Using MJ SIP credentials with Asterisk to make & receive calls is great. Can someone comment on what you should realistically expect.

For example - you can buy an MJ device & a 1 yr subscription - that gets you calls for a year. After that? Do you need to connect the device to a n XP box & re-register? Or can you re-register via the 'net with a credit card & just carry on & all the SIP details stay the same?


Also - has anyone re-used the MJ USB hardware as an FXO / FXS device, plugged into the USB port of an Asterisk server? (I can never remember which is a 'direct to the phone' type of port FXO or FXS).

Reusing the exisiting house DECT phones without buying a separate card for Asterisk would be nice.

Thanks in advance.


Regards

Paul
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

It should be possible to use just the FXS (wants to talk to a Station) interface by disabling the MJ software, but I don't recall anyone definitively saying they had done it.

You will need to download the SIP software from either the TigerJet web site or the CUPhone web site (I forget which). This is a very rudimentary softphone that correctly interfaces the DTMF buttons, the hookswitch and the ringer. Its SIP interface is very basic, but works well as an Asterisk extension. I have several TigerJet USB-to-RJ11 adapters that I have been using since 2001 with CUPhone's software and since 2004 with Asterisk.

I can't advise on renewing, since I haven't got that far yet.
padams
MagicJack Newbie
Posts: 4
Joined: Fri Feb 27, 2009 5:16 pm

Post by padams »

Thanks...

If I understand you correctly - you are talking about using the MJ device connected to a second XP computer to then connect a phone to that.

I would like to connect the MJ device directly to the USB port of the Asterisk server - and use it as an FXS port directly from Asterisk.

The less PC's / ATA devices running - the better.


But your comments did help - as from that I was able to determine the MJ is a TigerJet 560C chip - and I found a website where a guy had created drivers so the 560 chip was recognised in Linux as a sound device...

Now - just need Asterisk to use that sound device and treat it as a phone...

Of course - you could just buy an ATA and make life easy - but where's the fun in that! :D


Paul
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

Make sure that the Linux driver includes the software extensions for handling the ringer (outbound) and the hookswitch and DTMF signals (inbound), or you will have a wonderful interface with no way to use it. Also, it needs to have a SIP client integrated into it. If you are putting it in the same physical box, I would guess that you need to define the SIP server as 127.0.0.1:5060 to point it to the Asterisk server.

Aside from that, you should have an easier time integrating the dongle's TigerJet part only because Linux doesn't know how to autoload or run the MJ self-installer or softphone.

Please report your findings.
padams
MagicJack Newbie
Posts: 4
Joined: Fri Feb 27, 2009 5:16 pm

Post by padams »

(I've just sent you a different e-mail about buffalo router's / Asterisk)

The guy made sound device drivers to get the sound working (and got it working) - but he commented also you would need to control the dtmf & the hookswitch (as you said)

I've been away on business so I've not really looked at it further - but if I make any progress - I'll post it.

Ideally - if you could run Asterisk on a small embedded device (such as the Buffalo router) and reuse the magicjack as an fxs device as well as run a small memory stick - you'd have a low power pbx device that you could plug your existing home phone straight into...

Cool!

Paul
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

I travel with a WRT-54GS that has OpenWRT and Asterisk. I use it with a couple of ATAs for generating local Dial Tone to test my installed equipment when I get to a project location before Ma Bell has come in to install POTS or DSL.

I have also put the same configuration on Buffalo WHR-G54S and WHR-HP-G54 routers and on a Buffalo LinkStation fitted with Debian. Unfortunately, I corrupted the LinkStation during my last business trip, so it's a doorstop until I rebuild it.
Post Reply