Skip to content

Instantly share code, notes, and snippets.

View nicopace's full-sized avatar

Nicolás Pace nicopace

View GitHub Profile
@nicopace
nicopace / log
Created October 7, 2017 15:52
app trial in two situations
The call didn't went through, when calling to Edwin:
Oct 7 15:47:51 rhizortc /usr/sbin/kamailio[30629]: INFO: <script>: Push notification: {#012 "error": "User not found",#012 "id": "99910003701"#012} Result code 200
Oct 7 15:47:52 rhizortc /usr/sbin/kamailio[30632]: ERROR: <script>: MSILO: offline messages dumped - if they were
Oct 7 15:47:52 rhizortc /usr/sbin/kamailio[30632]: ERROR: cfgutils [cfgutils.c:658]: cfg_lock_helper(): lock set not initialized (attempt to do op: 0 on: 99920032512)
Oct 7 15:47:52 rhizortc /usr/sbin/kamailio[30632]: ERROR: cfgutils [cfgutils.c:658]: cfg_lock_helper(): lock set not initialized (attempt to do op: 1 on: 99920032512)
Oct 7 15:47:53 rhizortc /usr/sbin/kamailio[30597]: ERROR: <script>: MSILO: offline messages dumped - if they were
Oct 7 15:47:53 rhizortc /usr/sbin/kamailio[30597]: ERROR: cfgutils [cfgutils.c:658]: cfg_lock_helper(): lock set not initialized (attempt to do op: 0 on: pearllagoon)
Oct 7 15:47:53 rhizortc /usr/sbin/kamailio[30597]: E
@nicopace
nicopace / webph.one log
Created October 3, 2017 17:55
webph.one log
JsSIP:UA new() [configuration:Object] +0ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:Transport new() +0ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:UA configuration parameters after validation: +14ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:UA - via_host: "enme7b4m61n0.invalid" +3ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:UA - contact_uri: {"parameters":{"transport":"ws"},"headers":{}} +2ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:UA - password: NOT SHOWN +1ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:UA - realm: null +2ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:UA - ha1: NOT SHOWN +2ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:UA - register_expires: 600 +2ms
main.15eb988bc12ee6da6624.bundle.js:1 JsSIP:UA - register: true +2ms
@nicopace
nicopace / log2
Created October 3, 2017 17:51
log2
Oct 3 17:48:21 rhizortc rtpengine[7307]: INFO: [bnpl9t5dbqci74a78m6r]: Received command 'offer' from 127.0.0.1:54360
Oct 3 17:48:21 rhizortc rtpengine[7307]: NOTICE: [bnpl9t5dbqci74a78m6r]: Creating new call
Oct 3 17:48:21 rhizortc rtpengine[7307]: INFO: [bnpl9t5dbqci74a78m6r]: offer time = 0.002646 sec
Oct 3 17:48:21 rhizortc rtpengine[7307]: INFO: [bnpl9t5dbqci74a78m6r]: Replying to 'offer' from 127.0.0.1:54360
Oct 3 17:48:27 rhizortc rtpengine[7307]: NOTICE: [bnpl9t5dbqci74a78m6r port 38044]: Unknown STUN attribute: 0xc057
Oct 3 17:48:27 rhizortc rtpengine[7307]: NOTICE: [bnpl9t5dbqci74a78m6r port 38044]: Unknown STUN attribute: 0xc057
Oct 3 17:48:27 rhizortc rtpengine[7307]: NOTICE: [bnpl9t5dbqci74a78m6r port 38044]: Unknown STUN attribute: 0xc057
Oct 3 17:48:27 rhizortc rtpengine[7307]: NOTICE: [bnpl9t5dbqci74a78m6r port 38044]: Unknown STUN attribute: 0xc057
Oct 3 17:48:27 rhizortc rtpengine[7307]: INFO: [bnpl9t5dbqci74a78m6r]: Received command 'answer' from 127.0.0.1:43908
Oct 3 17:48:27 rhiz
@nicopace
nicopace / log1
Created October 3, 2017 17:51
log1
Oct 3 17:42:26 rhizortc rtpengine[7307]: INFO: [bnpl9eo9v8rblbd47ajo]: Received command 'offer' from 127.0.0.1:43908
Oct 3 17:42:26 rhizortc rtpengine[7307]: NOTICE: [bnpl9eo9v8rblbd47ajo]: Creating new call
Oct 3 17:42:26 rhizortc rtpengine[7307]: INFO: [bnpl9eo9v8rblbd47ajo]: offer time = 0.015154 sec
Oct 3 17:42:26 rhizortc rtpengine[7307]: INFO: [bnpl9eo9v8rblbd47ajo]: Replying to 'offer' from 127.0.0.1:43908
Oct 3 17:42:33 rhizortc rtpengine[7307]: NOTICE: [bnpl9eo9v8rblbd47ajo port 38020]: Unknown STUN attribute: 0xc057
Oct 3 17:42:33 rhizortc rtpengine[7307]: NOTICE: [bnpl9eo9v8rblbd47ajo port 38020]: Unknown STUN attribute: 0xc057
Oct 3 17:42:33 rhizortc rtpengine[7307]: NOTICE: [bnpl9eo9v8rblbd47ajo port 38020]: Unknown STUN attribute: 0xc057
Oct 3 17:42:33 rhizortc rtpengine[7307]: NOTICE: [bnpl9eo9v8rblbd47ajo port 38020]: Unknown STUN attribute: 0xc057
Oct 3 17:42:33 rhizortc rtpengine[7307]: NOTICE: [bnpl9eo9v8rblbd47ajo port 38020]: Unknown STUN attribute: 0xc057
Oct 3 17:42:33 rhizort
@nicopace
nicopace / ilua.sh
Created September 15, 2017 10:56
Enhanced lua interpeter in OpenWRT: ilua
!#/bin/sh
opkg update && opkg install libreadline
wget -O /tmp/ilua.lua https://raw.githubusercontent.com/ilua/ilua/master/ilua.lua
lua /tmp/ilua.lua
@nicopace
nicopace / iw-info-not-showing-80211s-properly.lua
Created September 15, 2017 07:07
iw-info-not-showing-80211s-properly.lua
local iwinfo = require("iwinfo")
networks = iwinfo.wext.scanlist("wlan0")
--[[
...
{
bssid = "C0:61:18:FB:B0:A0",
channel = 11,
encryption = {
auth_algs = { }, auth_suites = { }, description = "None"
enabled = false, group_ciphers = { }, pair_ciphers = { }
https://github.com/Microsoft/Recognizers-Text/pull/20/files
set /p commitId=<commitId.txt
set username=%1
set token=%2
set owner=%3
set repo=%4
set state=%5
set target_url=%6
@nicopace
nicopace / cooker con set -x
Created July 12, 2017 08:57
diferencia de compilacion entre lime-sdk y lede-sdk
k$ ./cooker -b ar71xx/generic --clean --no-update
+ '[' -f options.conf.local ']'
+ . options.conf
++ release=lede
++ base_url=https://downloads.lede-project.org/snapshots/targets/
++ communities_git=https://github.com/libremesh/network-profiles.git
++ communities_dir=communities
++ tmp_dir=tmp
++ feeds_default_file=feeds.conf.default
++ feeds_file=feeds.conf
@nicopace
nicopace / publisher.lua
Created July 9, 2017 07:46
Pub/Sub messaging over ubus with Lua
#!/usr/bin/env lua
require "ubus"
require "uloop"
uloop.init()
local conn = ubus.connect()
if not conn then
error("Failed to connect to ubus")
@nicopace
nicopace / diff
Created July 7, 2017 17:16
axel diff
diff --git a/hna.c b/hna.c
index cc3ad77..26fd8a9 100644
--- a/hna.c
+++ b/hna.c
@@ -34,7 +34,7 @@
//#include <linux/if_tun.h> /* TUNSETPERSIST, ... */
//#include <linux/if.h> /* ifr_if, ifr_tun */
#include <fcntl.h> /* open(), O_RDWR */
-#include <netinet/ip.h>
+#include <linux/ip.h>