Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2017-10-20 16:41:22 vps00000:~# ./add-gvtrunk
- grep: /etc/asterisk/motif.conf: No such file or directory
- .-. .-. _ .-. .-. .---. .---. .-..-.
- : : : ::_;: : : : : .; :: .; :: `' :
- : :,-.,-. .--. .--. .--. .-' :.-.: `-. : : .--. : _.': .' ` '
- : :: ,. :' ..': ..'' '_.'' .; :: :' .; :: :_ ' '_.' : : : .; :.' `.
- :_;:_;:_;`.__.':_; `.__.'`.__.':_;`.__.'`.__;`.__.' :_; :___.':_;:_;
- Copyright (c) 2005-2016, Ward Mundy & Associates LLC. All rights reserved.
- add-gvtrunk 2.0 INSTALLS GOOGLE VOICE TRUNKS ONTO THE XIVO PBX PLATFORM.
- You'll need your GV phone number, Google email address, and GV Refresh_Token.
- BY USING INCREDIBLE PBX COMPONENTS, YOU AGREE TO ASSUME ALL RESPONSIBILITY
- FOR USE OF THE PROGRAMS INCLUDED IN THIS INSTALLATION. NO WARRANTIES
- EXPRESS OR IMPLIED INCLUDING MERCHANTABILITY AND FITNESS FOR PARTICULAR
- USE ARE PROVIDED. YOU ASSUME ALL RISKS KNOWN AND UNKNOWN AND AGREE TO
- HOLD WARD MUNDY, WARD MUNDY & ASSOCIATES LLC, NERD VITTLES, AND THE
- INCREDIBLE PBX DEVELOPMENT TEAM HARMLESS FROM ANY AND ALL LOSS OR DAMAGE
- WHICH RESULTS FROM YOUR USE OF THIS SOFTWARE. AS CONFIGURED, THIS
- SOFTWARE CANNOT BE USED TO MAKE 911 CALLS, AND YOU AGREE TO PROVIDE
- AN ALTERNATE PHONE CAPABLE OF MAKING EMERGENCY CALLS. IF ANY OF THESE TERMS
- AND CONDITIONS ARE RULED TO BE UNENFORCEABLE, YOU AGREE TO ACCEPT ONE
- DOLLAR IN U.S. CURRENCY AS COMPENSATORY AND PUNITIVE LIQUIDATED DAMAGES
- FOR ANY AND ALL CLAIMS YOU AND ANY USERS OF THIS SOFTWARE MIGHT HAVE.
- If you do not agree with these terms and conditions of use, press Ctrl-C now.
- Otherwise, press Enter to proceed at your own risk...
- Here is a list of your existing Google Voice trunks:
- grep: /etc/asterisk/motif.conf: No such file or directory
- Do you wish to [A]dd or [D]elete a Google Voice trunk [A/D]? a
- Adding Google Voice trunk...
- Here is a list of your existing Google Voice trunks:
- grep: /etc/asterisk/motif.conf: No such file or directory
- Enter 10-digit Google Voice number to add: phonenumbr^C
- 2017-10-20 16:41:40 vps00000:~# ./add-gvtrunk
- grep: /etc/asterisk/motif.conf: No such file or directory
- .-. .-. _ .-. .-. .---. .---. .-..-.
- : : : ::_;: : : : : .; :: .; :: `' :
- : :,-.,-. .--. .--. .--. .-' :.-.: `-. : : .--. : _.': .' ` '
- : :: ,. :' ..': ..'' '_.'' .; :: :' .; :: :_ ' '_.' : : : .; :.' `.
- :_;:_;:_;`.__.':_; `.__.'`.__.':_;`.__.'`.__;`.__.' :_; :___.':_;:_;
- Copyright (c) 2005-2016, Ward Mundy & Associates LLC. All rights reserved.
- add-gvtrunk 2.0 INSTALLS GOOGLE VOICE TRUNKS ONTO THE XIVO PBX PLATFORM.
- You'll need your GV phone number, Google email address, and GV Refresh_Token.
- BY USING INCREDIBLE PBX COMPONENTS, YOU AGREE TO ASSUME ALL RESPONSIBILITY
- FOR USE OF THE PROGRAMS INCLUDED IN THIS INSTALLATION. NO WARRANTIES
- EXPRESS OR IMPLIED INCLUDING MERCHANTABILITY AND FITNESS FOR PARTICULAR
- USE ARE PROVIDED. YOU ASSUME ALL RISKS KNOWN AND UNKNOWN AND AGREE TO
- HOLD WARD MUNDY, WARD MUNDY & ASSOCIATES LLC, NERD VITTLES, AND THE
- INCREDIBLE PBX DEVELOPMENT TEAM HARMLESS FROM ANY AND ALL LOSS OR DAMAGE
- WHICH RESULTS FROM YOUR USE OF THIS SOFTWARE. AS CONFIGURED, THIS
- SOFTWARE CANNOT BE USED TO MAKE 911 CALLS, AND YOU AGREE TO PROVIDE
- AN ALTERNATE PHONE CAPABLE OF MAKING EMERGENCY CALLS. IF ANY OF THESE TERMS
- AND CONDITIONS ARE RULED TO BE UNENFORCEABLE, YOU AGREE TO ACCEPT ONE
- DOLLAR IN U.S. CURRENCY AS COMPENSATORY AND PUNITIVE LIQUIDATED DAMAGES
- FOR ANY AND ALL CLAIMS YOU AND ANY USERS OF THIS SOFTWARE MIGHT HAVE.
- If you do not agree with these terms and conditions of use, press Ctrl-C now.
- Otherwise, press Enter to proceed at your own risk...
- Here is a list of your existing Google Voice trunks:
- grep: /etc/asterisk/motif.conf: No such file or directory
- Do you wish to [A]dd or [D]elete a Google Voice trunk [A/D]? a
- Adding Google Voice trunk...
- Here is a list of your existing Google Voice trunks:
- grep: /etc/asterisk/motif.conf: No such file or directory
- Enter 10-digit Google Voice number to add: phonenumbr
- Enter your Gmail name without @gmail.com: myGmailName
- Enter your GV Refresh_Token: myAuthToken
- You entered the following information. Check it carefully.
- Google Voice Number: phonenumbr
- Google Email Name: myGmailName
- Google Refresh Token: myAuthToken
- WARNING: NO ERROR CHECKING IS PROVIDED WITH THIS INSTALLER.
- A Google Voice number must be 10-digits with NO punctuation.
- Gmail name must NOT include @gmail.com or install will fail.
- An incorrect GV Refresh_Token will send Asterisk into ozone.
- WARNING: NO ERROR CHECKING IS PROVIDED WITH THIS INSTALLER.
- Press Enter to proceed or Ctrl-C to terminate the install...
- Installing Google Voice with OAuth 2 patch for XiVO...
- Reading package lists... 0%
- Reading package lists... 0%
- Reading package lists... 10%
- Reading package lists... Done
- Building dependency tree... 0%
- Building dependency tree... 0%
- Building dependency tree... 50%
- Building dependency tree... 50%
- Building dependency tree
- Reading state information... 0%
- Reading state information... 0%
- Reading state information... Done
- libiksemel-dev is already the newest version.
- git is already the newest version.
- asterisk-dev is already the newest version.
- 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
- Cloning into 'asterisk-res-xmpp-oauth'...
- remote: Counting objects: 118, done.
- Receiving objects: 0% (1/118)
- Receiving objects: 1% (2/118)
- Receiving objects: 2% (3/118)
- Receiving objects: 3% (4/118)
- Receiving objects: 4% (5/118)
- Receiving objects: 5% (6/118)
- Receiving objects: 6% (8/118)
- Receiving objects: 7% (9/118)
- Receiving objects: 8% (10/118)
- Receiving objects: 9% (11/118)
- Receiving objects: 10% (12/118)
- Receiving objects: 11% (13/118)
- Receiving objects: 12% (15/118)
- Receiving objects: 13% (16/118)
- Receiving objects: 14% (17/118)
- Receiving objects: 15% (18/118)
- Receiving objects: 16% (19/118)
- Receiving objects: 17% (21/118)
- Receiving objects: 18% (22/118)
- Receiving objects: 19% (23/118)
- Receiving objects: 20% (24/118)
- Receiving objects: 21% (25/118)
- Receiving objects: 22% (26/118)
- Receiving objects: 23% (28/118)
- Receiving objects: 24% (29/118)
- Receiving objects: 25% (30/118)
- Receiving objects: 26% (31/118)
- Receiving objects: 27% (32/118)
- Receiving objects: 28% (34/118)
- Receiving objects: 29% (35/118)
- Receiving objects: 30% (36/118)
- Receiving objects: 31% (37/118)
- Receiving objects: 32% (38/118)
- Receiving objects: 33% (39/118)
- Receiving objects: 34% (41/118)
- Receiving objects: 35% (42/118)
- Receiving objects: 36% (43/118)
- Receiving objects: 37% (44/118)
- Receiving objects: 38% (45/118)
- Receiving objects: 39% (47/118)
- Receiving objects: 40% (48/118)
- Receiving objects: 41% (49/118)
- Receiving objects: 42% (50/118)
- Receiving objects: 43% (51/118)
- Receiving objects: 44% (52/118)
- Receiving objects: 45% (54/118)
- Receiving objects: 46% (55/118)
- Receiving objects: 47% (56/118)
- Receiving objects: 48% (57/118)
- Receiving objects: 49% (58/118)
- Receiving objects: 50% (59/118)
- Receiving objects: 51% (61/118)
- Receiving objects: 52% (62/118)
- Receiving objects: 53% (63/118)
- remote: Total 118 (delta 0), reused 0 (delta 0), pack-reused 118
- Receiving objects: 54% (64/118)
- Receiving objects: 55% (65/118)
- Receiving objects: 56% (67/118)
- Receiving objects: 57% (68/118)
- Receiving objects: 58% (69/118)
- Receiving objects: 59% (70/118)
- Receiving objects: 60% (71/118)
- Receiving objects: 61% (72/118)
- Receiving objects: 62% (74/118)
- Receiving objects: 63% (75/118)
- Receiving objects: 64% (76/118)
- Receiving objects: 65% (77/118)
- Receiving objects: 66% (78/118)
- Receiving objects: 67% (80/118)
- Receiving objects: 68% (81/118)
- Receiving objects: 69% (82/118)
- Receiving objects: 70% (83/118)
- Receiving objects: 71% (84/118)
- Receiving objects: 72% (85/118)
- Receiving objects: 73% (87/118)
- Receiving objects: 74% (88/118)
- Receiving objects: 75% (89/118)
- Receiving objects: 76% (90/118)
- Receiving objects: 77% (91/118)
- Receiving objects: 78% (93/118)
- Receiving objects: 79% (94/118)
- Receiving objects: 80% (95/118)
- Receiving objects: 81% (96/118)
- Receiving objects: 82% (97/118)
- Receiving objects: 83% (98/118)
- Receiving objects: 84% (100/118)
- Receiving objects: 85% (101/118)
- Receiving objects: 86% (102/118)
- Receiving objects: 87% (103/118)
- Receiving objects: 88% (104/118)
- Receiving objects: 89% (106/118)
- Receiving objects: 90% (107/118)
- Receiving objects: 91% (108/118)
- Receiving objects: 92% (109/118)
- Receiving objects: 93% (110/118)
- Receiving objects: 94% (111/118)
- Receiving objects: 95% (113/118)
- Receiving objects: 96% (114/118)
- Receiving objects: 97% (115/118)
- Receiving objects: 98% (116/118)
- Receiving objects: 99% (117/118)
- Receiving objects: 100% (118/118)
- Receiving objects: 100% (118/118), 52.42 KiB | 0 bytes/s, done.
- Resolving deltas: 0% (0/57)
- Resolving deltas: 5% (3/57)
- Resolving deltas: 22% (13/57)
- Resolving deltas: 50% (29/57)
- Resolving deltas: 52% (30/57)
- Resolving deltas: 54% (31/57)
- Resolving deltas: 57% (33/57)
- Resolving deltas: 59% (34/57)
- Resolving deltas: 61% (35/57)
- Resolving deltas: 64% (37/57)
- Resolving deltas: 66% (38/57)
- Resolving deltas: 70% (40/57)
- Resolving deltas: 77% (44/57)
- Resolving deltas: 89% (51/57)
- Resolving deltas: 91% (52/57)
- Resolving deltas: 94% (54/57)
- Resolving deltas: 96% (55/57)
- Resolving deltas: 98% (56/57)
- Resolving deltas: 100% (57/57)
- Resolving deltas: 100% (57/57), done.
- Checking connectivity... done.
- patch -p0 < debian/patches/oauth_support.diff
- patching file res_xmpp.c
- cc -c -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wmissing-format-attribute -Wformat=2 -g -fPIC -D_GNU_SOURCE -D'AST_MODULE="res_xmpp"' -D'AST_MODULE_SELF_SYM=__internal_res_xmpp_oauth_self' -o res_xmpp.o res_xmpp.c
- res_xmpp.c: In function xmpp_client_change_state:
- res_xmpp.c:622:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- if (state == client->state) {
- ^
- res_xmpp.c: In function xmpp_action_hook:
- res_xmpp.c:3559:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- for (i = 0; i < ARRAY_LEN(xmpp_state_handlers); i++) {
- ^
- res_xmpp.c:3560:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- if ((xmpp_state_handlers[i].state == client->state) && (xmpp_state_handlers[i].component == (ast_test_flag(&clientcfg->flags, XMPP_COMPONENT) ? 1 : 0))) {
- ^
- res_xmpp.c:3570:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- for (i = 0; i < ARRAY_LEN(xmpp_pak_handlers); i++) {
- ^
- res_xmpp.c:3571:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
- if (xmpp_pak_handlers[i].type == pak->type) {
- ^
- cc -Wall -shared res_xmpp.o -o res_xmpp_oauth.so -liksemel
- mkdir -p /usr/lib/asterisk/modules
- install -m 644 res_xmpp_oauth.so /usr/lib/asterisk/modules/
- +-------- res_xmpp_oauth installed ---------+
- + +
- + res_xmpp_oauth has successfully +
- + been installed. +
- + If you would like to install the sample +
- + configuration file run: +
- + +
- + make samples +
- +-------------------------------------------+
- Configuring Asterisk to support Google Voice...
- Configuring Incredible PBX for XiVO to support Google Voice...
- Configuring myGmailName trunk for Incredible PBX with XiVO...
- [....] Restarting asterisk (via systemctl): asterisk.service[ ok .
- Initial setup of myGmailName is complete.
- You now must complete the setup by adding a
- custom trunk, incoming AND outgoing route
- within the XiVO GUI using a web browser.
- Customized Trunk Settings:
- Name: myGmailName
- Interface: Motif/myGmailName
- Suffix: @voice.google.com
- Context: Outcalls (to-extern)
- Incoming Calls Settings:
- DID: phonenumbr
- Context: Incalls (from-extern)
- Destination: Your Choice
- Redirect to: Your Choice
- Ring time: 30
- Outgoing Calls Settings:
- Name: out_myGmailName
- Context: Outcalls (to-extern)
- Preprocess subroutine: subr-gv-outcall
- Selected trunk: myGmailName
- Exten + Stripnum: Must Be Unique
- 2017-10-20 17:24:56 vps00000:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement