MagicJack Outbound Channels

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
deftx
MagicJack Newbie
Posts: 2
Joined: Thu Oct 09, 2008 12:47 am

MagicJack Outbound Channels

Post by deftx »

:D
Last edited by deftx on Tue Oct 21, 2008 4:32 am, edited 2 times in total.
teddy_b
MagicJack Contributor
Posts: 55
Joined: Sun Dec 30, 2007 3:15 am

Re: MagicJack Outbound Channels

Post by teddy_b »

deftx wrote:I'm almost afraid to use my MJ in this manner for fear that it'll raise red flags.
That's the valid concern. Even if they don't cancel your service immediately, such usage defnitely will raise a red flag sooner or later. It's a good idea to limit the channels - otherwise using MJ without the dongle may soon be over for everybody - not only for yourself. And the more users abuse the possibilities, the sooner it will happen.
mykroft
MagicJack User
Posts: 47
Joined: Sun Oct 19, 2008 12:28 am

Post by mykroft »

how did you get your MJ password - I am trying to get my asterisk to provision directly without usb dongle...

Thanks
Myk
mykroft
MagicJack User
Posts: 47
Joined: Sun Oct 19, 2008 12:28 am

Post by mykroft »

ok, I got my creds - but i am not sure how to configure the outbound section of the trunk.

I got the registration and inbound working, but am not sure how to configure the outbound.

I am using TrixBox with FreeBPX doing the editing - I dont want to edit the config files by hand cause I always mess them up.

Can you past your outbound section for some assistance?

Thanks
Myk
dishem
MagicJack Newbie
Posts: 7
Joined: Mon Oct 13, 2008 7:23 pm

Post by dishem »

I have been trying to use it with Asterisk with and without registering, but no luck. When I do try to register, I just keep getting this:

[Oct 19 09:21:52] NOTICE[9339]: chan_sip.c:6984 sip_reg_timeout: -- Registration for 'E<mynumber>01@proxy1.<mycity>.talk4free.com' timed out, trying again (Attempt #1)

When I try to make an outgoing call without registering, I get this:

-- Got SIP response 400 "Bad Request" back from <mjproxy IP>

Like mykroft asked, could you paste your outbound section infos?

Thanks.
mykroft
MagicJack User
Posts: 47
Joined: Sun Oct 19, 2008 12:28 am

Post by mykroft »

are you adding the port of 5070 on the end of your registration?

my reg is:

EXXXXXXXXXX01:[email protected]:5070

my trunk incoming settings are:

username=EXXXXXXXXXX01
type=friend
secret=XXXXXXXXXXXXXXXXXXXX
port=5070
nat=yes
insecure=very
host=XX.XX.XX.XX
fromuser=EXXXXXXXXXX01
dtmfmode=inband
qualify=2000


I get sucessful registration and can receive inbound, but I dont know what to put for the outbound section. I have tried:

username=
type=peer
secret=
host=

but the channel comes back busy when i try and dial out...

Is there a way also to set a user agent string from a asterisk trunk?
Last edited by mykroft on Sun Oct 19, 2008 5:05 pm, edited 2 times in total.
dishem
MagicJack Newbie
Posts: 7
Joined: Mon Oct 13, 2008 7:23 pm

Post by dishem »

Yes. My register line is:

register => E<mynumber>01:<mypassword>@proxy1.<mycity>.talk4free.com:5070

and the latest sip entry I tried is:

[magicjack]
context=frommagicjack
username=E<mynumber>01
fromuser=E<mynumber>01
authuser=E<mynumber>01
type=friend
secret=<mypassword>
port=5070
nat=yes
insecure=very
host=<mjproxyIP>
fromdomain=sip.magicjack.com
dtmfmode=inband
qualify=2000
canreinvite=no
allow=all
neo2121
Dan isn't smart enough to hire me
Posts: 282
Joined: Wed Jan 09, 2008 10:05 am
Contact:

Post by neo2121 »

try resolving the ip of the proxy that you wish to use this might work better for you had the same problem on a few different devices with actually typing out the url. as far as the out bound stuff you just use the same proxy and user name and password on port 5070
dishem
MagicJack Newbie
Posts: 7
Joined: Mon Oct 13, 2008 7:23 pm

Post by dishem »

I've tried it all. IPs, hostnames, etc. Registration just keeps timing out, and outgoing calls give 400 Bad Request.

In the sip debug info, it seems like it's sometimes trying port 5060. I wonder if my version of * is buggy or something.
Post Reply