asterisk (freepbx, trixbox) In canada
Moderators: Bill Smith, Pilot
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
asterisk (freepbx, trixbox) In canada
Hi,
I am a asterisk friendly fellow who lives in Canada.
I am attempting to add a Magicjack to my PBX.
Any one with experience in adding a jack in Canada or any Canadian microjack users out there..?? who have figured out there sip settings (possibly saving me seeing what servers I will use in ontario?!)
I first found I was unable to buy one since it would not let me select anything but the USA when making a account.. A quick Google found me a Canadian reseller http://www.themagicjack.ca
My worries so far
-can I register this , and will it work in Canada
-does these rumors of changing the jack effect me running the SIP account through asterisk
http://www.phoneservicesupport.com/chec ... e-t92.html
Anyone know of the codecs supported? g729, Gsm, iLBC? (beyond the g711 ulaw/alaw)
I am a asterisk friendly fellow who lives in Canada.
I am attempting to add a Magicjack to my PBX.
Any one with experience in adding a jack in Canada or any Canadian microjack users out there..?? who have figured out there sip settings (possibly saving me seeing what servers I will use in ontario?!)
I first found I was unable to buy one since it would not let me select anything but the USA when making a account.. A quick Google found me a Canadian reseller http://www.themagicjack.ca
My worries so far
-can I register this , and will it work in Canada
-does these rumors of changing the jack effect me running the SIP account through asterisk
http://www.phoneservicesupport.com/chec ... e-t92.html
Anyone know of the codecs supported? g729, Gsm, iLBC? (beyond the g711 ulaw/alaw)
Last edited by joecanadian on Sat Dec 22, 2007 2:51 am, edited 1 time in total.
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
cost
Something else to add
Even though our dollar is on par or at least pretty much the same I noticed something bad
the cost seems double
$68.39 after $8 tax using paypal
if you click order http://www.themagicjack.ca/order.php
it shows it as $59.99 (there has to be a cheaper way to get these things.. ?)
as long as it holds up for a year then its worth it.. and if I can get renewals with out going through this fellow.. then hopefully thats cheap too..
still worried about what info they need to register and to renew living in canada!
Even though our dollar is on par or at least pretty much the same I noticed something bad
the cost seems double
$68.39 after $8 tax using paypal
if you click order http://www.themagicjack.ca/order.php
it shows it as $59.99 (there has to be a cheaper way to get these things.. ?)
as long as it holds up for a year then its worth it.. and if I can get renewals with out going through this fellow.. then hopefully thats cheap too..
still worried about what info they need to register and to renew living in canada!
Re: asterisk (freepbx, trixbox) In canada
You should probably just register your jack normally, then use one of the two techniques outlined here or here to obtain your SIP info. Once you have it, an Asterisk guru like yourself will be able to easily set up the proper trunks/routes/etc.joecanadian wrote:Hi,
I am a asterisk friendly fellow who lives in Canada.
I am attempting to add a Magicjack to my PBX.
Any one with experience in adding a jack in Canada or any Canadian microjack users out there..?? who have figured out there sip settings (possibly saving me seeing what servers I will use in ontario?!)
Yes, once registered, it should work in any country assuming you have high speed internet, and your ISP does not block VoIP...joecanadian wrote: My worries so far
-can I register this , and will it work in Canada
Well, if you do get a new number, obviously your SIP credentials will change...joecanadian wrote: -does these rummors of changing the jack effect me running the SIP account through asterisk
http://www.phoneservicesupport.com/chec ... e-t92.html
That's entirely up to you. I heard rumors that Canada was being added, though I have not heard any time frames...joecanadian wrote: -what state should I pick will there ever be any Canadian numbers?
You'll have no problems.joecanadian wrote: I will be running 1.2 asterisk
I build and consult on asterisk so I figure after I attempt the tricks outlined in this forum I should be able to figure the connection settings. If I can get outbound working I am a happy camper!
If you have magicjack installed, you can see the codecs listed in the registry here:joecanadian wrote: Anyone know of the codecs supported? g729, Gsm, iLBC? (beyond the g711 ulaw/alaw)
Code: Select all
HKEY_CURRENT_USER\Software\talk4free\USB Softphone\AudioPreferences\Codecs
Code: Select all
SJiLBC30, SJiLBC20, MSG711A, MSG711U
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
its here..
it arrived
it seemed to of came from here
http://maps.google.ca/maps?f=q&hl=en&ge ... =addr&om=1maps.google link
I will soon rip it apart and start on asterisk
i will keep you updated..
it seemed to of came from here
http://maps.google.ca/maps?f=q&hl=en&ge ... =addr&om=1maps.google link
I will soon rip it apart and start on asterisk
i will keep you updated..
Here are the settings from my sip.conf configured with freepbx:
[MagicJack]
username=EXXXXXXXXXX01
type=friend
secret=XXXX
port=5070
nat=yes
insecure=very
host=67.106.133.198
fromuser=EXXXXXXXXXX01
dtmfmode=inband
context=from-trunk
canreinvite=no
register string = EXXXXXXXXXX01:[email protected]:5070
The only thing I really haven't figured out is the best dtmfmode. Inband works great for calls to IVR systems except MagicJacks voicemail.
[MagicJack]
username=EXXXXXXXXXX01
type=friend
secret=XXXX
port=5070
nat=yes
insecure=very
host=67.106.133.198
fromuser=EXXXXXXXXXX01
dtmfmode=inband
context=from-trunk
canreinvite=no
register string = EXXXXXXXXXX01:[email protected]:5070
The only thing I really haven't figured out is the best dtmfmode. Inband works great for calls to IVR systems except MagicJacks voicemail.
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
canadian
Well just a update to cracking the seal..
I booted up a windows xp system.. (I normaly only use Debian Linux..)
Old laptop for testing runs xp pro..
Connected the jack.. it connected to where ever right away
asked to be updated..
after that there was a spot for canadian postal code.. (no canadian numbers) picked a new york one..
made a few calls so far so good!
as for the reply above
have you tried
dtmfmode=rfc2833
I mean I am not even there yet.. but almost ever provider I have and I am registered with practicaly all of them at one time or aanouther..
vbuzzer,unlimitel.ca,atlasvoice,babytel,link2voip,freeworlddialup... and that seems to work best!
I booted up a windows xp system.. (I normaly only use Debian Linux..)
Old laptop for testing runs xp pro..
Connected the jack.. it connected to where ever right away
asked to be updated..
after that there was a spot for canadian postal code.. (no canadian numbers) picked a new york one..
made a few calls so far so good!
as for the reply above
have you tried
dtmfmode=rfc2833
I mean I am not even there yet.. but almost ever provider I have and I am registered with practicaly all of them at one time or aanouther..
vbuzzer,unlimitel.ca,atlasvoice,babytel,link2voip,freeworlddialup... and that seems to work best!
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
proxy
ok.. hooked up with fiddler2
just installed it (required and auto installed dot net from the evil empire)
then plugged in mj and right away I got the host
prov1.talk4free.com:443
just installed it (required and auto installed dot net from the evil empire)
then plugged in mj and right away I got the host
prov1.talk4free.com:443
Last edited by joecanadian on Fri Dec 14, 2007 1:07 pm, edited 1 time in total.
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
Request Sent
no luck
Last edited by joecanadian on Sat Dec 22, 2007 2:48 am, edited 1 time in total.
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
Settings that work although the only codec is ulaw but just in case they add later!
allow=g729&gsm&ilbc&ulaw
auth=md5 ; I dunno if its nessary but it seems to work
canreinvite=no
context=from-trunk
disallow=all
dtmfmode=rfc2833
fromuser=EXXXXXXXXXX01
host=67.90.152.70
insecure=very
nat=yes
port=5070
secret=XXXXXXXXXXXX ; (12 digits to 4 digits)
type=friend
useragent=SJPhone
username=EXXXXXXXXXX01
so so far this works good..(in/out)
allow=g729&gsm&ilbc&ulaw
auth=md5 ; I dunno if its nessary but it seems to work
canreinvite=no
context=from-trunk
disallow=all
dtmfmode=rfc2833
fromuser=EXXXXXXXXXX01
host=67.90.152.70
insecure=very
nat=yes
port=5070
secret=XXXXXXXXXXXX ; (12 digits to 4 digits)
type=friend
useragent=SJPhone
username=EXXXXXXXXXX01
so so far this works good..(in/out)
Last edited by joecanadian on Sat Dec 22, 2007 2:47 am, edited 1 time in total.
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
yup tried to force and even tryed to make it take 20 frames it just refuses it.. ulaw and thats it.. I am woundering if I do the software upgrade on the software would it give me access to better codecs.. cause there is a banner ad saying optimize..
anyone tried that yet..
?
heck anything is better then ulaw.. 80kbs hog..
ilbc heck be super happy with gsm
and why they would be mad at people using it for othere devices and asterisk.. frig it be no diffrent then using it through the device.. just higher quality and no dependence on a windows computer on.. (thats a virus waiting to happen!!)
anyone tried that yet..
?
heck anything is better then ulaw.. 80kbs hog..
ilbc heck be super happy with gsm
and why they would be mad at people using it for othere devices and asterisk.. frig it be no diffrent then using it through the device.. just higher quality and no dependence on a windows computer on.. (thats a virus waiting to happen!!)
MJ seems to no longer be supporting RFC 2833. Howver, inband should not be a problem, unless you have lots of outbound packet loss or jitter.joecanadian wrote:Although like you said the dtfm does not work.. I will play with dtmfmode=inband
On PSTN calls, MJ servers support only ulaw and alaw. Why do you want to use a compression codec? They have inferior quality, especially when cascaded with another compression codec, e.g. when the remote party is on a cell phone. Also DTMF problems and higher latency. The only advantage is less bandwidth usage. However, you seem to have enough bandwidth for G.711. Do you want e.g. many simultaneous calls?joecanadian wrote:I only been able to connect with ulaw (that sucks) I will try to force gsm or something smaller..
If you want a Canadian outbound caller ID, just send a P-Asserted-Identity header, see http://www.voip-info.org/wiki/view/P-As ... -ID+header .joecanadian wrote:and it just seems to show my new york number when I call out.
Something like P-Asserted-Identity: <sip:9054289999@x>
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am
Yes bandwidth is important.. I can handle g711 fine just that we want to all run from the same asterisk server and run all own own phone lines from this server from the same server.. 6 of us want to have there own phone.. we share one connection.. a business dsl connection..
I will try this P-Asserted-Identity header
dtmfmode=inband seems to not work with pressing buttons on other phone systems so far.. ugh
I will try this P-Asserted-Identity header
dtmfmode=inband seems to not work with pressing buttons on other phone systems so far.. ugh
What is the up/down speed of your connection? Is is limited by your distance to the CO, or by a contractual cap? If the former and your provider supports it, upgrading to a DSL2+ modem should help. Also, if your extensions are out on the Internet, you should be able to set up reinvite to keep their bandwidth off of your connection.joecanadian wrote:Yes bandwidth is important.. I can handle g711 fine just that we want to all run from the same asterisk server and run all own own phone lines from this server from the same server.. 6 of us want to have there own phone.. we share one connection.. a business dsl connection..
I don't know a Canadian ANAC number, so can't be sure it works to CA, but you can test by calling 712-580-9999. If that shows the spoofed ID but calls to your area don't, then you'll know that the header is set up correctly but the carrier that MJ uses to CA is not accepting it.joecanadian wrote:I will try this P-Asserted-Identity header
Use Wireshark to record some outbound RTP packets, and check by ear or with an audio editor if the tones are coming through cleanly and the levels are adequate. If not, I would suspect that the originating device is attempting to encode them.joecanadian wrote:dtmfmode=inband seems to not work with pressing buttons on other phone systems so far.. ugh
Big thanks to all in the thread. 2 hours after recieving my mj I have a fully functioning sip trunk and callerid spoofing.
This provides a simple menu to allow a caller to set there caller id number and then place a call.
The caller is greeted with:
Please enter your caller id number, in 10 digit format. For example 8-0-0-5-5-5-1-2-1-2. Or press star to use the default number.
At any time the caller may enter there desired caller id number, at which time they hear:
You entered **********, if that was correct press 1. To enter a different caller id number press 2.
If the caller presses 2 they go back to callerid number entry, if they press 1 they hear:
Please enter the number you wish to call.
After the caller has dialed the desired number the call will be placed.
Sound files available at: http://revolution.hackthisbox.com/set-callerid/sounds/
They go in /var/lib/asterisk/sounds.
You may "password protect" this feature by using the Authenticate command in asterisk. ( http://www.voip-info.org/wiki/view/Aste ... thenticate )
For example, where 1234 is the password:
This provides a simple menu to allow a caller to set there caller id number and then place a call.
The caller is greeted with:
Please enter your caller id number, in 10 digit format. For example 8-0-0-5-5-5-1-2-1-2. Or press star to use the default number.
At any time the caller may enter there desired caller id number, at which time they hear:
You entered **********, if that was correct press 1. To enter a different caller id number press 2.
If the caller presses 2 they go back to callerid number entry, if they press 1 they hear:
Please enter the number you wish to call.
After the caller has dialed the desired number the call will be placed.
Code: Select all
;-Set CID
[setcid]
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Background(pls-entr-callid-num)
exten => _NXXNXXXXXX,1,Set(CALLERID(num)=<${EXTEN}>)
exten => _NXXNXXXXXX,2,SipAddHeader(P-Asserted-Identity: <sip:${EXTEN}@sip.magicjack.com>)
exten => _NXXNXXXXXX,3,Playback(you-entered)
exten => _NXXNXXXXXX,4,SayDigits(${EXTEN})
exten => _NXXNXXXXXX,5,Background(if-correct-press1)
exten => 1,1,Goto(authd,s,2)
exten => 2,1,Goto(setcid,s,2)
exten => *,1,Set(CALLERID(num)=<8005551212>)
exten => *,2,SipAddHeader(P-Asserted-Identity: <sip:[email protected]>)
exten => *,3,Goto(authd,s,2)
exten => i,1,Goto(setcid,s,2)
exten => t,1,Goto(setcid,s,2)
exten => h,1,Hangup
[authd]
exten => s,1,Answer
exten => s,2,Background(pls-entr-num-uwish2-call)
;exten => _1NXXNXXXXXX,1,Dial,IAX2/XXXXXX@voipjet/${EXTEN} ;also accepts callid
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@magicjack,30,r)
exten => _1NXXNXXXXXX,2,congestion()
exten => _1NXXNXXXXXX,3,busy()
exten => i,1,Goto(authd,s,2)
exten => t,1,Goto(authd,s,2)
exten => h,1,Hangup
They go in /var/lib/asterisk/sounds.
You may "password protect" this feature by using the Authenticate command in asterisk. ( http://www.voip-info.org/wiki/view/Aste ... thenticate )
For example, where 1234 is the password:
Code: Select all
[setcid]
exten => s,X,Authenticate(1234)
exten => s,X,Background(pls-entr-callid-num)
...
-
- MagicJack Newbie
- Posts: 5
- Joined: Sat Jan 10, 2009 4:54 am
- JohnnyFreightTRAIN
- Dan isn't smart enough to hire me
- Posts: 313
- Joined: Fri Aug 08, 2008 3:09 am
-
- MagicJack Contributor
- Posts: 58
- Joined: Wed Nov 28, 2007 3:06 am