Google Voice Motif on FOP2
Hi, I have been trying to setup a trunk with the Freepbx module Motif for GV incoming and outgoing calls but I have not been successful. Here is my setup:
root@incrediblepbx:~# /usr/local/fop2/fop2_server -v
fop2_server version 2.27
Incredible PBX 3.11.7 for Raspberry Pi
Ast 11.3.0-rc1 FreePBX 2.11.0.10
Tried this:
[Motif/gtechgurugmailcom/$OUTNUM$@voice.google.com]
type=trunk
label=9542000003
And this:
[Motif/gtechgurugmailcom]
type=trunk
label=9542000003
And this:
[Motif/gtechgurugmailcom]
type=trunk
label=9542000003
channel=Gtalk/voice.google.com
And this:
[Motif/gtechgurugmailcom]
type=trunk
label=9542000003
channel=Motif/voice.google.com
And only this works which is not a good solution:
[Motif/+19541237777]
type=trunk
label=9542000003
channel=Motif/voice.google.com
root@incrediblepbx:~# asterisk -rx "core show channels concise"
Motif/+19541237777-1f03!im-techgurugmailcom!s!9!Ring!Wait!1!9541237777!!!3!0!(None)!1390666895.221
root@incrediblepbx:~# asterisk -rx "core show channels concise"
Motif/+19541237777-1f03!macro-vm!s-CHANUNAVAIL!2!Up!VoiceMail!1000@default,u!9541237777!!!3!7!(None)!1390666895.221
root@incrediblepbx:~# /usr/local/fop2/fop2_server -v
fop2_server version 2.27
Incredible PBX 3.11.7 for Raspberry Pi
Ast 11.3.0-rc1 FreePBX 2.11.0.10
Tried this:
[Motif/gtechgurugmailcom/$OUTNUM$@voice.google.com]
type=trunk
label=9542000003
And this:
[Motif/gtechgurugmailcom]
type=trunk
label=9542000003
And this:
[Motif/gtechgurugmailcom]
type=trunk
label=9542000003
channel=Gtalk/voice.google.com
And this:
[Motif/gtechgurugmailcom]
type=trunk
label=9542000003
channel=Motif/voice.google.com
And only this works which is not a good solution:
[Motif/+19541237777]
type=trunk
label=9542000003
channel=Motif/voice.google.com
root@incrediblepbx:~# asterisk -rx "core show channels concise"
Motif/+19541237777-1f03!im-techgurugmailcom!s!9!Ring!Wait!1!9541237777!!!3!0!(None)!1390666895.221
root@incrediblepbx:~# asterisk -rx "core show channels concise"
Motif/+19541237777-1f03!macro-vm!s-CHANUNAVAIL!2!Up!VoiceMail!1000@default,u!9541237777!!!3!7!(None)!1390666895.221
Comments
For the (TECH/name-session), in my example
Motif/+19541237777-1f03!im-techgurugmailcom!s!9!Ring!Wait!1!9541237777!!!3!0!(None)!1390666895.221
mine would be (Motif/+19541237777-1f03), correct. I saw that the auto button config scrip gave me these lines for my trunks:
[Motif/gtechgurugmailcom/$OUTNUM$@voice.google.com]
can the $OUTNUM$ pass the variable cid# somehow to use in my (TECH/name-session), something like this:
(TECH/$OUTNUM$-session), it may be good to monitor incomming calls even if they all come in through on the same button.
This is just an idea, if not possible I'm not too worried about it, im May I'm gonna have to switch to SIP trunk anyway.
Motif/+19541237777
Channels in fop2 are static, you cannot have loose matches as it adds too much load for no real benefit. So, the custom name you see in [] is unmodifiable but you can go to the fop2 buttons page and set the channel filed to be the above.
But as the "name" is a number that is probably dialed and it will probably vary from call to call, then it is not much point on having it that way.
Best regards,