1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. Guest: We think the problem with locked threads from long message subjects has been resolved. Post a link here if you still see a problem.

Google Outbound Fails

Discussion in 'Bug Reporting and Fixes' started by grillovillegas, Aug 19, 2011.

  1. tm1000 Guru

    Just go into /usr/src/asterisk/channels and run this command:

    Code:
    find -name 'chan_gtalk.c' -print -exec sed -i.bak 's/traversenodes, "redirect"/traversenodes, "sta:redirect"/' {} \;
    Then recompile (here's how to recompile)

    Code:
    amportal stop
    cd /usr/src/asterisk
    make clean
    ./configure
    make
    make install
    cd ..
    cd asterisk-flite
    make clean
    make
    make install
    amportal start
    echo "Checking whether Flite is functioning..."
    asterisk -rx "core show application flite"
    echo "Checking whether CDR reporting is functioning..."
    asterisk -rx "module show like mysql"
    cd /root
    status
    
    
  2. Anyone tested that fix ???
    Is it safe to apply on a purple 1.7.5.5 ??

    Thanks in advance
  3. gg3@2sight.net New Member

    compile does not work on my system starting with make clean. I get make: *** No rule to make target 'clean'. Stop.
  4. tm1000 Guru

    Opps.

    You need to
    Code:
    cd /usr/src/asterisk
    instead of

    Code:
    cd /usr/src
    I fixed the above code to reflect this.

  5. Well, I'm running version 1.8.5.0 and in my /usr/src/asterisk-1.8.5.0/channels directory, the version of chan_gtalk.c that I have is dated Dec 9 2010, so I don't think it's been updated in a while. I loaded that file into a text editor (Smultron on a Mac) and it LOOKS like the line that needs to be changed is line 483 (line number confirmed using nano). The original looks like this:

    Code:
                                    (redirect = iks_find_cdata(traversenodes, "redirect")) &&
    and according to the patch file it should look like this:

    Code:
                                    (redirect = iks_find_cdata(traversenodes, "sta:redirect")) &&
    (In other words, only the four characters "sta:" are added).

    I made that change and recompiled. Something funky happened and I wound up rebooting the system completely, but after the reboot I made a couple of test calls via Google Voice and they both worked, so I am guardedly optimistic. So if you know how to recompile Asterisk, there is your solution. This particular system that I use for outgoing Google Voice is NOT running PiaF, so you PiaF users will have to wait for Ward and the gang to release a fix, or try following tm1000's very good advice in post #21.
  6. gg3@2sight.net New Member

    Still does not work after recompile. I get same errors in jabber.conf. Error 503 (service unavailable) and error 302 (temporarily moved)
  7. tm1000 Guru

    Or you could have done what I said above. Which was/is much easier and works on all versions of 1.8.x

  8. gg3@2sight.net New Member

    I just did this. tm1000's post does make the change. I confirmed it with nano. Unfortunately my recompile did not fix the issue. It will be interesting to see how you do.
  9. In other words it fixed the problem or not ????????
  10. gg3@2sight.net New Member

    Did not fix the problem.

    Did make the edit change to the chan_gtalk.c file.
  11. darmock PIAF Developer

    We are testing out the patch at the moment and will push it out via update-fixes when we are sure it works (seems to in early tests) Hate to send out something that breaks something else. Good idea tm1000 will use it when general update is pushed out if that is OK. Will add some extra stuff to check to see if patch already applied etc etc. Also have to test compatibility on older supported versions of 1.8.x and make sure it gets into new installs and update-source..... should not take more than a year or two (this is a joke for the humor impaired)


    regards

    Tom
  12. Yes, but your instructions were PiaF-specific (the flite stuff, etc.) and the particular system I use for outgoing Google Voice calls is running a different distribution (which I forgot to mention in that post, but I have edited it to clarify).

    Sometimes, I just have to do things my way! :D

    But I do strongly recommend that all PiaF and Incredible PBX users follow your advice!
  13. gvtricks Guru

    After applying the fix from tm1000, google voice seems to be working as before on my setup. :smile5:

    [IMG]

    Thankyou tm1000
  14. Sacrilego New Member

    All good here now

    No problems with GV after the patch.
  15. wardmundy Nerd Uno

    Special Thanks to tm1000 for the Quick Fix

    If you can't make outbound calls with Google Voice using PIAF-Purple with Asterisk 1.8.x or PIAF-Red with Asterisk 10, here's the quick fix which we have verified on both platforms. Will also work with Incredible PBX 1.8 or Incredible PBX 2. Log into your server as root and issue the following commands:

    Code:
    cd /root
    wget http://pbxinaflash.com/gvoice819patch
    chmod +x gvoice819patch
    ./gvoice819patch
    
    When the update is finished, be sure to verify that there are entries for both Flite functionality and MySQL on your display!
  16. Thanks for the fix , it works fine now... but what do you mean to verify the entries , where can we check that ? which display ?
  17. gg3@2sight.net New Member

    This worked for me as well. Don't know why it did not when I followed tm1000's original post but it does now. Thaks for the quick fix everyone.
  18. thanks for the update / fix... however does anyone know what actually happened? I am curious as to what "they" did to make this stop working.
  19. nlucier New Member

    Applied the patch about 1/2 hour ago. Still couldn't make outbound GV calls. Inbound was working fine though so pretty sure that jabber is talking. Waited for 1/2 hour anyway and still cannot make outbound.

    Plan B?


    PBX in a Flash Version = 1.7.5.5
    FreePBX Version = 2.8.0.4
    Running Asterisk Version = Asterisk 1.8.3.3
    Asterisk Source Version = 1.8.3.3
    Dahdi Source Version = 2.4.1.2+2.4.1
    Libpri Source Version = 1.4.11.5
    IP Address = 192.168.1.102 on eth0
    Operating System = CentOS release 5.6 (Final)
    Kernel Version = 2.6.18-194.26.1.el5 - 32 Bit
  20. hate to say it.. but I had to reboot afterwords.. which for a linux based operating system is crazy...

    try it and see after after 2-3 minutes once back up )based on your system of course) try it again.. works for me

Share This Page