Sunr1ses / google-voice-sipsorcery-dialplans

Automatically exported from code.google.com/p/google-voice-sipsorcery-dialplans
1 stars 0 forks source link

Last step for making outbound free calls #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
where you say: "choose one of the SIP Sorcery dial plans below in section 10 or 
11, copy it, go to the Dial Plans page in SIP Sorcery, click on default, and 
paste in the dial plan you selected, overwriting the short default script 
already there. Customize the portions of the dialplan highlighted in blue 
below. The script will not function correctly and you will not be able to make 
free outbound calls until you customize the highlighted entries."
 QUESTION 1) WHEN I TRY TO PASTE ANYTHING IT SIMPLY SAYS "SILVERLIGHT"
 QUESTION 2) I really don't know what to do for the final step. I did everything else, but I dont understand the last part and i dont see a section 14, and the screen shots don't help me... Sorry...Please tell me what I am to do from here, I AM NOT A PROGRAMMER! Thank you! (My head hurts...lol)
Mishka

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by mishmiami on 22 Jul 2010 at 2:34

GoogleCodeExporter commented 9 years ago
When you only see Silverlight, that means you need to install Silverlight. If 
you are using Firefox, try using Internet Explorer. At the top of this page, 
click Source, then click SimpleDialPlan, then click "View raw file" in the 
lower right corner. Hold the Ctrl button down on your computer and hit the 'a' 
key. Then, using Internet Explorer, log into your SIP Sorcery account, click 
Dialplans, click the word "Default" and in the middle, erase the text in the 
new window and press Ctrl-V to insert the text you copied earlier with Ctrl-C.

Also, I'm getting a little nervous because I saw your message that you got your 
phone to ring, yet you shouldn't have been able to achieve that if all you see 
at SIP Sorcery is Silverlight. Finally, please add more comments to this 
ticket.. you don't need to open any more tickets. We will converse in here.

Original comment by easter...@gmail.com on 22 Jul 2010 at 2:45

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead? I expected to go to a 
page that would show me the dial plans. Instead I get a page with a winds that 
says default then i see where it looks like I am to paste the code from section 
10 that I copied.But I don't know where to start and even when I copy it to 
paste it only says "SILVERLIGHT" and I cant get anything else, and not even 
that SILVERLIGHT will paste there...
Versiion? sipgate EVO and sipsorcery... 

Original comment by mishmiami on 22 Jul 2010 at 2:55

GoogleCodeExporter commented 9 years ago
I need you to switch to a different web browser. If you're using Internet 
Explorer, switch to Firefox. If you're using Firefox, switch to Internet 
Explorer. The Silverlight logo means you need to install the Silverlight 
software into your browser. You should be able to click on the Silverlight logo 
and install the required software. You won't be able to proceed until you get 
Silverlight installed and make that logo go away.

Original comment by easter...@gmail.com on 22 Jul 2010 at 3:00

GoogleCodeExporter commented 9 years ago
OKAY! That said successful! Am I done? How do I know if I am being charged for 
outbound/inbound? How can I double check? Since I am using my cell for this... 
How can I avoid roaming when I am leaving the states? and can I use this to 
make calls while visiting internationally ie: Mexico? Does all this apply to 
international calls if I am on wifi over there MEX since i am a USA SPRINT 
customer--and will I still be charged for voice calls like Sprint said. They 
said if I use anything that is voice over data I will be charged voice calls... 
Thank you

Original comment by mishmiami on 22 Jul 2010 at 3:21

GoogleCodeExporter commented 9 years ago
can you please tell me if I put the right code in? I was only able to delete 
and then paste from where i thought it began. here is what I put..AREA_CODE = 
'717'                  # my area code
GV_USER   = 'username@gmail.com'   # my GV e-mail address (user@gmail.com)
GV_PASS   = 'GV password'          # my GV password
CB_NUMBER = '1aaaxxxyyyy'          # my 11-digit SIP number (only one)

