1# JSON is shown in *reverse* chronological order. 2# Send v. Receive is implicit. 3 4{ 5 "jsonrpc": "2.0", 6 "id": 7, 7 "result": { 8 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 9 "message": "CALL ENDED", 10 "causeCode": 16, 11 "cause": "NORMAL_CLEARING", 12 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 13 } 14} 15 16{ 17 "jsonrpc": "2.0", 18 "method": "verto.bye", 19 "params": { 20 "dialogParams": { 21 "useVideo": false, 22 "useStereo": true, 23 "tag": "webcam", 24 "login": "1008@webrtc.freeswitch.org", 25 "destination_number": "9664", 26 "caller_id_name": "FreeSWITCH User", 27 "caller_id_number": "1008", 28 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 29 "remote_caller_id_name": "Outbound Call", 30 "remote_caller_id_number": "9664" 31 }, 32 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 33 }, 34 "id": 7 35} 36 37{ 38 "jsonrpc": "2.0", 39 "id": 6, 40 "result": { 41 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 42 "action": "toggleHold", 43 "holdState": "active", 44 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 45 } 46} 47 48{ 49 "jsonrpc": "2.0", 50 "method": "verto.modify", 51 "params": { 52 "action": "toggleHold", 53 "dialogParams": { 54 "useVideo": false, 55 "useStereo": true, 56 "tag": "webcam", 57 "login": "1008@webrtc.freeswitch.org", 58 "destination_number": "9664", 59 "caller_id_name": "FreeSWITCH User", 60 "caller_id_number": "1008", 61 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 62 "remote_caller_id_name": "Outbound Call", 63 "remote_caller_id_number": "9664" 64 }, 65 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 66 }, 67 "id": 6 68} 69 70{ 71 "jsonrpc": "2.0", 72 "id": 5, 73 "result": { 74 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 75 "action": "toggleHold", 76 "holdState": "held", 77 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 78 } 79} 80 81{ 82 "jsonrpc": "2.0", 83 "method": "verto.modify", 84 "params": { 85 "action": "toggleHold", 86 "dialogParams": { 87 "useVideo": false, 88 "useStereo": true, 89 "tag": "webcam", 90 "login": "1008@webrtc.freeswitch.org", 91 "destination_number": "9664", 92 "caller_id_name": "FreeSWITCH User", 93 "caller_id_number": "1008", 94 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 95 "remote_caller_id_name": "Outbound Call", 96 "remote_caller_id_number": "9664" 97 }, 98 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 99 }, 100 "id": 5 101} 102 103{ 104 "jsonrpc": "2.0", 105 "id": 349819, 106 "result": { 107 "method": "verto.answer" 108 } 109} 110 111{ 112 "jsonrpc": "2.0", 113 "id": 349819, 114 "method": "verto.answer", 115 "params": { 116 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 117 "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" 118 } 119} 120 121{ 122 "jsonrpc": "2.0", 123 "id": 4, 124 "result": { 125 "message": "CALL CREATED", 126 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 127 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 128 } 129} 130 131{ 132 "jsonrpc": "2.0", 133 "method": "verto.invite", 134 "params": { 135 "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", 136 "dialogParams": { 137 "useVideo": false, 138 "useStereo": true, 139 "tag": "webcam", 140 "login": "1008@webrtc.freeswitch.org", 141 "destination_number": "9664", 142 "caller_id_name": "FreeSWITCH User", 143 "caller_id_number": "1008", 144 "callID": "12795aa6-2a8d-84ee-ce63-2e82ffe825ef", 145 "remote_caller_id_name": "Outbound Call", 146 "remote_caller_id_number": "9664" 147 }, 148 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 149 }, 150 "id": 4 151} 152 153{ 154 "jsonrpc": "2.0", 155 "id": 3, 156 "result": { 157 "message": "logged in", 158 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 159 } 160} 161 162{ 163 "jsonrpc": "2.0", 164 "id": 1, 165 "error": { 166 "code": -32000, 167 "message": "Authentication Required" 168 } 169} 170 171{ 172 "jsonrpc": "2.0", 173 "method": "login", 174 "params": { 175 "login": "1008@webrtc.freeswitch.org", 176 "passwd": "1234", 177 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 178 }, 179 "id": 3 180} 181 182{ 183 "jsonrpc": "2.0", 184 "id": 2, 185 "error": { 186 "code": -32000, 187 "message": "Authentication Required" 188 } 189} 190 191{ 192 "jsonrpc": "2.0", 193 "method": "login", 194 "params": { 195 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 196 }, 197 "id": 1 198} 199 200{ 201 "jsonrpc": "2.0", 202 "method": "login", 203 "params": { 204 "sessid": "03a11060-3e14-23b6-c620-51b892c52983" 205 }, 206 "id": 2 207} 208