MJ with Asterisk. Need some help
Moderators: Bill Smith, Pilot
MJ with Asterisk. Need some help
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.
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.
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
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
-
crackerjack
- Dan Should Pay Me
- Posts: 784
- Joined: Fri Nov 16, 2007 9:32 pm
and
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!!!"
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
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.
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
Try a different proxy. Don't forget reg stringoliverda 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.
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!!!"
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.
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.
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.
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...
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.
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.
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.
Incoming Route DID number?
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]
[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?
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!!!"
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
Re: Incoming Route DID number?
EXXXXXXXXXX01:[email protected]:5070crackerjack 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
-
crackerjack
- Dan Should Pay Me
- Posts: 784
- Joined: Fri Nov 16, 2007 9:32 pm
Re: Incoming Route DID number?
add the following at the end of your reg string /xxxyyyzzzzdarkfox wrote:EXXXXXXXXXX01:[email protected]:5070crackerjack 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
(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!!!"
CrackerJack
MagicJack Customer #73
MagicJack user since May 2007
MagicJack abuser since June 2007
"I gots mo' numbers than a Lotto machine!!!"
Re: Incoming Route DID number?
That worked! Thanks!crackerjack wrote:add the following at the end of your reg string /xxxyyyzzzzdarkfox wrote:EXXXXXXXXXX01:[email protected]:5070crackerjack wrote:
Pls post your registration string
(This is your 10 digit MJ phone number preceded by /)
-
calgaryhero
- MagicJack Newbie
- Posts: 5
- Joined: Sat Jan 10, 2009 4:54 am
-
crackerjack
- Dan Should Pay Me
- Posts: 784
- Joined: Fri Nov 16, 2007 9:32 pm
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: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.This should give you enough to move forward. Please let us know if you hit another problem.
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()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)