MagicJack Setup Guide For TrixBox CE

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

nonefornow
MagicJack Newbie
Posts: 1
Joined: Mon Dec 15, 2008 4:51 am

Post by nonefornow »

All I can say is that this was a huge learning experience. I found this post a few days ago and it sparked my interest to learn more on Asterisk. Thanks mykroft and everyone who contributed.

My outbound is okay but no inbound. Tried elastix and trixbox but no joy.

I set up:
Outbound routes
Trunk
Inbound routes
Static IP and DNS
Port fowarding and tried DMZ

When I call my magicjack number, I receive the following message:you have reached a nonworking number announcement 14-1.

Outbound calls are crystal clear.

Can someone please post up some additional information to getting inbound calls working?

Thank you

Also, here's a primer for those starting Asterisk:
Free under the creative commons license, Asterisk: The Future of Telephony
http://www.google.com/url?sa=t&source=w ... cff9LyHd6w
proccw
MagicJack Newbie
Posts: 8
Joined: Fri Sep 05, 2008 9:49 pm

Post by proccw »

esojmc wrote: Register String:
Exxxxxxxxxx01:[email protected]:5070
Try changing your registration to:

Exxxxxxxxxx01:[email protected]:5070/xxxxxxxxxx

where xxxxxxxxxx is your MJ phone number.
joecanadian
MagicJack Contributor
Posts: 58
Joined: Wed Nov 28, 2007 3:06 am

freepbx

Post by joecanadian »

Now I don't use trickbox but my config is on freepbx and its pretty much the same..

Now I like to think I was one of the first to run mj on asterisks and have been running it for quite some time now as a small extra to my home phone system that allows me to make the odd longdistance call.

Its been great on and off for the last year.. I spent time on trying lots of configurations cause I had issues with my dtmf but this seems to be the best

Only change I made this month was my useragent from SJPhone to the latest changes.. i guess SJPhone was bought out by the MJ peoples
so ..
useragent=SJPhone
to
useragent=MagicJack/1.80.466c (SJ Labs)

I am not sure if the useragent sends this info and have not really tried to figure a way to check it

As I look at the settings today I dunno if I really need all the things like
auth=md5
canreinvite=no
insecure=very

But things seemed to work fine

here are my settings.. (been using them with out a hitch for more then a year now

Code: Select all

allow=ulaw
auth=md5
canreinvite=no
context=from-trunk
disallow=all
dtmfmode=rfc2833
fromuser=EXXXXXXXXXX01
host=216.234.69.8
insecure=very
nat=yes
port=5070
secret=SOMELONGALPH8NUMERICTHINGHERE
type=friend
useragent=MagicJack/1.80.466c (SJ Labs)
username=EXXXXXXXXXX01

enjoy
Last edited by joecanadian on Wed Jan 28, 2009 8:04 pm, edited 1 time in total.
vandi
MagicJack Newbie
Posts: 3
Joined: Sat Mar 07, 2009 5:52 pm

Post by vandi »

Can anyone share what I'm doing wrong with using my MJ on my Asterisk server? It's AsteriskNOW 1.5.0 Beta2 So all the configuration is via the freePBX

Trunk Name: MJ1

Peer Info:

host=216.234.78.8
secret=<removed>
type=friend
username=E<removed>01
userdomain=talk4free.com
port=5070
insecure=very
dtmfmode=inband
fromuser=E<removed>01
qualify=2000
useragent=MagicJack/1.80.466c (SJ Labs)

User Contect: inbound

User Details:

host=216.234.78.8
secret=<removed>
type=friend
username=E<removed>01
userdomain=talk4free.com
port=5070
nat=no
insecure=very
fromuser=E<removed>01
dtmfmode=inband
qualify=2000

Register String:

E<MJ PHone #>01:<MJ Secret>@216.234.78.8:5070/<MJ PHone #>

In Asterisk sip show peers
Name/username Host Dyn Nat ACL Port Status
MJ1/E>MJ Phone #>01 216.234.78.8 5070 OK (94 ms)
inbound/E<MJ Phone #>01 216.234.78.8 5070 OK (97
ms)

I can call in just fine and when I try to dial out
-- SIP/MJ1-0a143bc0 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)

Thanks in advance!
MagicDump
Dan isn't smart enough to hire me
Posts: 100
Joined: Thu Sep 11, 2008 8:19 pm

Post by MagicDump »

vandi,

Try
userdomain=proxy1.miami.talk4free.com
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

Also, you probably need to get rid of the port= line, or change it to 5060. In the case of a client definition like this, that number specifies your own listening port, not the server's. :5070 needs to stay in your register= line, as you have it, because that is the port you need to hail MJ on.
vandi
MagicJack Newbie
Posts: 3
Joined: Sat Mar 07, 2009 5:52 pm

Post by vandi »

