Pear0 / pygooglevoice

Automatically exported from code.google.com/p/pygooglevoice
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Do you need to add a phone type to the call? #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
pygooglevoice 0.5, under PBX in a Flash.  

From the command line, I can make a gvoice call with the line:

gvoice -b -e testing@gmail.com -p ******** call 8471234567 8472345678

Notice there is no phone type.

However, in asterisk, the following line fails:

exten => _X.,n,System(gvoice -b -e ${ACCTNAME} -p ${ACCTPASS} call 
${EXTEN} ${RINGBACK})

but if I change the above line to include(PHONETYPED=1):

exten => _Z.,n,System(gvoice -b -e ${ACCTNAME} -p ${ACCTPASS} call 
${EXTEN} ${RINGBACK} ${PHONETYPED})

I would expect them to work the same, and they don't.  Why?  When I was 
reading through the documentation, I saw the default's as "none".  
However, if you read the fine print, "If you pass in your 
forwardingNumber, please also pass the correct phoneType".  Why does it 
work from the command line, but not passing the parameters to the System?

Last question, What if you don't know the PhoheType?
Thanks for the great work!  

Original issue reported on code.google.com by mark...@gmail.com on 9 Mar 2010 at 1:18

GoogleCodeExporter commented 9 years ago
Thanks for this, i reinstalled ver .5 and gv still wouldnt work, i could make 
calls
using gvoice cli, but when asterisk did it it refused to work... then i added 
this to
my extensions_custom.conf, and it worked perfect.

Original comment by Russell....@gmail.com on 1 May 2010 at 3:49

GoogleCodeExporter commented 9 years ago
exten => _X.,n,System(gvoice -b -e ${ACCTNAME} -p ${ACCTPASS} call 
${EXTEN} ${RINGBACK})

but if I change the above line to include(PHONETYPED=1):

exten => _Z.,n,System(gvoice -b -e ${ACCTNAME} -p ${ACCTPASS} call 
${EXTEN} ${RINGBACK} ${PHONETYPED})

I have same issue today but not too clear about this line.
include(PHONETYPED=1) or just ${PHONETYPED}

If someone can make it clear... thanks.

Original comment by firexx...@gmail.com on 13 Jun 2010 at 4:15

GoogleCodeExporter commented 9 years ago
Try using the instructions in my blog post at 
http://michigantelephone.wordpress.com/2010/05/21/how-to-use-google-voice-for-fr
ee-outgoing-calls-on-an-asteriskfreepbx-system-the-easy-way/ - I think you will 
find those will work for you.

Original comment by michigantelephone on 14 Jun 2010 at 8:07

GoogleCodeExporter commented 9 years ago
In my case I have a custom script in the config file: extensions_custom.conf
or wherever you see the System (gvoice, ...

exten => _Z.,n,Set(PHONETYPED=1)
exten => _Z.,n,System(gvoice -b -e ${ACCTNAME} -p ${ACCTPASS} call ${EXTEN} 
${RINGBACK} ${PHONETYPED})

This continues to work for me.

Original comment by mark...@gmail.com on 19 Nov 2010 at 5:07