magicJack and MagicJack Plus Support, Reviews, FAQs and Hacks Forum Index magicJack and MagicJack Plus Support, Reviews, FAQs and Hacks
magicJack and magicJack Plus Unofficial Technical Support. Your Magic Jack and Magic Jack Plus phone service information resource
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
mjproxy questions...

 
Post new topic   Reply to topic    magicJack and MagicJack Plus Support, Reviews, FAQs and Hacks Forum Index -> Using magicJack on Linux
View previous topic :: View next topic  
Author Message
gnat
MagicJack Newbie


Joined: 13 May 2010
Posts: 4

PostPosted: Thu May 13, 2010 12:46 am    Post subject: mjproxy questions... Reply with quote

Hello,

So after reading around a bunch I've got a nearly working setup however it isn't very reliable and I'm wondering about a few things.

I have a linksys router running the tomato firmware. I installed mjproxy on it and run it as seen in other threads. I use ekiga as a softphone and have it configured to use the proxy.

Once I see the 'Registered' message I can call my mj number and it rings, I can use the mic/speakers to talk etc... However after hmm maybe 5 minutes calls go directly to voicemail.

I am wondering if I need to set anything up firewall/connection tracking wise or if anyone knows why I am experiencing the above described symptoms... I am a pretty compentent linux/networking admin but don't know much about SIP/RTSP protocols and whatnot. In looking at the packet captures I saw a lot that made it look like a proxy is required (embedding the internal private 192.168.x.x addresses etc...)

Anyway - pointers or anything would be appreciated.
Back to top
View user's profile Send private message
Google
AdSense





PostPosted: Thu May 13, 2010 12:46 am    Post subject: Magicjack support, tips, tricks, and hacks


Back to top
mountaineer
magicJack Apprentice


Joined: 10 May 2010
Posts: 11

PostPosted: Thu May 13, 2010 9:56 am    Post subject: Reply with quote

I'm testing the Ekiga & mjproxy combo too, but so far I haven't run into that issue. I'll see if that happens here as well. See this link for a possible explanation:

http://tinyurl.com/2do7jye


Here's a snippet:

"I can make calls, but if I let Ekiga running after some time I can't receive any calls"

Why this ?

Ekiga registers with a service using UDP and the service expects to find Ekiga at the port it sent the registration. Well, in Linux with IP iptables, this port is only accessible for 180 seconds after the registration. After this time, the firewall will block the packets coming from the SIP service, as it considers the "session" to be over.

There are two ways of coping with that:

1. If you don't have control of your host, you can configure each account to refresh the registration every 180 seconds.

2. If you can control your host (root), you can set the UDP iptables timeout to one hour.
Back to top
View user's profile Send private message
gnat
MagicJack Newbie


Joined: 13 May 2010
Posts: 4

PostPosted: Thu May 13, 2010 10:40 am    Post subject: Reply with quote

mountaineer wrote:
I'm testing the Ekiga & mjproxy combo too, but so far I haven't run into that issue. I'll see if that happens here as well. See this link for a possible explanation:

2. If you can control your host (root), you can set the UDP iptables timeout to one hour.



That seems to be working for me so far. The router that I'm running even has the timeout in its admin panel so I can do it without resorting to ugly workarounds... Thanks for pointing me there.


I have one more question... I'm completely new to SIP stuff, and I'm wondering how to use ekiga to make an outgoing call with the magicjack... Do you happen to know? The closest I've come is it would call out but I'd get a pre-recorded test message from YMAX or something....
Back to top
View user's profile Send private message
mountaineer
magicJack Apprentice


Joined: 10 May 2010
Posts: 11

PostPosted: Thu May 13, 2010 10:46 am    Post subject: Reply with quote

gnat,

I've just posted my results with Ekiga & MJ here:
http://www.magicjacksupport.com/magicjack-runs-natively-on-linux-t8566.html

good luck and keep us posted with your results
Back to top
View user's profile Send private message
gnat
MagicJack Newbie


Joined: 13 May 2010
Posts: 4

PostPosted: Thu May 13, 2010 11:13 am    Post subject: Reply with quote

mountaineer wrote:
gnat,

I've just posted my results with Ekiga & MJ here:
http://www.magicjacksupport.com/magicjack-runs-natively-on-linux-t8566.html

good luck and keep us posted with your results



That now works. It takes what seems like *forever* to call out, or at least start ringing. I can deal with that. Although the couple people I called seemed to hear themselves echo. Very delayed echo in fact. Any tips on how to reduce that?

I'm wondering if it has anything to do with the proxy I'm using. I took the proxy IP address from the memory dump. There were quite a few, but I took the first one. However it is no where near me physically... Currenly I'm using the dallas proxy, and I'm in canada... I can't imagine a further city. Would that affect this? And should I be able to use any of the proxies?

I'll be testing my theory as I wait but I never knew if the failure to register had anything to do with the proxy I chose. Now that I have it working I'll change only the proxy and see...
Back to top
View user's profile Send private message
gnat
MagicJack Newbie


Joined: 13 May 2010
Posts: 4

PostPosted: Thu May 13, 2010 11:48 am    Post subject: Reply with quote

So I've tracerouted all the proxies to get the ones with the fewest hops to me. I'm now using seattle. It also seems to have the best ping response times. I'm not using QoS but I'm not sure how that would help. I don't hear an echo, they don't hear me echo, nor am I delayed when speaking... Any ideas? I may try using the MJ in a mac box I have locally and see if there is an echo... though my initial calls with the device no one mentioned it when testing.
Back to top
View user's profile Send private message
mountaineer
magicJack Apprentice


Joined: 10 May 2010
Posts: 11

PostPosted: Thu May 13, 2010 12:20 pm    Post subject: Reply with quote

You might fiddle with Ekiga's echo cancellation option. Edit --> Preferences --> Audio --> Codecs --> Echo Cancellation

So far, I haven't run into echo issues. Sound quality has been good. But I'm fairly close to the proxy, so I suppose that helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    magicJack and MagicJack Plus Support, Reviews, FAQs and Hacks Forum Index -> Using magicJack on Linux All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB Turbo Extended Edition © 2010, phpBB Group