Yes, when I answer the call, I have normal audio.
I found the problem, and I don’t know that it’s something I can solve with the way I want to use this.
In the motif settings, there is a checkbox “Send Unanswered to Google Voicemail:” If you don’t check that box, then the PBX takes the call one ring after it it starts ringing. If you check that box then the PBX will ring, but not “take” the call. I have this checked because I have a number specified in GV that I want ringing along with sending the call through XMPP (to the PBX). When I intially set this up, the number specified in GV would ring once then stop, but the PBX kept ringing. This didn’t work for me, I wanted to be able to grab the call from GV directly via the other number so that’s why I checked this.
I discovered this call seizing by looking at the logs. If the box is unchecked, then at the very beginning of the call, there is this entry:
VERBOSE[4990][C-00000001] pbx.c: Executing [s@im-censored:16] SendDTMF("Motif/+11234567890-82bb", "1") in new stack
This is part of the Motif code, and lets the PBX actually establish the XMPP session with Google. Google stops ringing any other destination cause someone has taken the call in their eyes.
I don’t have the motif setting checked because I want google to ring the other destination and let whatever answers take it. So I don’t have this log entry at the beginning. So the XMPP session is never fully established.
Because of how the motif works I guess, the PBX doesn’t realize it doesn’t have the call. But it acts like it does so it was playing the announcement when the call gets to ring group 2. But because the call isn’t established, that never gets heard. The ringing I’m hearing from ring group 1 to ring group 2 to the google voicemail is all being generated by google.
I answered a call after it got to the second ring group after the announcement said it played and found the entry:
VERBOSE[11517][C-00000005] app_dial.c: Sending DTMF '1' to the calling party.
So at that point the call is fully established.
So now how to deal with this…