SPEED_DIAL = {                     # my speed dial numbers
 '1'   => '19879879876',          # Mom
 '123' => '12345678901',          # Work
 '45'  => '17479876543',          # Gizmo BFF
 '411' => '8004664411',           # Google 411
 '266' => '4153767253@podlinez.net',     # CNN Headlines
}

begin
   sys.Log "** Call from #{req.Header.From} to #{req.URI.User} **"

 if sys.Out    # if outbound call
   num = req.URI.User.to_s        # Get a string copy of the number to dial

   num = SPEED_DIAL[num] || num   # Substitute with speed dial entry, if any

   case num
     when /@/ then sys.Dial num   # URI dialing
     when /^[2-9]\d{6}$/          # Local call, 7-digit number
       num = '1'+ AREA_CODE + num # prefix it with country and area code
     when /^[01]?([2-9]\d{9})/    # US number with or without country code
       num = '1' + $1             # add country code and truncate number to 10-digit
     when /^(011|00|\+)(\d{10,})/ # international number
       num = '+' + $2             # GoogleVoiceCall works with '+' prefix only

     else sys.Respond 603, 'Wrong number, check & dial again'
   end

   sys.Log "Calling #{num} via Google Voice"
   sys.GoogleVoiceCall GV_USER, GV_PASS, CB_NUMBER, num, '.*', CB_NUMBER =~ /^1747/ ? 7 : 1, 30

 else          # sys.Out
   sys.Dial "#{sys.Username}@local"
 end

rescue
 sys.Log("** Error: " + $!) unless $!.to_s =~ /Thread was being aborted./
end

Also, do I need to chnage any of the code? I thought I did...afraid to do that 
though.

Original comment by mishmiami on 22 Jul 2010 at 3:24

GoogleCodeExporter commented 9 years ago
Slow down! :)

Okay, what exactly did you do?

1) Did you install Silverlight?

2) Did you create a free account at SIP Sorcery?

3) Did you configure sipdroid on your phone to log into your SIP Sorcery 
account? If so, does it show up in the SIP Bindings list at the bottom of the 
SIP Accounts page on SIP Sorcery?

4) Did you add your sipgate account on the SIP Providers page at SIP Sorcery 
according to the instructions? If so, did the sipgate account show up in the 
SIP Provider Registration list at the bottom of the SIP Providers page?

5) Did you go to the Dialplans page, click Default and delete the few lines of 
text that was preloaded in there? Did you copy and paste in the text from the 
SimpleDialPlan found at this site? Did you make the four required changes at 
the top of the SimpleDialPlan and then click Update?

Once you follow all those steps, you need to learn how to shut off the cellular 
radio on your phone while leaving wifi on, because that's how you're going to 
use your phone in Mexico. Please check all of those items above CAREFULLY -- 
especially since you told me earlier that you were able to get your phone to 
ring LONG before you should have been ready to do so. If you're getting tired 
or confused, read my messages slowly or let's try again tomorrow after some 
sleep. 

Original comment by easter...@gmail.com on 22 Jul 2010 at 3:32

GoogleCodeExporter commented 9 years ago
Yes you put the right code in! Good job. Now, I know you said you're afraid to 
change the code, but outgoing calls will not work until you do. See these lines:

AREA_CODE = '717'                  # my area code
GV_USER   = 'username@gmail.com'   # my GV e-mail address (user@gmail.com)
GV_PASS   = 'GV password'          # my GV password
CB_NUMBER = '1aaaxxxyyyy'          # my 11-digit SIP number (only one)

You should be able to figure out the first 3 things you need to change. The 4th 
is the phone number that sipgate gave you -- you added that number to your 
Google Voice account. You must change these four lines (and only these four 
lines) in order to make outbound calling work.

Original comment by easter...@gmail.com on 22 Jul 2010 at 3:35

GoogleCodeExporter commented 9 years ago
1. YES
2. YES 
3a. YES 
3b no it does not show up in SIP BINDINGS on the list at the bottom of the SIP 
Accounts page on SIP Sorcery?
4. yes 
5. yes

#3-I thought I did this (configure sipdroid on your phone to log into your SIP 
Sorcery account?) and then I checked and my phone rang, but it isn't showing up 
on the binding part... (poo) what do I need to do? maybe I didn't do that right?

