Skip to content

Instantly share code, notes, and snippets.

View altanai's full-sized avatar
🎯
Focusing

altanai altanai

🎯
Focusing
View GitHub Profile
function init(e){var n;return e&&!location.hash.replace("#","").length?(location.href=location.href.split("#")[0]+"#"+(100*Math.random()).toString().replace(".",""),location.reload()):n=e&&location.hash.replace("#","").length?location.href.replace(/\/|:|#|\?|\$|\^|%|\.|`|~|!|\+|@|\[|\||]|\|*. /g,"").split("\n").join("").split("\r").join(""):prompt("Enter session ",""),n}var t=" ",e=null,n="[email protected]",usersList=document.getElementById("userslist"),numbersOfUsers=document.getElementById("numbersofusers"),usersContainer=document.getElementById("usersContainer"),localUserId=null,remoteUserId=null,card=document.getElementById("card"),containerDiv,main=document.querySelector("#main"),smaller=document.querySelector("#smaller"),webcallpeers=[],sessions={},whoIsTyping=document.querySelector("#who-is-typing"),repeatFlagShowButton=null,repeatFlagHideButton=null,repeatFlagRemoveButton=null,localVideo=null,miniVideo=null,remoteVideos=[],autoload=!0,sessionid=null,socketAddr="/",incomingAudio=!0,incomingVideo=!0
/*!
* Bootstrap v3.3.6 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-si
import gi
import time
from gi.repository import GObject, Gst
gi.require_version('Gst', '1.0')
Gst.init(None)
pipeline = Gst.Pipeline()
rpicamsrc = Gst.ElementFactory.make("rpicamsrc", "rpicam")
h264parse = Gst.ElementFactory.make("h264parse", "h264")
flvmux = Gst.ElementFactory.make("flvmux", "flv")
import gi
import time
from gi.repository import GObject, Gst
gi.require_version('Gst', '1.0')
Gst.init(None)
pipeline = Gst.Pipeline()
rpicamsrc = Gst.ElementFactory.make("rpicamsrc", "rpicam")
<Response>
<Speak loop="5" voice="WOMAN">
Welcome to Altanai's automatic response from answer URL. Have a nice day !
</Speak>
</Response>
contract Owned {
address owner;
function Owned() public {
owner = msg.sender;
}
modifier onlyOwner {
require(msg.sender == owner);
_;
@altanai
altanai / privacypolicy.txt
Created December 18, 2018 08:41
privacy policy
Sample file
<Response>
<Dial callerId="987987">
<Number>919871204072</Number>
</Dial>
</Response>
@altanai
altanai / RTPEngine.md
Last active August 19, 2022 07:02
RTPEngine on Ubuntu16 to be used with Kamailio as SIP proxy

Requirnments

sudo su 

apt update -y

apt-get install debhelper iptables-dev libcurl4-openssl-dev libglib2.0-dev  libjson-glib-dev libxmlrpc-core-c3-dev libhiredis-dev build-essential:native

for pcap

@altanai
altanai / Opensips.md
Created April 5, 2019 11:07
Installation of Opensips SIP server to proxy SIP messages

installation from repo

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 049AD65B
 echo "deb http://apt.opensips.org trusty 2.4-releases" >/etc/apt/sources.list.d/opensips.list

Manual Installation

Requirnments