MJ with Asterisk. Need some help

magicJack Tips and Tricks

Moderators: Bill Smith, Pilot

Post Reply
simpat1zq
MagicJack Newbie
Posts: 2
Joined: Thu Jul 17, 2008 9:07 am

MJ with Asterisk. Need some help

Post by simpat1zq »

Hi, I just got MJ working with Asterisk. However, I'm having trouble getting an inbound call. I am pretty sure that it is setup correctly, because when I try to dial the MJ number I get a message saying "The number you have dialed is not in service".

The reason I know that it is getting to Asterisk is because I can see it in the logs, and I can even see the callerid of the number I'm calling from in the logs.

So I know this is more of an Asterisk question, but I just thought I would ask about it here. What am I missing in the config to get an inbound call?

I setup an any DID/any CID rule that is supposed to go striaght to on hold, but all I get is that message.

Any help would be greatly appreciated.
dan
Dan isn't smart enough to hire me
Posts: 113
Joined: Mon Nov 12, 2007 6:57 pm
Location: Denver

Post by dan »

add 5070 to the end of your register string


i.e

magicjackproxy:5070

if still having problems you can tgry

magicjackproxy:5070/your telephone #
oliverda
magicJack Apprentice
Posts: 19
Joined: Thu Oct 09, 2008 10:08 pm

Post by oliverda »

Same problem here. Inbound, all the setup is correct here. I'm sure. I even tried 5070/NUMBER.. [/img]
dan
Dan isn't smart enough to hire me
Posts: 113
Joined: Mon Nov 12, 2007 6:57 pm
Location: Denver

Post by dan »

please verify if your have your register string set up? Inbound would not work for me until I added the string below


Emynumber01:[email protected]:5070/my# without the E or 01


make sure y ou remove the E and 01 at the end of the string
dan
Dan isn't smart enough to hire me
Posts: 113
Joined: Mon Nov 12, 2007 6:57 pm
Location: Denver

Post by dan »

Once you get the inbound working. you should look into Callerdid Superfecta by nerd vittles.. Works great. this allows CNAM on inbound MJ calls.
oliverda
magicJack Apprentice
Posts: 19
Joined: Thu Oct 09, 2008 10:08 pm

Post by oliverda »

Same issue here. I'm using pbx in a flash. Outbound works just fine. Inbound is the problem.... :(
Pismire
magicJack Apprentice
Posts: 26
Joined: Wed Feb 13, 2008 1:33 pm

Post by Pismire »

You need to create an inbound route.
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

and

Post by crackerjack »

Pismire wrote:You need to create an inbound route.

AND point it toward a valid destination.

Lacking that you will hear Allison'd admonition that you have reached a non-working number with the MJ DID referenced (Minus the ...01 at the end). If you do hear the xxx-yyy-nnnn01 then the MJ system voicemail answered and the call never hit your box.
Check the CLI to be sure
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
oliverda
magicJack Apprentice
Posts: 19
Joined: Thu Oct 09, 2008 10:08 pm

Post by oliverda »

This is what i have.
My destination is an IVR also i tried a direct Extention.

MagicJack-outbound/ExxxXXX 67.91.233.134 5070 OK (85 ms)
MagicJack-Inbound/ExxxXXX 67.91.233.134 5070 OK (86 ms)

67.91.233.134:5070 ExxxXXXxxxx01 105 Registered Fri, 28 Nov 2008 19:16:25

you call can't be completed as dial, please check the number and dial again. This is not coming from the pbx. This is coming from verizon and other providers that i tried.
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Post by crackerjack »

oliverda wrote:This is what i have.
My destination is an IVR also i tried a direct Extention.

MagicJack-outbound/ExxxXXX 67.91.233.134 5070 OK (85 ms)
MagicJack-Inbound/ExxxXXX 67.91.233.134 5070 OK (86 ms)

67.91.233.134:5070 ExxxXXXxxxx01 105 Registered Fri, 28 Nov 2008 19:16:25

you call can't be completed as dial, please check the number and dial again. This is not coming from the pbx. This is coming from verizon and other providers that i tried.
Try a different proxy. Don't forget reg string
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
oliverda
magicJack Apprentice
Posts: 19
Joined: Thu Oct 09, 2008 10:08 pm

Post by oliverda »

Same problem. I don't even know what is the problem at this point. When i plug MJ using usb it works just fine.

MagicJack-outbound/EXXXXXX 216.234.64.8 5070 OK (99 ms)
MagicJack-Inbound/EXXXXXX 216.234.64.8 5070 OK (101 ms)

This my network layout. Modem router + 2 routers. PBX is on 2nd router. I have 3 trunks from 3 different providers in my pbx setup and they all work just fine.
dan
Dan isn't smart enough to hire me
Posts: 113
Joined: Mon Nov 12, 2007 6:57 pm
Location: Denver

Post by dan »

Are you sure that call is not hitting your pbx. when you do a asterisk -vvvvr do you not see your call. Also you did not verify if you have set up your registration string correct.. Again no inbound calls would work for me until I changed the regisger string.. I am pretty sure the problem is with your PBX system not verizion.. I have had no problems with any carriers completing calls.
teddy_b
MagicJack Contributor
Posts: 55
Joined: Sun Dec 30, 2007 3:15 am

Post by teddy_b »

What Asterisk version are you using?

If 1.6.0.x, then do not bother - it most probably won't work with MJ as it has a bug with registrations for non-standard SIP port (i.e. not 5060) - it sends the wrong Contact header in REGISTER messages. I believe that bug is fixed in 1.6.1beta, but it has not been released yet.