mberlant wrote:Also, you probably need to get rid of the port= line, or change it to 5060. In the case of a client definition like this, that number specifies your own listening port, not the server's. :5070 needs to stay in your register= line, as you have it, because that is the port you need to hail MJ on.
If I remove the port=5070, I get:
Name/username Host Dyn Nat ACL Port Status
MJ1/E<MJPhone#>01 216.234.78.8 N 5060 UNREACHABLE
inbound/E<MJPhone#>01 216.234.78.8 N 5060 UNREACHABLE

MagicDump, when you mean use userdomain=proxy1.miami.talk4free.com, are you suggesting that I switch my host information to use that server?

I feel so close and yet so far....It seems like there are about 10 different configurations, but yet, nothing seems to work just right.

Again, thanks for any help,
vandi
MagicJack Newbie
Posts: 3
Joined: Sat Mar 07, 2009 5:52 pm

Got both inbound and outbound working with MJ FreePBX

Post by vandi »

I'll post details shortly... I have to go play with my daughter...
MagicDump
Dan isn't smart enough to hire me
Posts: 100
Joined: Thu Sep 11, 2008 8:19 pm

Post by MagicDump »

Vandi,
MagicDump, when you mean use userdomain=proxy1.miami.talk4free.com, are you suggesting that I switch my host information to use that server?

I feel so close and yet so far....It seems like there are about 10 different configurations, but yet, nothing seems to work just right.
It does not matter which proxy you use, proxy1.miami.talk4free.com works very good for me but you can use any proxy close to you, just ping the proxy and see wich one is faster and use it.
your reg should look something like this just replace miami with your closer proxy state:

register=EXXXXXXXXXX01:[email protected]:5070/<MJPnone Number>
swedeguy
MagicJack Newbie
Posts: 1
Joined: Fri Apr 03, 2009 6:54 pm

Re: freepbx

Post by swedeguy »

joecanadian wrote:Now I don't use trickbox but my config is on freepbx and its pretty much the same..

Now I like to think I was one of the first to run mj on asterisks and have been running it for quite some time now as a small extra to my home phone system that allows me to make the odd longdistance call.

Its been great on and off for the last year.. I spent time on trying lots of configurations cause I had issues with my dtmf but this seems to be the best

Only change I made this month was my useragent from SJPhone to the latest changes.. i guess SJPhone was bought out by the MJ peoples
so ..
useragent=SJPhone
to
useragent=MagicJack/1.80.466c (SJ Labs)

I am not sure if the useragent sends this info and have not really tried to figure a way to check it

As I look at the settings today I dunno if I really need all the things like
auth=md5
canreinvite=no
insecure=very

But things seemed to work fine

