Page 2 of 2

Posted: Sun Jan 25, 2009 4:05 pm
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

Posted: Wed Jan 28, 2009 10:54 am
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.

freepbx

Posted: Wed Jan 28, 2009 7:31 pm
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

Posted: Thu Apr 02, 2009 4:08 am
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!

Posted: Thu Apr 02, 2009 8:10 am
by MagicDump
vandi,

Try
userdomain=proxy1.miami.talk4free.com

Posted: Thu Apr 02, 2009 8:41 am
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.

Posted: Thu Apr 02, 2009 11:23 am
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,

Got both inbound and outbound working with MJ FreePBX

Posted: Thu Apr 02, 2009 2:33 pm
by vandi
I'll post details shortly... I have to go play with my daughter...

Posted: Thu Apr 02, 2009 3:18 pm
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>

Re: freepbx

Posted: Fri Apr 03, 2009 7:17 pm
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...

Posted: Sun Apr 05, 2009 7:23 am
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

conf

Posted: Sun Apr 05, 2009 12:32 pm
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?

Re: conf

Posted: Mon Apr 06, 2009 8:49 pm
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

Posted: Thu Apr 09, 2009 3:16 pm
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.

Posted: Thu Apr 09, 2009 3:25 pm
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

Posted: Thu Apr 09, 2009 3:31 pm
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

Posted: Sat Apr 11, 2009 11:59 pm
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.

Posted: Sun Apr 12, 2009 9:13 am
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.

Posted: Sun Apr 12, 2009 2:52 pm
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.)

Posted: Mon Apr 13, 2009 3:43 am
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.

Posted: Mon Apr 13, 2009 9:42 pm
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.)

Posted: Mon Apr 13, 2009 9:51 pm
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...

Posted: Thu Apr 16, 2009 9:48 am
by hepe
important thing to do is putting the;


context=from-trunk

inside the box

Outbound?

Posted: Mon May 04, 2009 8:33 am
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!

Re: Outbound?

Posted: Mon May 04, 2009 9:53 am
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!

Posted: Mon May 04, 2009 1:06 pm
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!

Posted: Tue May 05, 2009 8:44 am
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!

Posted: Mon May 18, 2009 11:27 pm
by jhorrocks
what did you have to add to conf file? mine is same as yours same results you had.

Posted: Tue May 19, 2009 12:05 am
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

Posted: Wed May 20, 2009 12:50 pm
by jhorrocks
SO anyone have some advice???

Posted: Tue Jun 09, 2009 12:20 am
by mykroft
1st post updated - inbound/outbound is now working for me.

Note - you still can not send a Caller ID

Here are my settings on elastix

Posted: Wed Jul 29, 2009 11:41 pm
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.

Posted: Sun Sep 27, 2009 11:57 am
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?

unable to Auth

Posted: Sun Sep 27, 2009 12:17 pm
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

Re: unable to Auth

Posted: Sun Sep 27, 2009 5:39 pm
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

Re: unable to Auth

Posted: Sun Sep 27, 2009 5:59 pm
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

Posted: Sat Oct 03, 2009 10:50 pm
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?

Posted: Sun Oct 04, 2009 1:27 am
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

Posted: Sun Oct 04, 2009 1:58 pm
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?

Posted: Sun Oct 04, 2009 11:23 pm
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.

Posted: Mon Oct 05, 2009 2:16 am
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!

Posted: Thu Nov 05, 2009 12:00 pm
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

whats wrong? itrixbox ce and magic jack

Posted: Sat Oct 02, 2010 5:55 pm
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)

Posted: Sat Oct 02, 2010 7:02 pm
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

whats wrong? itrixbox ce and magic jack

Posted: Sat Oct 02, 2010 11:19 pm
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?

Re: whats wrong? itrixbox ce and magic jack

Posted: Sun Oct 03, 2010 3:19 am
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

Re: whats wrong? itrixbox ce and magic jack

Posted: Sun Oct 03, 2010 4:59 am
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?

Posted: Thu Oct 28, 2010 8:50 am
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 :).