Advertisement
Guest User

gv-add fails xmpp code w/ 17.13

a guest
Oct 20th, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.92 KB | None | 0 0
  1. 2017-10-20 16:41:22 vps00000:~# ./add-gvtrunk
  2. grep: /etc/asterisk/motif.conf: No such file or directory
  3. .-. .-. _ .-. .-. .---. .---. .-..-.
  4. : : : ::_;: : : : : .; :: .; :: `' :
  5. : :,-.,-. .--. .--. .--. .-' :.-.: `-. : : .--. : _.': .' ` '
  6. : :: ,. :' ..': ..'' '_.'' .; :: :' .; :: :_ ' '_.' : : : .; :.' `.
  7. :_;:_;:_;`.__.':_; `.__.'`.__.':_;`.__.'`.__;`.__.' :_; :___.':_;:_;
  8. Copyright (c) 2005-2016, Ward Mundy & Associates LLC. All rights reserved.
  9.  
  10. add-gvtrunk 2.0 INSTALLS GOOGLE VOICE TRUNKS ONTO THE XIVO PBX PLATFORM.
  11. You'll need your GV phone number, Google email address, and GV Refresh_Token.
  12.  
  13. BY USING INCREDIBLE PBX COMPONENTS, YOU AGREE TO ASSUME ALL RESPONSIBILITY
  14. FOR USE OF THE PROGRAMS INCLUDED IN THIS INSTALLATION. NO WARRANTIES
  15. EXPRESS OR IMPLIED INCLUDING MERCHANTABILITY AND FITNESS FOR PARTICULAR
  16. USE ARE PROVIDED. YOU ASSUME ALL RISKS KNOWN AND UNKNOWN AND AGREE TO
  17. HOLD WARD MUNDY, WARD MUNDY & ASSOCIATES LLC, NERD VITTLES, AND THE
  18. INCREDIBLE PBX DEVELOPMENT TEAM HARMLESS FROM ANY AND ALL LOSS OR DAMAGE
  19. WHICH RESULTS FROM YOUR USE OF THIS SOFTWARE. AS CONFIGURED, THIS
  20. SOFTWARE CANNOT BE USED TO MAKE 911 CALLS, AND YOU AGREE TO PROVIDE
  21. AN ALTERNATE PHONE CAPABLE OF MAKING EMERGENCY CALLS. IF ANY OF THESE TERMS
  22. AND CONDITIONS ARE RULED TO BE UNENFORCEABLE, YOU AGREE TO ACCEPT ONE
  23. DOLLAR IN U.S. CURRENCY AS COMPENSATORY AND PUNITIVE LIQUIDATED DAMAGES
  24. FOR ANY AND ALL CLAIMS YOU AND ANY USERS OF THIS SOFTWARE MIGHT HAVE.
  25.  
  26. If you do not agree with these terms and conditions of use, press Ctrl-C now.
  27. Otherwise, press Enter to proceed at your own risk...
  28. Here is a list of your existing Google Voice trunks:
  29. grep: /etc/asterisk/motif.conf: No such file or directory
  30.  
  31. Do you wish to [A]dd or [D]elete a Google Voice trunk [A/D]? a
  32.  
  33. Adding Google Voice trunk...
  34.  
  35. Here is a list of your existing Google Voice trunks:
  36. grep: /etc/asterisk/motif.conf: No such file or directory
  37.  
  38. Enter 10-digit Google Voice number to add: phonenumbr^C
  39. 2017-10-20 16:41:40 vps00000:~# ./add-gvtrunk
  40. grep: /etc/asterisk/motif.conf: No such file or directory
  41. .-. .-. _ .-. .-. .---. .---. .-..-.
  42. : : : ::_;: : : : : .; :: .; :: `' :
  43. : :,-.,-. .--. .--. .--. .-' :.-.: `-. : : .--. : _.': .' ` '
  44. : :: ,. :' ..': ..'' '_.'' .; :: :' .; :: :_ ' '_.' : : : .; :.' `.
  45. :_;:_;:_;`.__.':_; `.__.'`.__.':_;`.__.'`.__;`.__.' :_; :___.':_;:_;
  46. Copyright (c) 2005-2016, Ward Mundy & Associates LLC. All rights reserved.
  47.  
  48. add-gvtrunk 2.0 INSTALLS GOOGLE VOICE TRUNKS ONTO THE XIVO PBX PLATFORM.
  49. You'll need your GV phone number, Google email address, and GV Refresh_Token.
  50.  
  51. BY USING INCREDIBLE PBX COMPONENTS, YOU AGREE TO ASSUME ALL RESPONSIBILITY
  52. FOR USE OF THE PROGRAMS INCLUDED IN THIS INSTALLATION. NO WARRANTIES
  53. EXPRESS OR IMPLIED INCLUDING MERCHANTABILITY AND FITNESS FOR PARTICULAR
  54. USE ARE PROVIDED. YOU ASSUME ALL RISKS KNOWN AND UNKNOWN AND AGREE TO
  55. HOLD WARD MUNDY, WARD MUNDY & ASSOCIATES LLC, NERD VITTLES, AND THE
  56. INCREDIBLE PBX DEVELOPMENT TEAM HARMLESS FROM ANY AND ALL LOSS OR DAMAGE
  57. WHICH RESULTS FROM YOUR USE OF THIS SOFTWARE. AS CONFIGURED, THIS
  58. SOFTWARE CANNOT BE USED TO MAKE 911 CALLS, AND YOU AGREE TO PROVIDE
  59. AN ALTERNATE PHONE CAPABLE OF MAKING EMERGENCY CALLS. IF ANY OF THESE TERMS
  60. AND CONDITIONS ARE RULED TO BE UNENFORCEABLE, YOU AGREE TO ACCEPT ONE
  61. DOLLAR IN U.S. CURRENCY AS COMPENSATORY AND PUNITIVE LIQUIDATED DAMAGES
  62. FOR ANY AND ALL CLAIMS YOU AND ANY USERS OF THIS SOFTWARE MIGHT HAVE.
  63.  
  64. If you do not agree with these terms and conditions of use, press Ctrl-C now.
  65. Otherwise, press Enter to proceed at your own risk...
  66. Here is a list of your existing Google Voice trunks:
  67. grep: /etc/asterisk/motif.conf: No such file or directory
  68.  
  69. Do you wish to [A]dd or [D]elete a Google Voice trunk [A/D]? a
  70.  
  71. Adding Google Voice trunk...
  72.  
  73. Here is a list of your existing Google Voice trunks:
  74. grep: /etc/asterisk/motif.conf: No such file or directory
  75.  
  76. Enter 10-digit Google Voice number to add: phonenumbr
  77.  
  78. Enter your Gmail name without @gmail.com: myGmailName
  79.  
  80. Enter your GV Refresh_Token: myAuthToken
  81.  
  82.  
  83. You entered the following information. Check it carefully.
  84.  
  85. Google Voice Number: phonenumbr
  86. Google Email Name: myGmailName
  87. Google Refresh Token: myAuthToken
  88.  
  89. WARNING: NO ERROR CHECKING IS PROVIDED WITH THIS INSTALLER.
  90. A Google Voice number must be 10-digits with NO punctuation.
  91. Gmail name must NOT include @gmail.com or install will fail.
  92. An incorrect GV Refresh_Token will send Asterisk into ozone.
  93. WARNING: NO ERROR CHECKING IS PROVIDED WITH THIS INSTALLER.
  94.  
  95. Press Enter to proceed or Ctrl-C to terminate the install...
  96. Installing Google Voice with OAuth 2 patch for XiVO...
  97.  
  98. Reading package lists... 0%
  99.  
  100. Reading package lists... 0%
  101.  
  102. Reading package lists... 10%
  103.  
  104. Reading package lists... Done
  105.  
  106.  
  107. Building dependency tree... 0%
  108.  
  109. Building dependency tree... 0%
  110.  
  111. Building dependency tree... 50%
  112.  
  113. Building dependency tree... 50%
  114.  
  115. Building dependency tree
  116.  
  117.  
  118. Reading state information... 0%
  119.  
  120. Reading state information... 0%
  121.  
  122. Reading state information... Done
  123.  
  124. libiksemel-dev is already the newest version.
  125. git is already the newest version.
  126. asterisk-dev is already the newest version.
  127. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  128. Cloning into 'asterisk-res-xmpp-oauth'...
  129. remote: Counting objects: 118, done.
  130. Receiving objects: 0% (1/118)
  131. Receiving objects: 1% (2/118)
  132. Receiving objects: 2% (3/118)
  133. Receiving objects: 3% (4/118)
  134. Receiving objects: 4% (5/118)
  135. Receiving objects: 5% (6/118)
  136. Receiving objects: 6% (8/118)
  137. Receiving objects: 7% (9/118)
  138. Receiving objects: 8% (10/118)
  139. Receiving objects: 9% (11/118)
  140. Receiving objects: 10% (12/118)
  141. Receiving objects: 11% (13/118)
  142. Receiving objects: 12% (15/118)
  143. Receiving objects: 13% (16/118)
  144. Receiving objects: 14% (17/118)
  145. Receiving objects: 15% (18/118)
  146. Receiving objects: 16% (19/118)
  147. Receiving objects: 17% (21/118)
  148. Receiving objects: 18% (22/118)
  149. Receiving objects: 19% (23/118)
  150. Receiving objects: 20% (24/118)
  151. Receiving objects: 21% (25/118)
  152. Receiving objects: 22% (26/118)
  153. Receiving objects: 23% (28/118)
  154. Receiving objects: 24% (29/118)
  155. Receiving objects: 25% (30/118)
  156. Receiving objects: 26% (31/118)
  157. Receiving objects: 27% (32/118)
  158. Receiving objects: 28% (34/118)
  159. Receiving objects: 29% (35/118)
  160. Receiving objects: 30% (36/118)
  161. Receiving objects: 31% (37/118)
  162. Receiving objects: 32% (38/118)
  163. Receiving objects: 33% (39/118)
  164. Receiving objects: 34% (41/118)
  165. Receiving objects: 35% (42/118)
  166. Receiving objects: 36% (43/118)
  167. Receiving objects: 37% (44/118)
  168. Receiving objects: 38% (45/118)
  169. Receiving objects: 39% (47/118)
  170. Receiving objects: 40% (48/118)
  171. Receiving objects: 41% (49/118)
  172. Receiving objects: 42% (50/118)
  173. Receiving objects: 43% (51/118)
  174. Receiving objects: 44% (52/118)
  175. Receiving objects: 45% (54/118)
  176. Receiving objects: 46% (55/118)
  177. Receiving objects: 47% (56/118)
  178. Receiving objects: 48% (57/118)
  179. Receiving objects: 49% (58/118)
  180. Receiving objects: 50% (59/118)
  181. Receiving objects: 51% (61/118)
  182. Receiving objects: 52% (62/118)
  183. Receiving objects: 53% (63/118)
  184. remote: Total 118 (delta 0), reused 0 (delta 0), pack-reused 118
  185. Receiving objects: 54% (64/118)
  186. Receiving objects: 55% (65/118)
  187. Receiving objects: 56% (67/118)
  188. Receiving objects: 57% (68/118)
  189. Receiving objects: 58% (69/118)
  190. Receiving objects: 59% (70/118)
  191. Receiving objects: 60% (71/118)
  192. Receiving objects: 61% (72/118)
  193. Receiving objects: 62% (74/118)
  194. Receiving objects: 63% (75/118)
  195. Receiving objects: 64% (76/118)
  196. Receiving objects: 65% (77/118)
  197. Receiving objects: 66% (78/118)
  198. Receiving objects: 67% (80/118)
  199. Receiving objects: 68% (81/118)
  200. Receiving objects: 69% (82/118)
  201. Receiving objects: 70% (83/118)
  202. Receiving objects: 71% (84/118)
  203. Receiving objects: 72% (85/118)
  204. Receiving objects: 73% (87/118)
  205. Receiving objects: 74% (88/118)
  206. Receiving objects: 75% (89/118)
  207. Receiving objects: 76% (90/118)
  208. Receiving objects: 77% (91/118)
  209. Receiving objects: 78% (93/118)
  210. Receiving objects: 79% (94/118)
  211. Receiving objects: 80% (95/118)
  212. Receiving objects: 81% (96/118)
  213. Receiving objects: 82% (97/118)
  214. Receiving objects: 83% (98/118)
  215. Receiving objects: 84% (100/118)
  216. Receiving objects: 85% (101/118)
  217. Receiving objects: 86% (102/118)
  218. Receiving objects: 87% (103/118)
  219. Receiving objects: 88% (104/118)
  220. Receiving objects: 89% (106/118)
  221. Receiving objects: 90% (107/118)
  222. Receiving objects: 91% (108/118)
  223. Receiving objects: 92% (109/118)
  224. Receiving objects: 93% (110/118)
  225. Receiving objects: 94% (111/118)
  226. Receiving objects: 95% (113/118)
  227. Receiving objects: 96% (114/118)
  228. Receiving objects: 97% (115/118)
  229. Receiving objects: 98% (116/118)
  230. Receiving objects: 99% (117/118)
  231. Receiving objects: 100% (118/118)
  232. Receiving objects: 100% (118/118), 52.42 KiB | 0 bytes/s, done.
  233. Resolving deltas: 0% (0/57)
  234. Resolving deltas: 5% (3/57)
  235. Resolving deltas: 22% (13/57)
  236. Resolving deltas: 50% (29/57)
  237. Resolving deltas: 52% (30/57)
  238. Resolving deltas: 54% (31/57)
  239. Resolving deltas: 57% (33/57)
  240. Resolving deltas: 59% (34/57)
  241. Resolving deltas: 61% (35/57)
  242. Resolving deltas: 64% (37/57)
  243. Resolving deltas: 66% (38/57)
  244. Resolving deltas: 70% (40/57)
  245. Resolving deltas: 77% (44/57)
  246. Resolving deltas: 89% (51/57)
  247. Resolving deltas: 91% (52/57)
  248. Resolving deltas: 94% (54/57)
  249. Resolving deltas: 96% (55/57)
  250. Resolving deltas: 98% (56/57)
  251. Resolving deltas: 100% (57/57)
  252. Resolving deltas: 100% (57/57), done.
  253. Checking connectivity... done.
  254. patch -p0 < debian/patches/oauth_support.diff
  255. patching file res_xmpp.c
  256. 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
  257. res_xmpp.c: In function xmpp_client_change_state:
  258. res_xmpp.c:622:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  259. if (state == client->state) {
  260. ^
  261. res_xmpp.c: In function xmpp_action_hook:
  262. res_xmpp.c:3559:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  263. for (i = 0; i < ARRAY_LEN(xmpp_state_handlers); i++) {
  264. ^
  265. res_xmpp.c:3560:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  266. if ((xmpp_state_handlers[i].state == client->state) && (xmpp_state_handlers[i].component == (ast_test_flag(&clientcfg->flags, XMPP_COMPONENT) ? 1 : 0))) {
  267. ^
  268. res_xmpp.c:3570:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  269. for (i = 0; i < ARRAY_LEN(xmpp_pak_handlers); i++) {
  270. ^
  271. res_xmpp.c:3571:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  272. if (xmpp_pak_handlers[i].type == pak->type) {
  273. ^
  274. cc -Wall -shared res_xmpp.o -o res_xmpp_oauth.so -liksemel
  275. mkdir -p /usr/lib/asterisk/modules
  276. install -m 644 res_xmpp_oauth.so /usr/lib/asterisk/modules/
  277. +-------- res_xmpp_oauth installed ---------+
  278. + +
  279. + res_xmpp_oauth has successfully +
  280. + been installed. +
  281. + If you would like to install the sample +
  282. + configuration file run: +
  283. + +
  284. + make samples +
  285. +-------------------------------------------+
  286. Configuring Asterisk to support Google Voice...
  287. Configuring Incredible PBX for XiVO to support Google Voice...
  288.  
  289. Configuring myGmailName trunk for Incredible PBX with XiVO...
  290. [....] Restarting asterisk (via systemctl): asterisk.service[ ok .
  291.  
  292. Initial setup of myGmailName is complete.
  293. You now must complete the setup by adding a
  294. custom trunk, incoming AND outgoing route
  295. within the XiVO GUI using a web browser.
  296.  
  297. Customized Trunk Settings:
  298. Name: myGmailName
  299. Interface: Motif/myGmailName
  300. Suffix: @voice.google.com
  301. Context: Outcalls (to-extern)
  302.  
  303. Incoming Calls Settings:
  304. DID: phonenumbr
  305. Context: Incalls (from-extern)
  306. Destination: Your Choice
  307. Redirect to: Your Choice
  308. Ring time: 30
  309.  
  310. Outgoing Calls Settings:
  311. Name: out_myGmailName
  312. Context: Outcalls (to-extern)
  313. Preprocess subroutine: subr-gv-outcall
  314. Selected trunk: myGmailName
  315. Exten + Stripnum: Must Be Unique
  316.  
  317. 2017-10-20 17:24:56 vps00000:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement