asterisk 502 Bad Gateway
Moderators: Pilot, Bill Smith
asterisk 502 Bad Gateway
I had magicjack working fine on asterisk up till a few days ago and didn't make any changes to break it. I can still receive phone calls fine but cannot make any calls. I am getting a "SIP/2.0 502 Bad Gateway" response from magicjack when attempting to make a phone call. Any ideas?
-
- Dan Should Pay Me
- Posts: 784
- Joined: Fri Nov 16, 2007 9:32 pm
Re: asterisk 502 Bad Gateway
Is it possible you have gone over the 'limit' for outbound calling minutes??plut0 wrote:I had magicjack working fine on asterisk up till a few days ago and didn't make any changes to break it. I can still receive phone calls fine but cannot make any calls. I am getting a "SIP/2.0 502 Bad Gateway" response from magicjack when attempting to make a phone call. Any ideas?
What does the cli show to sip show registry and sip show peers commands?
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!!!"
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
-
- Dan Should Pay Me
- Posts: 784
- Joined: Fri Nov 16, 2007 9:32 pm
I think you're confused here...plut0 wrote:Registry shows registered and peer is OK.
What does the cli show to sip show registry and sip show peers commands?
please post here and sanitize as needed
Good Luck
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
Code: Select all
asterisk*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
proxy01.newyork.talk4free.com: N E**********01 105 Registered Wed, 27 Jan 2010 08:29:14
1 SIP registrations.
asterisk*CLI> sip show peers
Name/username Host Dyn Nat ACL Port Status
1000/1000 192.168.0.8 D N 5060 Unmonitored
1001/1001 (Unspecified) D N 5060 Unmonitored
magicjack/E**********01 216.234.64.8 N 5070 OK (81 ms)
3 sip peers [Monitored: 1 online, 0 offline Unmonitored: 2 online, 0 offline]
-
- Dan Should Pay Me
- Posts: 784
- Joined: Fri Nov 16, 2007 9:32 pm
Looks good from here. Try a different proxy dc or baltimoreplut0 wrote:Code: Select all
asterisk*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time proxy01.newyork.talk4free.com: N E**********01 105 Registered Wed, 27 Jan 2010 08:29:14 1 SIP registrations. asterisk*CLI> sip show peers Name/username Host Dyn Nat ACL Port Status 1000/1000 192.168.0.8 D N 5060 Unmonitored 1001/1001 (Unspecified) D N 5060 Unmonitored magicjack/E**********01 216.234.64.8 N 5070 OK (81 ms) 3 sip peers [Monitored: 1 online, 0 offline Unmonitored: 2 online, 0 offline]
reboot your server.
Do you have an IP phone or just using softphone?
try using the most recent user-agent string.
Grasping at straws here.
What asterisk compilation are you using?
Good Luck
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
I'm using asterisk 1.6.2.0 on gentoo. The user agent string should be current, "MagicJack/1.90.521b (SJ Labs)". I did try restarting the asterisk service a few times. I tried hosts proxy01.newyork.talk4free.com and proxy01.boston.talk4free.com, I could try a few more I guess. I'm using a pap2t device connected to asterisk locally, I will try a soft phone also.
Like I said, I can receive calls fine just can't make any outbound calls.
Like I said, I can receive calls fine just can't make any outbound calls.
Are you using MJMDM5 proxy or a modified chan_sip.so?plut0 wrote:I'm using asterisk 1.6.2.0 on gentoo. The user agent string should be current, "MagicJack/1.90.521b (SJ Labs)". I did try restarting the asterisk service a few times. I tried hosts proxy01.newyork.talk4free.com and proxy01.boston.talk4free.com, I could try a few more I guess. I'm using a pap2t device connected to asterisk locally, I will try a soft phone also.
Like I said, I can receive calls fine just can't make any outbound calls.
Sad Times Ahead for this Obamanation !!!! Psalms 109:8
Same here. I'm on MJMD5 proxy. This started happening on both by MJ accounts over the weekend, probably Monday morning. Even the one I've had for about 2 years running directly from Asterisk (no proxy) stopped working.
I plugged one of the devices back in and re-registered as prompted. Dumped it, same password and account but still wont work.
I had to resort to plug in the dongle and routing through an ATA (yuk). The MJ guys are probably reading this and laughing. Too bad because it worked very well for me. I bought 5 years of service as a way to support them but it won't do if I have to use an ATA. With Google Voice SIP looming, they should look to support us a bit better. Maybe a bit more money for the accounts, maybe a minimum number of years, etc. They're probably using Asterisk for their own system so it'd be only fair they support us.
Thanks,
JR
I plugged one of the devices back in and re-registered as prompted. Dumped it, same password and account but still wont work.
I had to resort to plug in the dongle and routing through an ATA (yuk). The MJ guys are probably reading this and laughing. Too bad because it worked very well for me. I bought 5 years of service as a way to support them but it won't do if I have to use an ATA. With Google Voice SIP looming, they should look to support us a bit better. Maybe a bit more money for the accounts, maybe a minimum number of years, etc. They're probably using Asterisk for their own system so it'd be only fair they support us.
Thanks,
JR
Funny you should mention that JRoque...I've admined asterisk as a PBX at three different companies so I'm pretty familiar with it. The template magicjack uses for voicemail via email leads me to believe they are using asterisk as their PBX. Also, if you listen to their voicemail system, the voice is Allison Smith, she works for digium, the creators of Asterisk.
Yep, that's Allison. I didn't know if she had licensed her voice to them separately but it seems they are indeed using Asterisk. I tried an IAX2 connection early on but they have that blocked. Let's hope they change their stance on supporting outside Asterisk users.
In the meantime, I'm stuck with a stupid Win32 box, their software and an ATA.
Thanks,
JR
In the meantime, I'm stuck with a stupid Win32 box, their software and an ATA.
Thanks,
JR
-
- Dan Should Pay Me
- Posts: 784
- Joined: Fri Nov 16, 2007 9:32 pm
They are using asterisk for the voicemail<->email part of the system. I thought that has always been obvious. They are using some much heavier iron for their voice backend. Check the agent strings on the invites...plut0 wrote:Funny you should mention that JRoque...I've admined asterisk as a PBX at three different companies so I'm pretty familiar with it. The template magicjack uses for voicemail via email leads me to believe they are using asterisk as their PBX. Also, if you listen to their voicemail system, the voice is Allison Smith, she works for digium, the creators of Asterisk.
BTW, oldy, moldy MJ sip credentials still working w/o MJMDS, just checked
Later
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!!!"
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
Great!!! "sendrpid=no" included in my Magic Jack PEER Details did the trick and now I can resume making outgoing calls through my magic Jack trunk from my Asterisk server. Thanks a lot.marius wrote:I had the same problem with my asterisk and I managed to fix it. In my case the solution was to set sendrpid=no in sip.conf for the magicjack account.
Also, I was setting the P-Asserted-Identity sip header in my dialplan, which I had to disable.
BTW, what change did Magic Jack implement to require this line in your trunk detail?
little off subject but I used to use a trunk with MJ via asterisk have not for almost a year now. are you guys authenticating via the trunk configs? I know there was some program needed where you had to use a windows PC running a proxy script something called MJM5 I think
If registration can be done via Asterisk alone would someone be kind enough to post the trunk configs and string
If registration can be done via Asterisk alone would someone be kind enough to post the trunk configs and string
Re: asterisk 502 Bad Gateway
Check for recent updates or changes on MagicJack's end; a SIP 502 error often signals a server issue or temporary outage.