verto-example.json 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. # JSON is shown in *reverse* chronological order.
  2. # Send v. Receive is implicit.
  3. {
  4. "jsonrpc": "2.0",
  5. "id": 7,
  6. "result": {
  7. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  8. "message": "CALL ENDED",
  9. "causeCode": 16,
  10. "cause": "NORMAL_CLEARING",
  11. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  12. }
  13. }
  14. {
  15. "jsonrpc": "2.0",
  16. "method": "verto.bye",
  17. "params": {
  18. "dialogParams": {
  19. "useVideo": false,
  20. "useStereo": true,
  21. "tag": "webcam",
  22. "login": "1008@webrtc.freeswitch.org",
  23. "destination_number": "9664",
  24. "caller_id_name": "FreeSWITCH User",
  25. "caller_id_number": "1008",
  26. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  27. "remote_caller_id_name": "Outbound Call",
  28. "remote_caller_id_number": "9664"
  29. },
  30. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  31. },
  32. "id": 7
  33. }
  34. {
  35. "jsonrpc": "2.0",
  36. "id": 6,
  37. "result": {
  38. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  39. "action": "toggleHold",
  40. "holdState": "active",
  41. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  42. }
  43. }
  44. {
  45. "jsonrpc": "2.0",
  46. "method": "verto.modify",
  47. "params": {
  48. "action": "toggleHold",
  49. "dialogParams": {
  50. "useVideo": false,
  51. "useStereo": true,
  52. "tag": "webcam",
  53. "login": "1008@webrtc.freeswitch.org",
  54. "destination_number": "9664",
  55. "caller_id_name": "FreeSWITCH User",
  56. "caller_id_number": "1008",
  57. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  58. "remote_caller_id_name": "Outbound Call",
  59. "remote_caller_id_number": "9664"
  60. },
  61. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  62. },
  63. "id": 6
  64. }
  65. {
  66. "jsonrpc": "2.0",
  67. "id": 5,
  68. "result": {
  69. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  70. "action": "toggleHold",
  71. "holdState": "held",
  72. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  73. }
  74. }
  75. {
  76. "jsonrpc": "2.0",
  77. "method": "verto.modify",
  78. "params": {
  79. "action": "toggleHold",
  80. "dialogParams": {
  81. "useVideo": false,
  82. "useStereo": true,
  83. "tag": "webcam",
  84. "login": "1008@webrtc.freeswitch.org",
  85. "destination_number": "9664",
  86. "caller_id_name": "FreeSWITCH User",
  87. "caller_id_number": "1008",
  88. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  89. "remote_caller_id_name": "Outbound Call",
  90. "remote_caller_id_number": "9664"
  91. },
  92. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  93. },
  94. "id": 5
  95. }
  96. {
  97. "jsonrpc": "2.0",
  98. "id": 349819,
  99. "result": {
  100. "method": "verto.answer"
  101. }
  102. }
  103. {
  104. "jsonrpc": "2.0",
  105. "id": 349819,
  106. "method": "verto.answer",
  107. "params": {
  108. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  109. "sdp": "v=0\no=FreeSWITCH 1417101432 1417101433 IN IP4 209.105.235.10\ns=FreeSWITCH\nc=IN IP4 209.105.235.10\nt=0 0\na=msid-semantic: WMS jA3rmwLVwUq1iE6TYEYHeLk2YTUlh1Vq\nm=audio 30134 RTP/SAVPF 111 126\na=rtpmap:111 opus/48000/2\na=fmtp:111 minptime=10; stereo=1\na=rtpmap:126 telephone-event/8000\na=silenceSupp:off - - - -\na=ptime:20\na=sendrecv\na=fingerprint:sha-256 F8:72:18:E9:72:89:99:22:5B:F8:B6:C6:C6:0D:C5:9B:B2:FB:BC:CA:8D:AB:13:8A:66:E1:37:38:A0:16:AA:41\na=rtcp-mux\na=rtcp:30134 IN IP4 209.105.235.10\na=ssrc:210967934 cname:rOIEajpw4FocakWY\na=ssrc:210967934 msid:jA3rmwLVwUq1iE6TYEYHeLk2YTUlh1Vq a0\na=ssrc:210967934 mslabel:jA3rmwLVwUq1iE6TYEYHeLk2YTUlh1Vq\na=ssrc:210967934 label:jA3rmwLVwUq1iE6TYEYHeLk2YTUlh1Vqa0\na=ice-ufrag:OKwTmGLapwmxn7OF\na=ice-pwd:MmaMwq8rVmtWxfLbQ7U2Ew3T\na=candidate:2372654928 1 udp 659136 209.105.235.10 30134 typ host generation 0\n"
  110. }
  111. }
  112. {
  113. "jsonrpc": "2.0",
  114. "id": 4,
  115. "result": {
  116. "message": "CALL CREATED",
  117. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  118. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  119. }
  120. }
  121. {
  122. "jsonrpc": "2.0",
  123. "method": "verto.invite",
  124. "params": {
  125. "sdp": "v=0\r\no=- 1381685806032722557 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio\r\na=msid-semantic: WMS 6OOMyGAyJakjwaOOBtV7WcBCCuIW6PpuXsNg\r\nm=audio 63088 RTP/SAVPF 111 103 104 0 8 106 105 13 126\r\nc=IN IP4 81.138.8.249\r\na=rtcp:63088 IN IP4 81.138.8.249\r\na=candidate:460398169 1 udp 2122260223 10.10.79.10 49945 typ host generation 0\r\na=candidate:460398169 2 udp 2122260223 10.10.79.10 49945 typ host generation 0\r\na=candidate:3460887983 1 udp 2122194687 192.168.1.64 63088 typ host generation 0\r\na=candidate:3460887983 2 udp 2122194687 192.168.1.64 63088 typ host generation 0\r\na=candidate:945327227 1 udp 1685987071 81.138.8.249 63088 typ srflx raddr 192.168.1.64 rport 63088 generation 0\r\na=candidate:945327227 2 udp 1685987071 81.138.8.249 63088 typ srflx raddr 192.168.1.64 rport 63088 generation 0\r\na=candidate:1441981097 1 tcp 1518280447 10.10.79.10 0 typ host tcptype active generation 0\r\na=candidate:1441981097 2 tcp 1518280447 10.10.79.10 0 typ host tcptype active generation 0\r\na=candidate:2160789855 1 tcp 1518214911 192.168.1.64 0 typ host tcptype active generation 0\r\na=candidate:2160789855 2 tcp 1518214911 192.168.1.64 0 typ host tcptype active generation 0\r\na=ice-ufrag:cP4qeRhn0LpcpA88\r\na=ice-pwd:fREmgSkXsDLGUUH1bwfrBQhW\r\na=ice-options:google-ice\r\na=fingerprint:sha-256 AF:35:64:1B:62:8A:EF:27:AE:2B:88:2E:FE:78:29:0B:08:DA:64:6C:DE:02:57:E3:EE:B1:D7:86:B8:36:8F:B0\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10; stereo=1\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:126 telephone-event/8000\r\na=maxptime:60\r\na=ssrc:558827154 cname:vdKHBNqa17t2gmE3\r\na=ssrc:558827154 msid:6OOMyGAyJakjwaOOBtV7WcBCCuIW6PpuXsNg bf1303fb-9833-4d7d-b9e4-b32cfe04acc3\r\na=ssrc:558827154 mslabel:6OOMyGAyJakjwaOOBtV7WcBCCuIW6PpuXsNg\r\na=ssrc:558827154 label:bf1303fb-9833-4d7d-b9e4-b32cfe04acc3\r\n",
  126. "dialogParams": {
  127. "useVideo": false,
  128. "useStereo": true,
  129. "tag": "webcam",
  130. "login": "1008@webrtc.freeswitch.org",
  131. "destination_number": "9664",
  132. "caller_id_name": "FreeSWITCH User",
  133. "caller_id_number": "1008",
  134. "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef",
  135. "remote_caller_id_name": "Outbound Call",
  136. "remote_caller_id_number": "9664"
  137. },
  138. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  139. },
  140. "id": 4
  141. }
  142. {
  143. "jsonrpc": "2.0",
  144. "id": 3,
  145. "result": {
  146. "message": "logged in",
  147. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  148. }
  149. }
  150. {
  151. "jsonrpc": "2.0",
  152. "id": 1,
  153. "error": {
  154. "code": -32000,
  155. "message": "Authentication Required"
  156. }
  157. }
  158. {
  159. "jsonrpc": "2.0",
  160. "method": "login",
  161. "params": {
  162. "login": "1008@webrtc.freeswitch.org",
  163. "passwd": "1234",
  164. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  165. },
  166. "id": 3
  167. }
  168. {
  169. "jsonrpc": "2.0",
  170. "id": 2,
  171. "error": {
  172. "code": -32000,
  173. "message": "Authentication Required"
  174. }
  175. }
  176. {
  177. "jsonrpc": "2.0",
  178. "method": "login",
  179. "params": {
  180. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  181. },
  182. "id": 1
  183. }
  184. {
  185. "jsonrpc": "2.0",
  186. "method": "login",
  187. "params": {
  188. "sessid": "03a11060-3e14-23b6-c620-51b892c52983"
  189. },
  190. "id": 2
  191. }