FYI-when I open FRING, it shows SIP checked off as a add on (since I used sip 
username and password to add it to FRING. 
Also Do I make all my calls through FRING to avoid my phones dial pad or does 
that even matter?

Original comment by mishmiami on 22 Jul 2010 at 4:25

GoogleCodeExporter commented 9 years ago
good morning. I believe it is the domain and proxy on sipdroid. 
server/proxy is set to: pbxes.org  
domain is set to:sipsorcery.com 
I did try to change them a few times but it does not show up in SIP BINDINGS on 
the list at the bottom of the SIP Accounts page on SIP Sorcery...

Original comment by mishmiami on 22 Jul 2010 at 12:11

GoogleCodeExporter commented 9 years ago
sorry, I forgot to add-
sipdroid is not registering. I get failed registration (timeout)

Original comment by mishmiami on 22 Jul 2010 at 12:54

GoogleCodeExporter commented 9 years ago
after registering with pbxes.org it shows a 404 failed to register as well...

Original comment by mishmiami on 22 Jul 2010 at 1:20

GoogleCodeExporter commented 9 years ago
Seems like you're trying to solve one too many problems at once.

The "Silverlight" that appeared when you're tried to paste the code is because 
Silverlight does not have a regular "Cut/Copy/Paste/..." pop-up menu; you need 
to use keyboard shortcuts. The shortcut for Paste is Ctrl-V, for Copy - Ctrl-C.

I'd recommend that you forget about Sipdroid, Fring and PBXes for a while. Get 
a proven SIP client (softphone), like X-Lite Ver. 3 and try to get it to work 
with Sipsorcery. When you have it done, you can try porting the settings to 
Sipdroid. If it doesn't work, add a bridge like PBXes (I'd prefer Voxalot, 
though).

Original comment by mte...@gmail.com on 22 Jul 2010 at 1:59

GoogleCodeExporter commented 9 years ago
I have already gotten past this part that you are talking about silver light. 
Please read where I am at and respond to the help that I need at this point.
I believe it is the domain and proxy on sipdroid. 
The server/proxy is set to: pbxes.org  on my phone
domain is set to:sipsorcery.com   on my phone
it does not show up in SIP BINDINGS on the list at the bottom of the SIP 
Accounts page on SIP Sorcery...

Original comment by mishmiami on 22 Jul 2010 at 2:30

GoogleCodeExporter commented 9 years ago
Well, domain/realm should be the same as proxy. No wonder it can't register.

Original comment by mte...@gmail.com on 22 Jul 2010 at 3:04

GoogleCodeExporter commented 9 years ago
thank you! It registered! but SIPDROID says to enter names as name@domain.com 
to make connection. when I try to enter names and or numbers the call shuts off.

Original comment by funfacts...@gmail.com on 22 Jul 2010 at 4:34

GoogleCodeExporter commented 9 years ago
HEY GUESS WHAT? IT WORKS!!!! THANK YOU!  AND ITS SHOWING UP ON THE BINDINGS 
PAGE! COOL!!!!! Thank You thank you! 

Original comment by funfacts...@gmail.com on 22 Jul 2010 at 4:39

GoogleCodeExporter commented 9 years ago
mishka did you change userids on us here, or is that still you?

Original comment by easter...@gmail.com on 22 Jul 2010 at 9:08

GoogleCodeExporter commented 9 years ago
Its still me... I dont know why that happened. I am signed in as mishmiami@gmail

Original comment by mishmiami on 23 Jul 2010 at 3:31

GoogleCodeExporter commented 9 years ago
So I went through all this "new" stuff. Now I have a a google voice account 
that is a 786 area code. I also have another number assigned to me by sipgate 
with a 415 area code (it was free) and I went through sipcorcery to do what I 
was instructed to do. My sipdroid on my phone works also. I am happy and feel 
like a brain child now. But I still don't quite see the benefit of all this. I 
wanted to be able to use this for Mexico. Still not sure if I will be able to 
beat Sprint by using all this stuff. They said as soon as I transfer data into 
voice i will be billed very high. Even if i am on a wifi! is that possible?

