Skip to content

Instantly share code, notes, and snippets.

Telestax, Inc. Mail Antonis Tsakiridis <antonis.tsakiridis@telestax.com>
Log of Restcomm call
Brad Scheurman <bscheurman@mymobilecoverage.com> Tue, Nov 22, 2016 at 8:31 PM
To: Antonis Tsakiridis <antonis.tsakiridis@telestax.com>
Here I dialed the call to the restcomm server. It rang and answered and said its phrase and hung up. But its not calling RCConnection.handleDisconnected, and therefore not sending the sendQoSConnectionIntent("disconnected") and so its not ending my event and sending to the server.
In this case, the restcomm app also crashed after the call, and the exception stack is at the end of this log. I don't think it usually has the crash though.
11-22 11:21:26.251 4370-4370/com.telestax.restcomm_helloworld D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
11-22 11:21:26.401 4370-4370/com.telestax.restcomm_helloworld I/RCDevice: connect(): {username=sip:+1235@cloud.restcomm.com:5060, remote-video=org.restcomm.android.sdk.util.PercentFrameLayout{85fb13b V.E..... ........ 0,0-1080,1920 #7f0d0054
@atsakiridis
atsakiridis / install_appledoc.sh
Last active November 21, 2016 11:42
Install latest release of appledoc
if hash appledoc 2>/dev/null; then
echo -e '\033[1;31mNOTICE: appledoc is now preinstalled, and the command installing it can be removed from the build process\033[0m'
else
#APPLEDOC_VERSION="v2.2-963"
TMPDIR=$(mktemp -d -t appledoc)
cd $TMPDIR
#wget -q https://github.com/tomaz/appledoc/releases/download/"${APPLEDOC_VERSION}"/appledoc.zip
wget -q https://github.com/tomaz/appledoc/releases/download/2.2.1/appledoc-2.2.1.zip
unzip -qq appledoc-2.2.1.zip
cp appledoc/appledoc /usr/local/bin
#!/bin/sh
# Use --debug to activate debug mode with an optional argument to specify the port.
# Usage : standalone.bat --debug
# standalone.bat --debug 9797
# By default debug mode is disable.
DEBUG_MODE=false
DEBUG_PORT="8787"
SERVER_OPTS=""
== Register from iOS; notice that the contact port is corrected from 52492 to 52493 which is the wire port in the second REGISTER, after 407 (I assume Sofia figures out the epheral port right then)
13:59:48,116 INFO [gov.nist.javax.sip.stack.SIPTransactionStack] (SIP-TCP-Core-PipelineThreadpool-13) <message
from="46.177.198.61:52493"
to="172.17.0.2:5061"
time="1463579988116"
isSender="false"
transactionId="z9hg4bkbkz8xbgg4vd8h"
callId="9f219613-97a3-1234-ea86-430ee2733f5e"
firstLine="REGISTER sips:54.197.102.50 SIP/2.0"
== ios Register:
01:58:53,689 INFO [gov.nist.javax.sip.stack.SIPTransactionStack] (SIP-TCP-Core-PipelineThreadpool-11) <message
from="192.168.2.52:60659"
to="192.168.2.40:5081"
time="1463007533689"
isSender="false"
transactionId="z9hg4bkjt6kkf100pa6d"
callId="eee9da27-93b9-1234-6aba-3d517f699e7a"
firstLine="REGISTER sips:192.168.2.40:5081 SIP/2.0"
Incident Identifier: A4BF2186-6A7A-4763-ADC8-C2669504E2B5
CrashReporter Key: cdc945fa6d6140e895bc400b0cdfe4742ab03d72
Hardware Model: iPhone5,2
Process: restcomm-olympus [2850]
Path: /private/var/mobile/Containers/Bundle/Application/14CB3C0E-FADD-4E7A-8A6F-E12119A5B4EE/restcomm-olympus.app/restcomm-olympus
Identifier: com.telestax.olympus
Version: BETA4#14 (1.0.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
@atsakiridis
atsakiridis / gist:ac8c8aaa03000b8a274d66107e707db9
Created April 27, 2016 14:34
200 OK response to MESSAGE fails
14:27:31,714 INFO [gov.nist.javax.sip.stack.SIPTransactionStack] (SIP-TCP-Core-PipelineThreadpool-12) <message
from="79.167.31.13:53769"
to="10.229.72.130:5060"
time="1461767251714"
isSender="false"
transactionId="z9hg4bkt39e0x6a3yb8e"
callId="04a0a09d-8727-1234-6881-cdddf752adaf"
firstLine="MESSAGE sip:bob@staging.restcomm.com SIP/2.0"
>
<![CDATA[MESSAGE sip:bob@staging.restcomm.com SIP/2.0
This appears to be Firefox adapter.js:54:5
Password fields present on an insecure (http://) page. This is a security risk that allows user login credentials to be stolen.[Learn More] <unknown>
WebRTCommClient:WebRTCommClient():this.id=WebRTCommClient1606312910 WebRTComm.js:4478:3
WebRTCommClient:open(): configuration={"communicationMode":"SIP","sip":{"sipUserAgent":"TelScale RTM Olympus/1.0.0","sipRegisterMode":true,"sipOutboundProxy":"ws://54.167.158.50:5082","sipDomain":"54.167.158.50","sipDisplayName":"Alice Alissys","sipUserName":"alice","sipLogin":"alice","sipPassword":"1234"},"RTCPeerConnection":{"stunServer":"stun.l.google.com:19302"}} WebRTComm.js:4546:1
WebRTCommClient:checkConfiguration(): configuration={"communicationMode":"SIP","sip":{"sipUserAgent":"TelScale RTM Olympus/1.0.0","sipRegisterMode":true,"sipOutboundProxy":"ws://54.167.158.50:5082","sipDomain":"54.167.158.50","sipDisplayName":"Alice Alissys","sipUserName":"alice","sipLogin":"alice","sipPassword":"1234"},"RTCPeerConnection":{"stunServe
This file has been truncated, but you can view the full file.
16:19:32,166 INFO [gov.nist.javax.sip.stack.UDPMessageChannel] (Restcomm-SIP-Servlets-UDPMessageChannelThread-21) Setting SIPMessage peerPacketSource to: /127.0.0.1:5060
16:19:32,167 INFO [gov.nist.javax.sip.stack.SIPTransactionStack] (Restcomm-SIP-Servlets-UDPMessageChannelThread-13) <message
from="127.0.0.1:5060"
to="127.0.0.1:5080"
time="1458224372161"
isSender="false"
transactionId="z9hg4bk-41270-12-1"
callId="12-41270@192.168.2.3"
firstLine="INVITE sip:+5556@127.0.0.1:5080 SIP/2.0"
>
@atsakiridis
atsakiridis / gist:8d18494479879d309b31
Created February 17, 2016 15:39
Xcode console for AVAudioSession issue
2016-02-17 17:33:41.509 restcomm-olympus[897:272435] TestFairy: Initializing SDK version 1.5.1 (20151004-43f268e5)
Feb 17 17:33:41 Antonioss-iPhone restcomm-olympus[897] <Notice>: (RCDevice.m:95) [RCDevice initWithParams]
Feb 17 17:33:41 Antonioss-iPhone restcomm-olympus[897] <Notice>: (SipManager.mm:291) [SipManager initWithDelegate]
Feb 17 17:33:41 Antonioss-iPhone restcomm-olympus[897] <Notice>: (SipManager.mm:356) [SipManager eventLoop]
Feb 17 17:33:41 Antonioss-iPhone restcomm-olympus[897] <Notice>: (ssc_sip.mm:249) Creating SIP stack -binding to: sip:192.168.2.41:*;transport=tcp, cert dir: /private/var/mobile/Containers/Bundle/Application/B4C46587-ED2B-4FA4-BF3B-5CC3B2FFDB98/restcomm-olympus.app
Feb 17 17:33:41 Antonioss-iPhone restcomm-olympus[897] <Notice>: (RCDevice.m:444) [RCDevice checkNetworkStatus] New reachability status: 1, RCDevice state: 0
Feb 17 17:33:41 Antonioss-iPhone restcomm-olympus[897] <Notice>: (RCDevice.m:470) [RCDevice checkNetworkStatus] action: wifi/mobile available
Feb 17 17:33: