Skip to content

Instantly share code, notes, and snippets.

View xytis's full-sized avatar

Vytis Valentinavičius xytis

View GitHub Profile
{
"$schema": "http://json-schema.org/draft-06/schema#",
"id": "http://hl7.org/fhir/json-schema/Observation",
"$ref": "#/definitions/Observation",
"description": "see http://hl7.org/fhir/json.html#schema for information about the FHIR Json Schemas",
"definitions": {
"Observation": {
"description": "Measurements and simple assertions made about a patient, device or other subject.",
"properties": {
"resourceType": {
{
"Job": {
"Region": "global",
"ID": "delivery-ru-service",
"ParentID": "",
"Name": "delivery-ru-service",
"Type": "service",
"Priority": 50,
"AllAtOnce": false,
"Datacenters": [
diff --git .version .version
index 933dbb1..be8b321 100644
--- .version
+++ .version
@@ -1 +1 @@
-11.10.0
+11.10.0-x3
diff --git channels/chan_sip.c channels/chan_sip.c
index be1274b..c43a68b 100644
--- channels/chan_sip.c
@xytis
xytis / dtls_hack_enable_sha256.patch
Last active August 29, 2015 14:02
Added permanent fix =]
Index: .version
===================================================================
--- .version (revision 414969)
+++ .version (working copy)
@@ -1 +1 @@
-11.10.0
+11.10.0-x2
Index: include/asterisk/rtp_engine.h
===================================================================
--- include/asterisk/rtp_engine.h (revision 414969)
diff --git channels/chan_sip.c channels/chan_sip.c
index 04c4638..59031fe 100644
--- channels/chan_sip.c
+++ channels/chan_sip.c
@@ -5884,6 +5884,12 @@ static int dialog_initialize_rtp(struct sip_pvt *dialog)
return -1;
}
+ //Set ice role depending on call direction
+ //Later may do the same to other channels too.
@xytis
xytis / Development environment
Created November 25, 2013 10:57
Development environment
Development environment
=======================
Prefered usage:
``` bash
sh -c "`curl -fsSL https://raw.github.com/kupishoes/leos.tool/install.sh`"
leos init
loes clone callcenter
```
@xytis
xytis / main.c
Last active December 24, 2015 13:29
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <time.h>
#define NUMBER 1000000
int main(void) {
int *result;
result = (int *) malloc(NUMBER*sizeof(int));
@xytis
xytis / gist:5361405
Last active August 20, 2022 15:06 — forked from hashmal/gist:874792
Print Lua table recursively.
-- Print contents of `tbl`, with indentation.
-- `indent` sets the initial level of indentation.
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
print(formatting)
tprint(v, indent+1)
else