Original comment by mishmiami on 23 Jul 2010 at 3:36

GoogleCodeExporter commented 9 years ago
sorry, I just read your info about the radio. I keep trying to do that but the 
darn phone still makes calls through 3G! I will research this....

Original comment by mishmiami on 23 Jul 2010 at 3:47

GoogleCodeExporter commented 9 years ago
If you turn off GSM radio in your phone as suggested by EasternPA, Sprint will 
never know of your being in Mexico, never mind billing you. I'm wondering if 
you could sue them for misleading statement ;-)

Original comment by mte...@gmail.com on 23 Jul 2010 at 3:50

GoogleCodeExporter commented 9 years ago
I like your style...lol ;) I am trying to figure all that out. its
been a steep learning curve but i am getting there. Thanks to easter
and PA.  I need to figure out how to turn my GSM radio off. Thanks for
not giving up on me!

Original comment by mishmiami on 23 Jul 2010 at 4:01

GoogleCodeExporter commented 9 years ago
All smartphones I worked with had so-called "Offline" or "Flight" mode. In this 
mode, the phone will turn all wireless communications off, including GSM radio.

Once in the flight mode, try turning WiFi on (should be a separate option 
somewhere). Some phones would display a warning message ("Are you sure you want 
to use WiFi in offline/flight mode?") but still let you do what you want.

I suggest that you check all this before departure. Make sure your phone 
connects to WiFi and you're able to make and receive VoIP calls. Now use some 
other phone to call your cell phone number, you should hear a message saying 
"Phone is switched off or out of the coverage" and the call might be forwarded 
to voicemail, if you enabled it.

Original comment by mte...@gmail.com on 23 Jul 2010 at 4:34

GoogleCodeExporter commented 9 years ago
Yes, My EVO has this operation. I will do as you suggested for sure. Thank you. 

The Evo will work anywhere that has CDMA service. Bummed out that Mexico is on 
GSM. Will my WiFi work there if that is the case? I am guessing no?

Original comment by mishmiami on 23 Jul 2010 at 4:44

GoogleCodeExporter commented 9 years ago
WiFi is the same everywhere. You won't be able to use local SIM-card, as 
pointed out by EasternPA. And you need to replace "GSM radio" with "CDMA radio" 
in my previous posts but it doesn't make any difference for you (as a user).

Original comment by mte...@gmail.com on 23 Jul 2010 at 4:48

GoogleCodeExporter commented 9 years ago
But Sprint Evo only uses CDMA radio- (i have no SIM card which only comes in 
GMA radio phones) At least that is what I read online. I don't know if just 
setting widget on airplane mode and wifi (EVO PHONE) will do the trick, do you?

Original comment by mishmiami on 23 Jul 2010 at 3:15

GoogleCodeExporter commented 9 years ago
Yes, Mike didn't realize you were on Sprint when he made the comment. He since 
corrected what he wrote. Yes, please try put the phone in airplane mode and 
then turn on wifi. Do you know the difference in the icons up top between the 
icon representing CDMA (cellular) and the one for wifi? It is critical that you 
master this step so that Sprint does not detect when you have taken the phone 
to Mexico. So long as you only turn on wifi, they will not be able to detect 
where the phone is located.

Go into Settings, then Wireless & Networks, then turn ON Airplane Mode. You 
should see a picture of an airplane appear over one of your status icons. Then 
turn Wifi ON. Your wifi logo will turn back on BUT the picture of the airplane 
will STAY ON over top of one of your icons. Once you get your phone setup that 
way, place a call with Fring or sipdroid, whichever you decided to use. Don't 
EVER answer "Yes" to turn OFF airplane mode, because that is how they will find 
your phone and start charging you.

Please give that a shot and let me know how it works. If it works, you can go 
back into Settings then Wireless and Networks and turn off airplane mode. The 
last thing you should do before you turn off your phone before leaving is make 
sure airplane mode is ON. And while you're in Mexico, always always always make 
sure that the picture of the airplane is always there over top of one of the 
icons in your status bar. So long as you see that airplane, Sprint can't find 
your phone and start charging you for calls.

Original comment by easter...@gmail.com on 23 Jul 2010 at 3:28

GoogleCodeExporter commented 9 years ago
I love it! I am going to a hot spot in a few to try this. I hope I can use the 
Fring and Sips. :)  I also found a widget that specifically turns OFF the cell 
radio in the EVO! Its called EASY SWITCH (Android Market). I will make sure to 
keep airplane mode on THE WHOLE TIME. I gotcha! Thank you. Keep you posted and 
thank you for walking me through all this...

