Google Outbound Fails

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,233
Here We Go Again. This works!

If you have not yet patched your (formerly broken) system, DON'T! It works AS IS. If you have and now it's broken (again)...

Code:
cd /usr/src/asterisk/channels
mv chan_gtalk.c chan_gtalk.c.new
mv chan_gtalk.c.bak chan_gtalk.c
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

Cat%20and%20Mouse.gif
 

BitBass

New Member
Joined
Nov 13, 2010
Messages
12
Reaction score
0
Thanks Ward, that did it. I guess they fixed their earlier mistake.
 

tenortim

New Member
Joined
Mar 6, 2009
Messages
5
Reaction score
1
I am seriously toying with going with the following patch:


Code:
--- chan_gtalk.c        2011-08-22 11:04:26.000000000 -0700
+++ chan_gtalk.c.versatile      2011-08-22 11:09:01.000000000 -0700
@@ -480,7 +480,9 @@
                                break;
                        }
                        if (!strcasecmp(name, "error") &&
-                               (redirect = iks_find_cdata(traversenodes, "redirect")) &&
+                               // Sigh Google, really!
+                               ((redirect = iks_find_cdata(traversenodes, "redirect")) ||
+                               (redirect = iks_find_cdata(traversenodes, "sta:redirect"))) &&
                                (redirect = strstr(redirect, "xmpp:"))) {
                                redirect += 5;
                                ast_log(LOG_DEBUG, "redirect %s\n", redirect);

That way, it doesn't matter which they send.
 

fmood123

New Member
Joined
Jan 23, 2011
Messages
21
Reaction score
0
Is there going to be an update-programs, update-fixes patch

I had no worky last week, patched (update-programs update-fixes) then worky, then today no worky, is there going to be another update-programs update-fixes release? Or should we modify the code suggested above?

Thanks for the hard work guys! My bet an engineer at google submitted changes on a friday (they worked for somethings like web/gmail but was not noticed on asterisk, came back in on monday and reverted after noticing it was in flames).

Keep up the good work.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,233
It's your call whether to do it manually or wait on update-fixes. Patch will be the same.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,233
I am seriously toying with going with the following patch:


Code:
--- chan_gtalk.c        2011-08-22 11:04:26.000000000 -0700
+++ chan_gtalk.c.versatile      2011-08-22 11:09:01.000000000 -0700
@@ -480,7 +480,9 @@
                                break;
                        }
                        if (!strcasecmp(name, "error") &&
-                               (redirect = iks_find_cdata(traversenodes, "redirect")) &&
+                               // Sigh Google, really!
+                               ((redirect = iks_find_cdata(traversenodes, "redirect")) ||
+                               (redirect = iks_find_cdata(traversenodes, "sta:redirect"))) &&
                                (redirect = strstr(redirect, "xmpp:"))) {
                                redirect += 5;
                                ast_log(LOG_DEBUG, "redirect %s\n", redirect);

That way, it doesn't matter which they send.

Like the patch! If Google reverts back again, we'll do it. Gotta believe they decided this was a mistake unless...
 
Joined
Jun 29, 2009
Messages
258
Reaction score
0
I am seriously toying with going with the following patch:


Code:
--- chan_gtalk.c        2011-08-22 11:04:26.000000000 -0700
+++ chan_gtalk.c.versatile      2011-08-22 11:09:01.000000000 -0700
@@ -480,7 +480,9 @@
                                break;
                        }
                        if (!strcasecmp(name, "error") &&
-                               (redirect = iks_find_cdata(traversenodes, "redirect")) &&
+                               // Sigh Google, really!
+                               ((redirect = iks_find_cdata(traversenodes, "redirect")) ||
+                               (redirect = iks_find_cdata(traversenodes, "sta:redirect"))) &&
                                (redirect = strstr(redirect, "xmpp:"))) {
                                redirect += 5;
                                ast_log(LOG_DEBUG, "redirect %s\n", redirect);

That way, it doesn't matter which they send.

Tried your patch on my system and it works. tm1000, got a couple of magic find/sed lines that will work against the original and the newly patched versions to make this change? Probably doesn't need to include the comment line (I didn't when I made the patch). ;)
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
I just finished testing patch 147 yet again and pushed it out into PIAF space. Will take a while to propagate. In update-fixes if it finds that chan_gtalk.c has been patched with the original fix and that a chan_gtalk.c.bak exists it will revert to to bak file. It will then recompile and test to make sure it all was compiled correctly and that both flite and the mysql are working correctly.

I also modded patch 146 to reapply the kennonsoft update yet again. We found a small error in the tgz archive which has now been fixed.


Ward or I will post a note when it is ready for

update-programs
update-fixes

again


best regards

Tom
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Glad I included the backup (.bak) option :)
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
Oh YAH! Made my life easier that is for sure. Actually as we have been looking over our stuff we have been adding bak files to everything.... very good idea! While most of our code had it there were a few that did not. Been using epoch time as an addendum to the bak moniker.

Thanks again for your help


Tom
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,207
Reaction score
5,233
Big spenders, too. A free pass to AstriCon NerdFest...

20370603a10942027195ml.jpg


P.S. BIG THANK YOU to Tom! He has repaired PIAF-Purple and PIAF-Red so all new installs having Google Voice working (yet again).
 
Joined
Apr 17, 2009
Messages
829
Reaction score
9
so if we followed tom's guide to updating the system source and all and now it is not working, follow your guide? or maybe I am still lost :banghead::eek:
 
Joined
May 16, 2011
Messages
94
Reaction score
0
My google outbounds are failing again. I applied the patch the other day that Ward released with tm1000's patch and it was working afterward. Now I am getting the same outbound errors; SIP503 and SIP302 responses back from Google. Is anyone else seeing this>?
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Have you been following this thread or you just posted here?

They reverted back to the old method. Please read above.

My google outbounds are failing again. I applied the patch the other day that Ward released with tm1000's patch and it was working afterward. Now I am getting the same outbound errors; SIP503 and SIP302 responses back from Google. Is anyone else seeing this>?
 
Joined
Jul 28, 2011
Messages
162
Reaction score
48
Thanks guys! Google voice outbound is working again. Spousal approval factor now in the green zone.
 

Members online

Forum statistics

Threads
25,826
Messages
167,871
Members
19,252
Latest member
macrohat
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top