Asterisk help

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
neo2121
Dan isn't smart enough to hire me
Posts: 282
Joined: Wed Jan 09, 2008 10:05 am
Contact:

Asterisk help

Post by neo2121 »

Ok I am pulling my hair out over this one, its an asterisk problem so if anyone has any pointers it would be greatly appreciated. Well I have come into a digium asterisk appliance AA50. The front end that they use for the device is very easy to use and change all the settings. But you still have the ability to change settings traditionally I have tried both ways. I guess I will get to the problem already. It seems that the only thing that is going wrong is that the device is pushing the wrong format register string out. When I SSH to the box and type “asterisk -r” to view the “asterisk*CLI>” command line. I can see that the format of the registration string format that it keeps trying to use is [email protected] . But the register sting format that I have in my sip.config under general is EXXXXXXXXXX01:[email protected]:5070/XXXXXXXXXX But its still sending the wrong request no matter what I do....so if anyone has any tips on how or were to change that damn string
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Re: Asterisk help

Post by crackerjack »

neo2121 wrote:Ok I am pulling my hair out over this one, its an asterisk problem so if anyone has any pointers it would be greatly appreciated. Well I have come into a digium asterisk appliance AA50. The front end that they use for the device is very easy to use and change all the settings. But you still have the ability to change settings traditionally I have tried both ways. I guess I will get to the problem already. It seems that the only thing that is going wrong is that the device is pushing the wrong format register string out. When I SSH to the box and type “asterisk -r” to view the “asterisk*CLI>” command line. I can see that the format of the registration string format that it keeps trying to use is [email protected] . But the register sting format that I have in my sip.config under general is EXXXXXXXXXX01:[email protected]:5070/XXXXXXXXXX But its still sending the wrong request no matter what I do....so if anyone has any tips on how or were to change that damn string
What does your whole sip.conf look like? Sanitize it and post here
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
neo2121
Dan isn't smart enough to hire me
Posts: 282
Joined: Wed Jan 09, 2008 10:05 am
Contact:

Post by neo2121 »

register = EXXXXXXXXXX01:[email protected]:5070/XXXXXXXXXX

[magicjack]
context=incoming
username=EXXXXXXXXXX01
type=friend
secret=XXXXXpasswordXXXXX
port=5070
nat=yes
insecure=very
host=216.234.78.8
fromuser=EXXXXXXXXXX01
dtmfmode=inband
qualify=2000
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

Your Asterisk seems to be behaving properly. The Register transaction is different from what you encode into Asterisk. What you put into sip.conf is designed to be understood by a human - you. Asterisk then parses the information and formats it into a SIP REGISTER request. Your password will no longer be adjacent to your user name in the packet sent to MJ.

Now, how about telling us your problem and see if we can diagnose that? What is it about your Asterisk that is not working properly? Also, what version are you running ('show version' or 'core show version')?
neo2121
Dan isn't smart enough to hire me
Posts: 282
Joined: Wed Jan 09, 2008 10:05 am
Contact:

Post by neo2121 »

Well i agree asterisk side must be working but no matter what I change I cant get it to send out the correct registration string. The version that I ma using is Asterisk C.2.2.1
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

That is not a valid Asterisk version number. You should look for a number like 1.2.x or 1.4.x or 1.6.x in a string that looks something like "Asterisk 1.2.5 built by root @ sip.thisisanasterisk.net on a i586 running Linux on 2007-07-03 15:34:07 UTC". There are some commands that differ between the major releases, so it is difficult to probe further without knowing what the environment is.

On the other hand, I might have spotted the problem. It seems that you are only engaging MJ's SIP Server and not their Proxy Server (or vice versa). Try changing your register= line to this:

Code: Select all

[email protected]:password:[email protected]:5070/XXXXXXXXXX
I might not have gotten this string perfectly correct, so you ought to Search for asterisk here if this string doesn't work.
neo2121
Dan isn't smart enough to hire me
Posts: 282
Joined: Wed Jan 09, 2008 10:05 am
Contact:

Post by neo2121 »

sorry forgot to mention that this is a digium product and is a build of their business version. That is the version I just left off the rest of the line I will give that string a try. thanks for the replies I just figured that this post was dead.
reelbigfish
MagicJack Newbie
Posts: 6
Joined: Tue Aug 11, 2009 11:16 am

Magic Jack as my PSTN for an Asterisk test server

Post by reelbigfish »

I have a MJ and a working Astrisk server with some sip phones. I'd like to use the MJ account as PSTN provider for my Asterisk test box.

I've captured a Sniff of MJ but I'm not sure what I need and how to find it.

Any help will be greatly appreciated. Thanks
completetech
magicJack Apprentice
Posts: 16
Joined: Sun Jul 26, 2009 1:11 am

Re: Magic Jack as my PSTN for an Asterisk test server

Post by completetech »

reelbigfish wrote:I have a MJ and a working Astrisk server with some sip phones. I'd like to use the MJ account as PSTN provider for my Asterisk test box.

I've captured a Sniff of MJ but I'm not sure what I need and how to find it.

Any help will be greatly appreciated. Thanks
how?

i have a FreePBX asterisk box running and seem to not be able to get them to register to allow any calls in or out!
grillovillegas
magicJack Apprentice
Posts: 25
Joined: Mon May 11, 2009 5:38 pm

Asterisk

Post by grillovillegas »

need help


I have MJ runing on my pap2 for over a couple of months
withou any mjmd5 or anything
i just put the credentials and its working

and i want to setup as a trunk on asterisk

Any help will be very appreciated.

Thanks
Grillo Villegas
MST
magicJack Apprentice
Posts: 28
Joined: Mon Nov 02, 2009 11:35 pm

Post by MST »

I have one MJ running on Trixbox 2.6 but this is old MJ from 2007.

The new one from RadiosShack does not want to work using the same pattern of configuration.

Is there any new trick to new MJs?

THX
MST
Post Reply