If you're using 1.4.x - everything should work. Try to enable SIP debug (sip set debug), increase the verbosity (core set verbose 15) and watch * console during the incoming call - maybe it will show you something...
Last edited by teddy_b on Sun Nov 30, 2008 4:48 pm, edited 1 time in total.
dan
Dan isn't smart enough to hire me
Posts: 113
Joined: Mon Nov 12, 2007 6:57 pm
Location: Denver

Post by dan »

I did not know that about 1.6 if its the contact field then I dont know a way to change that. I thought that the contact field was inputed by the MJ proxies. with their 200ok response. could be wrong. will look into that.

I dont use my MJ trunk much. It used to be my primary outgoing trunk but when the enginners at MJ started stripping P-asserted-Identity not allowing number spoofing I stopped using it..


I agree with Teddy check the Version number. if its not 1.6 then follow the instructions from previous posts.
darkfox
MagicJack Newbie
Posts: 5
Joined: Mon Dec 01, 2008 5:47 pm

Incoming Route DID number?

Post by darkfox »

I'm trying to set the incoming route DID number, but am not having success. I can only receive incoming calls if I leave this blank. (I'd like to separate out my incoming trunks by where they are coming from.) Any ideas?

[I'm running PBX In a Flash]
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Re: Incoming Route DID number?

Post by crackerjack »

darkfox wrote:I'm trying to set the incoming route DID number, but am not having success. I can only receive incoming calls if I leave this blank. (I'd like to separate out my incoming trunks by where they are coming from.) Any ideas?

[I'm running PBX In a Flash]

Pls post your registration string
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
darkfox
MagicJack Newbie
Posts: 5
Joined: Mon Dec 01, 2008 5:47 pm

Re: Incoming Route DID number?

Post by darkfox »

crackerjack wrote:
darkfox wrote:I'm trying to set the incoming route DID number, but am not having success. I can only receive incoming calls if I leave this blank. (I'd like to separate out my incoming trunks by where they are coming from.) Any ideas?

[I'm running PBX In a Flash]

Pls post your registration string
EXXXXXXXXXX01:[email protected]:5070
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Re: Incoming Route DID number?

Post by crackerjack »

darkfox wrote:
crackerjack wrote:
darkfox wrote:I'm trying to set the incoming route DID number, but am not having success. I can only receive incoming calls if I leave this blank. (I'd like to separate out my incoming trunks by where they are coming from.) Any ideas?

[I'm running PBX In a Flash]

Pls post your registration string
EXXXXXXXXXX01:[email protected]:5070
add the following at the end of your reg string /xxxyyyzzzz
(This is your 10 digit MJ phone number preceded by /)
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
darkfox
MagicJack Newbie
Posts: 5
Joined: Mon Dec 01, 2008 5:47 pm

Re: Incoming Route DID number?

Post by darkfox »

crackerjack wrote:
darkfox wrote:
crackerjack wrote:
Pls post your registration string
EXXXXXXXXXX01:[email protected]:5070
add the following at the end of your reg string /xxxyyyzzzz
(This is your 10 digit MJ phone number preceded by /)
That worked! Thanks!
calgaryhero
MagicJack Newbie
Posts: 5
Joined: Sat Jan 10, 2009 4:54 am

Post by calgaryhero »

Anyone know how to "spoof" the outgoing Caller ID via Trixbox?
crackerjack
Dan Should Pay Me
Posts: 784
Joined: Fri Nov 16, 2007 9:32 pm

Post by crackerjack »

NO CAN DO, fuggedaboutit
Good Luck

CrackerJack

MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
mberlant
Dan Should Pay Me
Posts: 829
Joined: Sun Feb 01, 2009 7:47 pm
Location: Japan

Post by mberlant »

If the call is successfully hitting the Asterisk log (as stated in the very first posting), the problem is NOT in the basic formatting of anything in sip.conf. These symptoms indicate that the call is successfully hitting Asterisk, but Asterisk does not know what to do with it.

You now need to trace the path of the call as it goes from the register= line in sip.conf to the [in-sip] (or equivalent) context in extensions.conf, and further along through extensions.conf until it rings an extension phone, goes to voice mail, etc.

At the end of the register= line is a forward slash, followed by a label. Incoming calls on this trunk are sent to the exten line in [in-sip] that contains this label. For example, if your MJ number is E311555236801, you might end the register= line with /0003115552368 as this label. Then, in [in-sip], create a group of exten lines to handle pre-processing of this call, like:

Code: Select all

exten => 0003115552368,1,Set(CALLERID(number)=1${CALLERID(number)})
exten => 0003115552368,2,SetGroup(MJ2368)
exten => 0003115552368,3,GotoIf($[ ${GROUP_COUNT()} < 3 ]?4:104)
exten => 0003115552368,4,Goto(from-magicJack-2368,s,1)
exten => 0003115552368,104,Congestion()
It is essential to include lines 2,3 and 104 to ensure that you do not raise a red flag with MJ by ever permitting more than two talk paths to be in service at one time (a 3-way call). You need to put these lines in your outbound calling routine for this line, as well (even more important to restrict outbound simultaneous calls than inbound!).

Then, elsewhere in extensions.conf you need to receive the call from this handler (line 4) and send it where you want it to go. In this example, we'll ring extension 123 and go to mailbox 123 from there.

Code: Select all

[from-magicJack-2368]
exten => s,1,Dial(SIP/123,30,t)
exten => s,2,VoiceMail(u123)
exten => s,102,VoiceMail(b123)
This should give you enough to move forward. Please let us know if you hit another problem.
Post Reply