Original comment by mishmiami on 23 Jul 2010 at 4:16

GoogleCodeExporter commented 9 years ago
Ok... I went to STARBUCKS and tried the WiFi. I couldn't log in due to the fact 
that the browser wouldn't allow me to depress the link. That may be an android 
thing ( comaptibility?). but I was told most places make you agree to 
something- even if its free WiFi. And if I can't press the button to agree to 
the terms then no WiFi. I was bummed as I watched people on their computers 
getting wifi and I couldn't log in. LAME... But I went around the corner where 
the was an open signal and it worked, but very spotty voice for both me and the 
person i was calling due to weak signal...

The issue I am having now, is I can't just dial out using my sprint phone 
number anymore. I am locked into google voice. Or Calling through sipdriod. 
People only see the google voice number. Is there any way I can still use my 
regular Sprint to dial out anymore? I don't mind the google number but just 
wondered why i dont have the choice anymore...

Original comment by mishmiami on 23 Jul 2010 at 11:30

GoogleCodeExporter commented 9 years ago
Yes, I can't log into the wifi at Barnes & Noble or Starbucks either. Same 
exact problem. Can't click that link at the top.

When you mentioned Fring earlier, I assumed you went with Fring instead of 
sipdroid. If you have Fring installed and added your SIP Sorcery account as a 
SIP account in Fring, then you can delete sipdroid and return your dialer to 
normal. Some say sipdroid tries a little too hard to integrate into the phone. 
I last played with sipdroid on a tablet that wasn't also a cellphone, so I 
never experienced the "annoying" level of integration that sipdroid has with 
the phone.

Why not uninstall sipdroid and just add your SIP account to Fring? The free 
version of your GV account will only work while Fring is running, but at least 
it won't mess up your dialing when you don't want to make it a free call.

You did a great job sticking through with this, btw. If you really were as 
inexperienced as you made yourself out to be, you really did a great job 
understanding what we were asking you to do.

Original comment by easter...@gmail.com on 23 Jul 2010 at 11:47

GoogleCodeExporter commented 9 years ago
Thank you... I couldn't have done it without your kindness and patience- no 
really...) And guess what?! I DID IT! (Well YOU did it! lol) IT WORKS!!! I can 
call using Fring for Fring users- or I can select the SIP# and call people 
using airplane mode and WiFi! Its so neat!!! I am amazed! Thanks for being A 
GENUIS! 

The only thing is... I can't call Mexico...and I want to...so... is that 
because I selected "simple dial plan?" (it ain't over til the fat lady sings 
eh?!) :p 

Q)Do I even need the GV? I was wondering why I even did that part? As I 
understand it, I signed up for GV, It allows numbers to call me back. Then I 
signed up for the sip # as well and somehow those are connected to doing 
something related?

I know I can use the SIP through Fring. But whats GV for? I have everything 
Data and voice is 1500 anytime minutes. Maybe if I had a land line GV would be 
useful? Or did I miss an important relationship there? I am sure I did...lol

I am going to TRY to do this for my husband so i want to make sure I don't do 
anything unnecessary...Like SIPDROID-- DUH! I uninstalled that and things 
started making more sense after that! Now everyhitng works GREAT! Except the 
Mexico calling. Are you gonna walk me through that? :) I can start a new issue, 
but i want you to help You are THE BEST!!!!

Original comment by mishmiami on 24 Jul 2010 at 3:25

GoogleCodeExporter commented 9 years ago
Closing ticket. Moved to issue 90.

Original comment by easter...@gmail.com on 24 Jul 2010 at 3:33