here are my settings.. (been using them with out a hitch for more then a year now

Code: Select all

allow=ulaw
auth=md5
canreinvite=no
context=from-trunk
disallow=all
dtmfmode=rfc2833
fromuser=EXXXXXXXXXX01
host=216.234.69.8
insecure=very
nat=yes
port=5070
secret=SOMELONGALPH8NUMERICTHINGHERE
type=friend
useragent=MagicJack/1.80.466c (SJ Labs)
username=EXXXXXXXXXX01

enjoy

Thanks, I can get inbound again now...
hepe
magicJack Apprentice
Posts: 14
Joined: Wed Oct 08, 2008 3:43 am
Location: asia pacific

Post by hepe »

outgoing

username=EXXXXXXXXXX01
fromuser=EXXXXXXXXXX01
dtmfmode=rfc2833
secret=20 Characters Password
host=216.234.64.8(NYPROXY)
insecure=very
nat=yes
type=friend
port=5070
qualify=2000
allow=ulaw
disallow=all
useragent=MagicJack/1.80.466c (SJ Labs)


incoming

username=EXXXXXXXXXX01
context=from-trunk
dtmfmode=rfc2833
secret=20 Character Password
host=216.234.64.8(NYPROXY)
insecure=very
nat=yes
type=friend
port=5070
qualify=2000
allow=ulaw
disallow=all

EXXXXXXXXXX01:[email protected]:5070/yourMJNUMBER


This is my Trixbox, Elastix,and PBX in a flash configuration and it works 100% all lastest version
Magic Jack on my Linksys SPA 3102, Trixbox, Elastix and PBX In A FLASH
gorack
MagicJack Newbie
Posts: 4
Joined: Fri Feb 20, 2009 11:36 pm

conf

Post by gorack »

See this is were i get confused, I have added this in trixbox using the gui.. but all these things about manually adding stuff..

Were do we add this?
hepe
magicJack Apprentice
Posts: 14
Joined: Wed Oct 08, 2008 3:43 am
Location: asia pacific

Re: conf

Post by hepe »

gorack wrote:See this is were i get confused, I have added this in trixbox using the gui.. but all these things about manually adding stuff..

Were do we add this?
go to trunks select sip

then set outbound and inbound routes
Magic Jack on my Linksys SPA 3102, Trixbox, Elastix and PBX In A FLASH
zipsnet
MagicJack Newbie
Posts: 7
Joined: Sat Oct 04, 2008 2:17 pm

Post by zipsnet »

I have my box setup just like this but I get this:

<--- SIP read from UDP://216.234.79.8:5070 --->
SIP/2.0 400 Bad Request
Via: SIP/2.0/UDP 66.XXX.XXX.XXX:5060;branch=z9hG4bK0b355bcc;rport
To: <sip:216.234.79.8:5070>
From: "Unknown"<sip:[email protected]>;tag=as775649f3
Call-ID: [email protected]
CSeq: 102 OPTIONS
User-Agent: ENSR2.5.57.2-IS31
Content-Length: 0


Any Idea??

Thanks.
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Post by crackerjack »

zipsnet wrote:I have my box setup just like this but I get this:

<--- SIP read from UDP://216.234.79.8:5070 --->
SIP/2.0 400 Bad Request
Via: SIP/2.0/UDP 66.XXX.XXX.XXX:5060;branch=z9hG4bK0b355bcc;rport
To: <sip:216.234.79.8:5070>
From: "Unknown"<sip:[email protected]>;tag=as775649f3
Call-ID: [email protected]
CSeq: 102 OPTIONS
User-Agent: ENSR2.5.57.2-IS31
Content-Length: 0


Any Idea??

Thanks.
Does your MJ work as originally designed by plugging into USB?
check spelling of password, username and verify that you can ping the proxy. Try another proxy. Run GRC.com ports test to see if 5060-5070 can be reached from outside
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
zipsnet
MagicJack Newbie
Posts: 7
Joined: Sat Oct 04, 2008 2:17 pm

Post by zipsnet »

I have no problem authenticating:
magic:5070 EXXXXXXXXXX01 105 Registered Thu, 09 Apr 2009 15:28:48

I will have to try pluging the MJ into a usb port and see if it works, other than that, I dont see anything else, this config was working before and stopped working a few day ago after upgrading my box.


Thanks
kod_x
MagicJack Newbie
Posts: 2
Joined: Mon Apr 06, 2009 9:07 pm

Post by kod_x »

Going through this thread I was alble to get my Majic jack inbound working.

So far, the main problem have been authenticating the inbound traffic. Two fields that haven't been discussed fixed my issue with authentication.

The actual trunk name should be EXXXXXXXXXX01

In the "inbound settings" The User context should be "magicjack"


I was noticing when the inbound calls tried to authenticate, via /var/log/asterisk/full it was looking for the EXXXXXXXXXX01 in the trunk name field.



EXXXXXXXXXX01:[email protected]:5070/yourMJNUMBER this is also required.
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

That field is not for authentication. That field is a token label that tells sip.conf what context within extensions.conf to send an incoming call to. The number you put behind the / at the end of the register= line is the stanza within that context to send an incoming call to.

In your example, an incoming call will be passed to

Code: Select all

[magicjack]
3115552368,1,.........
3115552368,2,.........
You then need to have written code in that location in extensions.conf (or have had some program do that for you) that tells Asterisk what to do with the inbound call.
kod_x
MagicJack Newbie
Posts: 2
Joined: Mon Apr 06, 2009 9:07 pm

Post by kod_x »

mberlant wrote:That field is not for authentication. That field is a token label that tells sip.conf what context within extensions.conf to send an incoming call to. The number you put behind the / at the end of the register= line is the stanza within that context to send an incoming call to.

In your example, an incoming call will be passed to

Code: Select all

[magicjack]
3115552368,1,.........
3115552368,2,.........
You then need to have written code in that location in extensions.conf (or have had some program do that for you) that tells Asterisk what to do with the inbound call.
I started with a fresh install of TrixBox. And I have not other working knowledge of trixbox/asterisk.

I tired to get inbound to work without having to manually edit any of the .conf files. All of these changes I made were used through the GUI and not editing any of the .conf files individually. I will post my trunk setting to show what I have gotten to work.

trunk name: EXXXxxxXXXX01

username=EXXXxxxXXXX01
type=friend
secret=XXXXXxxxxxXXXXXxxxxx
qualify=2000
port=5070
host=XXX.XXX.XXX.XXX
fromuser=EXXXxxxXXXX01
dtmfmode=inband

Inbound..

USER Context: magicjack

USER Details:
username=EXXXxxxXXXX01
type=friend
secret=XXXXXxxxxxXXXXXxxxxx
port=5070
nat=yes
insecure=very
host=XXX.XXX.XXX.XXX
fromuser=EXXXxxxXXXX01
dtmfmode=rfc2833
disallow=all
context=from-trunk
canreinvite=no
auth=md5
allow=ulaw

Register string EXXXxxxXXXX01:XXXXXxxxxxXXXXXxxxxx@proxy1.<City>.talk4free.com:5070/yourMJphoneNUMBER

My inbound route is, My Magic jack phone number in the DID field and destination is RINGALL (could be changed to an individual extension ofcourse.)
elsmacko
MagicJack Newbie
Posts: 4
Joined: Mon Apr 13, 2009 3:04 am

Post by elsmacko »

I was also having problems with not getting inbound to work. What did it for me was adding my phone number to the end of the registrations string

So after port

5070/1234567890 (Notice no E or 01 or anything added, just the 10 digit number). Some of my other settings in inbound are not exact same but it seems to be working, so I left them as is.

THanks! I was having to have 2 phones on my desk to use the MJ. Now I don't.
elsmacko
MagicJack Newbie
Posts: 4
Joined: Mon Apr 13, 2009 3:04 am

Post by elsmacko »

elsmacko wrote:I was also having problems with not getting inbound to work. What did it for me was adding my phone number to the end of the registrations string

So after port

5070/1234567890 (Notice no E or 01 or anything added, just the 10 digit number). Some of my other settings in inbound are not exact same but it seems to be working, so I left them as is.

THanks! I was having to have 2 phones on my desk to use the MJ. Now I don't.
Now it stopped working for inbound...hmm. I just get 3 beeps on the phone when trying to call (on the phone I am dialing from, 3 beeps and then end.)
oliverda
magicJack Apprentice
Posts: 19
Joined: Thu Oct 09, 2008 10:08 pm

Post by oliverda »

I had problems with not getting inbound too. After months of trying to figure it out how to resolve this issue, I finally got it to work with by changing trunk name and usercontext to something like this.

Tunkname: MagicJack1

Usercontext: MagicJack1-in

That worked for me. If you add more MJs keep numbering like (MagicJack2, MagicJack3 ect...
hepe
magicJack Apprentice
Posts: 14
Joined: Wed Oct 08, 2008 3:43 am
Location: asia pacific

Post by hepe »

important thing to do is putting the;


context=from-trunk

inside the box
Magic Jack on my Linksys SPA 3102, Trixbox, Elastix and PBX In A FLASH
jjanton
MagicJack Newbie
Posts: 4
Joined: Mon Apr 20, 2009 6:14 pm

Outbound?

Post by jjanton »

Hi,
I'm not sure if this is good practice ( not trying to hijack this thread)
but I'm having a similar issue I can receive in but not out
I've registered with phone number @ end and have also changed many of the settings in the trunk.
They are as follows

username=Exxxxxxxxxx01
fromuser=Exxxxxxxxxx01
dtmfmode=rfc2833
secret=my password
host=xxx.xxx.xxx.xxx
insecure=very
nat=yes
type=friend
qualify=2000
disallow=all
allow=ulaw
useragent=MagicJack/1.80.466c (SJ Labs)

username=EXXXxxxXXXX01
context=from-trunk
dtmfmode=rfc2833
secret=my secret
host=xxx.xxx.xxx.xxx
insecure=very
nat=yes
type=friend
port=5070
qualify=2000
allow=ulaw
disallow=all

registry:

Exxxxxxxxxx01:[email protected]:5070/mjnumber


I am getting a "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 3)" error when dialing out using x-lite

any help would be greatly appreciated

Thanks!
elsmacko
MagicJack Newbie
Posts: 4
Joined: Mon Apr 13, 2009 3:04 am

Re: Outbound?

Post by elsmacko »

Was it during peak periods? Perhaps it was busy? I will copy/paste my settings later tonight for you to compare (mine is working fine).
jjanton wrote:Hi,
I'm not sure if this is good practice ( not trying to hijack this thread)
but I'm having a similar issue I can receive in but not out
I've registered with phone number @ end and have also changed many of the settings in the trunk.
They are as follows

username=Exxxxxxxxxx01
fromuser=Exxxxxxxxxx01
dtmfmode=rfc2833
secret=my password
host=xxx.xxx.xxx.xxx
insecure=very
nat=yes
type=friend
qualify=2000
disallow=all
allow=ulaw
useragent=MagicJack/1.80.466c (SJ Labs)

username=EXXXxxxXXXX01
context=from-trunk
dtmfmode=rfc2833
secret=my secret
host=xxx.xxx.xxx.xxx
insecure=very
nat=yes
type=friend
port=5070
qualify=2000
allow=ulaw
disallow=all

registry:

Exxxxxxxxxx01:[email protected]:5070/mjnumber


I am getting a "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 3)" error when dialing out using x-lite

any help would be greatly appreciated

Thanks!
jjanton
MagicJack Newbie
Posts: 4
Joined: Mon Apr 20, 2009 6:14 pm

Post by jjanton »

No, its all the time. I get the "all circuits are busy" message.
I'm wondering if my outbound route is not working correctly,
I've put in the standard 10 and 7 digit dialing into the dial plan.

Thanks!
jjanton
MagicJack Newbie
Posts: 4
Joined: Mon Apr 20, 2009 6:14 pm

Post by jjanton »

After checking things out I missed a few steps in the actual config.
I needed in my config to add a few lines from the original post ( I got it from Phone Phreak) to my extensions_custom.conf. Although I had put them into my config, I also had to modify the actual names to correspond to my trunk names. After reloading sip I was able to dial out.

After a week of trying to get my head around all of this I finally have a system thats functioning. Now on to getting my SPA 3102 to act just as a phone to dial out without trying to pass me to a PSTN!

Thanks!
jhorrocks
MagicJack Newbie
Posts: 4
Joined: Mon May 18, 2009 7:04 pm

Post by jhorrocks »

what did you have to add to conf file? mine is same as yours same results you had.
jhorrocks
MagicJack Newbie
Posts: 4
Joined: Mon May 18, 2009 7:04 pm

Post by jhorrocks »

so sip show peers says ok but sip show registry shows nothing at all. Everything I have don is through the freepbx interface only


PEER Derails
username=Exxxxxxxxxx01
fromuser=Exxxxxxxxxx01
dtmfmode=rfc2833
secret=xxxxxxxxxxxxxxxxxxxx
host=67.108.236.70
insecure=very
nat=yes
type=friend
port=5070
qualify=2000
allow=ulaw
disallow=all
useragent=MagicJack/1.80.466c (SJ Labs)

User Details

username=Exxxxxxxxxx01
context=from-trunk
dtmfmode=rfc2833
secret=xxxxxxxxxxxxxxxxxxxxxx
host=67.108.236.70
insecure=very
nat=yes
type=friend
port=5070
qualify=2000
allow=ulaw
disallow=all
useragent=MagicJack/1.80.466c (SJ Labs)

Register String
Exxxxxxxxxx01:[email protected]:5070/xxxxxxxxxx
jhorrocks
MagicJack Newbie
Posts: 4
Joined: Mon May 18, 2009 7:04 pm

Post by jhorrocks »

SO anyone have some advice???
mykroft
MagicJack User
Posts: 47
Joined: Sun Oct 19, 2008 12:28 am

Post by mykroft »

1st post updated - inbound/outbound is now working for me.

Note - you still can not send a Caller ID
hollettster
MagicJack Newbie
Posts: 2
Joined: Sat Feb 28, 2009 1:50 am

Here are my settings on elastix

Post by hollettster »

Here is what I get with sip show registry:

Code: Select all

Host                            Username       Refresh State                Reg.Time                 
proxy01.columbus.talk4free.com  ExxxXXXxxxx0       120 Auth. Sent                                    
My trunk settings are:
Trunk name: MagicJack

Peer Settings:
username=ExxxXXXxxxx01
type=friend
secret=KMLSKxxxxxxxxxxVBHZJ
qualify=2000
port=5070
nat=yes
host=66.104.96.198
UserDomain=talk4free.com
fromuser=ExxxXXXxxxx01
dtmfmode=inband
insecure=very
context=from-pstn
User-Agent=MagicJack/1.80.484a (SJ Labs)


Registration String:
ExxxXXXxxxx01:[email protected]:5070

I cannot get it to register. I have forwarded port 5070 and 5060 to the Elastix box. What can i do? I can ping the proxy FQDN and the Proxy IP and that works fine. Been on this for hours and no luck. Any help would be much appreciated. Thanks.
tvland
magicJack Apprentice
Posts: 23
Joined: Tue Mar 11, 2008 3:05 pm

Post by tvland »

I'm running trixbox 2.8.0.1 with asterisk 1.6.0.9

The settings seem to work as far as today. My problem is that even with my telephone number at the end of the register string, incoming calls are not routed by that DID.To make it work, I have to use the any DID rule and the incoming calls work. Without the any DID rule, asterisk gets the call but returns a not in service message. I tried just the number or the username with the E and incoming calls are still not routed by the DID. I tried just about every way I could think of.

Could this be something to do with mjproxy?

Any suggestions?
pbudden
MagicJack Newbie
Posts: 2
Joined: Wed May 28, 2008 1:57 pm

unable to Auth

Post by pbudden »

Hi,

I have the same problem as "hollettster"

I have checked, double checked and re dumped the MJ password from MJ running in Windows.

zuul*CLI> sip show registry
Host Username Refresh State Reg.Time
proxy1.Atlanta.talk4free.com:5 EXXXXXXXXXX0 120 Auth. Sent
sipgate.com:5060 3xxxxxxx0 105 Registered Sun, 27 Sep 2009 11:47:24


After following the directions on the first page of this thread, here are my sanitized settings:

username=EXXXxxxXXXX01
secret=Super Secret 20 Char pw
type=friend
useragent=MagicJack/1.80.466c (SJ Labs)
qualify=2000
port=5070
nat=yes
host=216.234.78.8
fromuser=EXXXxxxXXXX01
dtmfmode=inband
insecure=very
context=from-pstn



Registration String:
EXXXxxxXXXX01:(Super secret PW)@proxy1.Atlanta.talk4free.com:5070

Running the sip debug I see this:

<------------->
--- (9 headers 0 lines) ---
Responding to challenge, registration to domain/host name proxy1.Atlanta.talk4free.com
REGISTER 13 headers, 0 lines
Reliably Transmitting (no NAT) to 216.234.78.8:5070:
REGISTER sip:proxy1.Atlanta.talk4free.com:5070 SIP/2.0
Via: SIP/2.0/UDP 66.xxx.xx.xxx:5060;branch=z9hG4bK78600869;rport
From: <sip:[email protected]>;tag=as1da70e8b
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 109 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="EXXXxxxXXXX01", realm="stratus.com", algorithm=MD5, uri="sip:proxy1.Atlanta.talk4free.com:5070", nonce="7e8d28544_09258", response="75d8e50ec8821e077c4efb65360dc674"
Expires: 120
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0


---

<--- SIP read from 216.234.78.8:5070 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 66.xxx.xx.xxx:5060;branch=z9hG4bK78600869;rport
To: <sip:[email protected]>
From: <sip:[email protected]>;tag=as1da70e8b
Call-ID: [email protected]
CSeq: 109 REGISTER
User-Agent: ENSR2.5.48.6-IS1-RMRG0-RG900-EP376524
WWW-Authenticate: Digest nonce="1dd2b8cba_09272",realm="stratus.com",algorithm=MD5
Content-Length: 0

<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '[email protected]' Method: REGISTER
Reliably Transmitting (NAT) to 216.234.64.8:5070:
OPTIONS sip:216.234.64.8:5070 SIP/2.0
Via: SIP/2.0/UDP 66.xxx.xx.xxx:5060;branch=z9hG4bK41c02f60;rport
From: "Unknown" <sip:[email protected]>;tag=as26643835
To: <sip:216.234.64.8:5070>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Sun, 27 Sep 2009 16:03:36 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0

Am I missing something?

I tried this on two installs of TB.
One internal on my network, and the other with a direct connection to the Internet.

I am open to ideas if anyone has any?

Thanks
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Re: unable to Auth

Post by crackerjack »

pbudden wrote:Hi,

I have the same problem as "hollettster"

I have checked, double checked and re dumped the MJ password from MJ running in Windows.

zuul*CLI> sip show registry
Host Username Refresh State Reg.Time
proxy1.Atlanta.talk4free.com:5 EXXXXXXXXXX0 120 Auth. Sent
sipgate.com:5060 3xxxxxxx0 105 Registered Sun, 27 Sep 2009 11:47:24


After following the directions on the first page of this thread, here are my sanitized settings:

username=EXXXxxxXXXX01
secret=Super Secret 20 Char pw
type=friend
useragent=MagicJack/1.80.466c (SJ Labs)
qualify=2000
port=5070
nat=yes
host=216.234.78.8
fromuser=EXXXxxxXXXX01
dtmfmode=inband
insecure=very
context=from-pstn



Registration String:
EXXXxxxXXXX01:(Super secret PW)@proxy1.Atlanta.talk4free.com:5070

Running the sip debug I see this:

<------------->
--- (9 headers 0 lines) ---
Responding to challenge, registration to domain/host name proxy1.Atlanta.talk4free.com
REGISTER 13 headers, 0 lines
Reliably Transmitting (no NAT) to 216.234.78.8:5070:
REGISTER sip:proxy1.Atlanta.talk4free.com:5070 SIP/2.0
Via: SIP/2.0/UDP 66.xxx.xx.xxx:5060;branch=z9hG4bK78600869;rport
From: <sip:[email protected]>;tag=as1da70e8b
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 109 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="EXXXxxxXXXX01", realm="stratus.com", algorithm=MD5, uri="sip:proxy1.Atlanta.talk4free.com:5070", nonce="7e8d28544_09258", response="75d8e50ec8821e077c4efb65360dc674"
Expires: 120
Contact: <sip:[email protected]>
Event: registration
Content-Length: 0


---

<--- SIP read from 216.234.78.8:5070 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 66.xxx.xx.xxx:5060;branch=z9hG4bK78600869;rport
To: <sip:[email protected]>
From: <sip:[email protected]>;tag=as1da70e8b
Call-ID: [email protected]
CSeq: 109 REGISTER
User-Agent: ENSR2.5.48.6-IS1-RMRG0-RG900-EP376524
WWW-Authenticate: Digest nonce="1dd2b8cba_09272",realm="stratus.com",algorithm=MD5
Content-Length: 0

<------------->
--- (9 headers 0 lines) ---
Really destroying SIP dialog '[email protected]' Method: REGISTER
Reliably Transmitting (NAT) to 216.234.64.8:5070:
OPTIONS sip:216.234.64.8:5070 SIP/2.0
Via: SIP/2.0/UDP 66.xxx.xx.xxx:5060;branch=z9hG4bK41c02f60;rport
From: "Unknown" <sip:[email protected]>;tag=as26643835
To: <sip:216.234.64.8:5070>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Sun, 27 Sep 2009 16:03:36 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Length: 0

Am I missing something?

I tried this on two installs of TB.
One internal on my network, and the other with a direct connection to the Internet.

I am open to ideas if anyone has any?

Thanks
ADD /XXXxxxXXXX to your registration string (YOUR MAGICJACK DID NUMBER PRECEDED BY BACKSLASK)
restart asterisk

what is cli output when you type sip show registry and sip show peers?


good luck

Crackerjack
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
pbudden
MagicJack Newbie
Posts: 2
Joined: Wed May 28, 2008 1:57 pm

Re: unable to Auth

Post by pbudden »

crackerjack wrote:
ADD /XXXxxxXXXX to your registration string (YOUR MAGICJACK DID NUMBER PRECEDED BY BACKSLASK)
restart asterisk

what is cli output when you type sip show registry and sip show peers?


good luck

Crackerjack

Thanks for the reply,

the DID was added and removed. It is my understanding that addition helps to direct the call in the dialplan.
But in either case:

sip show registry
Host Username Refresh State Reg.Time
proxy01.Atlanta.talk4free.com:5 ExxxXXXxxxx0 120 Auth. Sent


sip show peers shows status ok.
I can get the exact CLI output when the wife is not using the MJ.

It looks like the registration is failing for some obscure reason
tvland
magicJack Apprentice
Posts: 23
Joined: Tue Mar 11, 2008 3:05 pm

Post by tvland »

tvland wrote:I'm running trixbox 2.8.0.1 with asterisk 1.6.0.9

The settings seem to work as far as today. My problem is that even with my telephone number at the end of the register string, incoming calls are not routed by that DID.To make it work, I have to use the any DID rule and the incoming calls work. Without the any DID rule, asterisk gets the call but returns a not in service message. I tried just the number or the username with the E and incoming calls are still not routed by the DID. I tried just about every way I could think of.

Could this be something to do with mjproxy?

Any suggestions?
About my Inbound route problem. I've tried everything mentioned in this thread. I am using MJMD5 on my tomato router, could this be stripping the /DID from my registration string?

Any ideas?
VaHam
Dan Should Pay Me
Posts: 851
Joined: Wed Feb 13, 2008 8:02 pm

Post by VaHam »

I haven't tried using the MJMD5 proxy but have you looked at the alternative method in the following thread? http://www.phoneservicesupport.com/magi ... t7243.html
Sad Times Ahead for this Obamanation !!!! Psalms 109:8
nightstryke
MagicJack User
Posts: 32
Joined: Sun Aug 09, 2009 7:36 pm

Post by nightstryke »

Could someone post a more in-depth walkthrough on installing and configuring with the latest trixbox ce version i believe it's trixbox CE 2.8.0.1?
tvland
magicJack Apprentice
Posts: 23
Joined: Tue Mar 11, 2008 3:05 pm

Post by tvland »

VaHam wrote:I haven't tried using the MJMD5 proxy but have you looked at the alternative method in the following thread? http://www.phoneservicesupport.com/magi ... t7243.html
If you read that thread you'll see I've already tried that! There is another problem involved patching Asterisk in trixbox. Since the latest version is a patched Asterisk, I haven't been able to find the source code files to patch my version which is Asterisk 1.6.0.9-samy-r27.
VaHam
Dan Should Pay Me
Posts: 851
Joined: Wed Feb 13, 2008 8:02 pm

Post by VaHam »

tvland wrote:
VaHam wrote:I haven't tried using the MJMD5 proxy but have you looked at the alternative method in the following thread? http://www.phoneservicesupport.com/magi ... t7243.html
If you read that thread you'll see I've already tried that! There is another problem involved patching Asterisk in trixbox. Since the latest version is a patched Asterisk, I haven't been able to find the source code files to patch my version which is Asterisk 1.6.0.9-samy-r27.
Ok after reading back thru that thread I do see yours is the last post from a few days ago. And yes you do have to patch the source for the version of Asterisk your using.

Best of luck to you!
Sad Times Ahead for this Obamanation !!!! Psalms 109:8
MST
magicJack Apprentice
Posts: 28
Joined: Mon Nov 02, 2009 11:35 pm

Post by MST »

How can we patch Asterisk in Trixbox. I have fallowed some guide but looks like some files are not in their folders.

Is there any guide for Trixbox patching?

MST
MST
markymark
MagicJack Newbie
Posts: 3
Joined: Sat Oct 02, 2010 5:52 pm

whats wrong? itrixbox ce and magic jack

Post by markymark »

[2010-10-03 05:48:33] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #1)
[2010-10-03 05:48:48] VERBOSE[8169] logger.c: == Parsing '/etc/asterisk/manager.conf': [2010-10-03 05:48:48] VERBOSE[8169] logger.c: Found
[2010-10-03 05:48:48] VERBOSE[8169] logger.c: == Parsing '/etc/asterisk/manager_additional.conf': [2010-10-03 05:48:48] VERBOSE[8169] logger.c: Found
[2010-10-03 05:48:48] VERBOSE[8169] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': [2010-10-03 05:48:48] VERBOSE[8169] logger.c: Found
[2010-10-03 05:48:48] VERBOSE[8169] logger.c: == Manager 'admin' logged on from 127.0.0.1
[2010-10-03 05:48:49] VERBOSE[8169] logger.c: == Manager 'admin' logged off from 127.0.0.1
[2010-10-03 05:48:53] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #4)
[2010-10-03 05:49:14] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #5)
[2010-10-03 05:49:15] VERBOSE[8172] logger.c: == Parsing '/etc/asterisk/manager.conf': [2010-10-03 05:49:15] VERBOSE[8172] logger.c: Found
[2010-10-03 05:49:15] VERBOSE[8172] logger.c: == Parsing '/etc/asterisk/manager_additional.conf': [2010-10-03 05:49:15] VERBOSE[8172] logger.c: Found
[2010-10-03 05:49:15] VERBOSE[8172] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': [2010-10-03 05:49:15] VERBOSE[8172] logger.c: Found
[2010-10-03 05:49:15] VERBOSE[8172] logger.c: == Manager 'admin' logged on from 127.0.0.1
[2010-10-03 05:49:15] VERBOSE[8172] logger.c: == Manager 'admin' logged off from 127.0.0.1
[2010-10-03 05:49:30] VERBOSE[8175] logger.c: == Parsing '/etc/asterisk/manager.conf': [2010-10-03 05:49:30] VERBOSE[8175] logger.c: Found
[2010-10-03 05:49:30] VERBOSE[8175] logger.c: == Parsing '/etc/asterisk/manager_additional.conf': [2010-10-03 05:49:30] VERBOSE[8175] logger.c: Found
[2010-10-03 05:49:30] VERBOSE[8175] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': [2010-10-03 05:49:30] VERBOSE[8175] logger.c: Found
[2010-10-03 05:49:30] VERBOSE[8175] logger.c: == Manager 'admin' logged on from 127.0.0.1
[2010-10-03 05:49:31] VERBOSE[8175] logger.c: == Manager 'admin' logged off from 127.0.0.1
[2010-10-03 05:49:34] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #6)
[2010-10-03 05:49:54] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #9)
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Post by crackerjack »

Found your problem right here...
[2010-10-03 05:48:33] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #1)
Obviously you need to type faster, and learn some forum manners
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
markymark
MagicJack Newbie
Posts: 3
Joined: Sat Oct 02, 2010 5:52 pm

whats wrong? itrixbox ce and magic jack

Post by markymark »

crackerjack wrote:Found your problem right here...
[2010-10-03 05:48:33] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #1)
Obviously you need to type faster, and learn some forum manners
what do you mean?
User avatar
sabresfan
Dan Should Pay Me
Posts: 673
Joined: Thu Feb 12, 2009 7:12 pm
Location: Buffalo NY

Re: whats wrong? itrixbox ce and magic jack

Post by sabresfan »

markymark wrote:
crackerjack wrote:Found your problem right here...
[2010-10-03 05:48:33] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #1)
Obviously you need to type faster, and learn some forum manners
what do you mean?
http://www.youtube.com/watch?v=bVL3b1wKZQU
markymark
MagicJack Newbie
Posts: 3
Joined: Sat Oct 02, 2010 5:52 pm

Re: whats wrong? itrixbox ce and magic jack

Post by markymark »

sabresfan wrote:
markymark wrote:
crackerjack wrote:Found your problem right here...
[2010-10-03 05:48:33] NOTICE[2957] chan_sip.c: -- Registration for '[email protected]' timed out, trying again (Attempt #1)
Obviously you need to type faster, and learn some forum manners
what do you mean?
http://www.youtube.com/watch?v=bVL3b1wKZQU
i need help...im not kidding....y r so mean?
scotty562
MagicJack Newbie
Posts: 7
Joined: Wed Oct 27, 2010 9:25 pm

Post by scotty562 »

I tried with mjproxy and connecting directly to my closet proxy. If I used mjproxy, my outbound worked. If I used the closest proxy, only incoming worked.

Sooo I used both. The settings for the trunk have the outbound as the mjproxy settings and the inbound as the closet proxy settings. I'm a noob at this myself so I'm not sure why this works.. but hey it works :).
Post Reply