Skip to content

Instantly share code, notes, and snippets.

@THUFIR
THUFIR / failed_call_siptrunk_DID
Created July 4, 2016 04:24
failed_call_to_siptrunk_DID
mordor*CLI>
mordor*CLI> sip set debug on
SIP Debugging enabled
<--- SIP read from UDP:192.168.1.5:5062 --->
NOTIFY sip:192.168.1.8 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.5:5062;branch=z9hG4bK-3dfaf8af
From: "thufir" <sip:thufir@192.168.1.8>;tag=2dc2ec8b9eeabd55o2
To: <sip:192.168.1.8>
Call-ID: 8361cdb3-79410e4d@192.168.1.5
@THUFIR
THUFIR / siptrunk_call_in
Created July 4, 2016 03:22
siptrunk_call_in
mordor*CLI>
mordor*CLI> channel originate SIP/piter extension 18003569377@outbound
== Using SIP RTP CoS mark 5
-- Called piter
-- SIP/piter-0000001b is ringing
-- SIP/piter-0000001b answered
-- Executing [18003569377@outbound:1] NoOp("SIP/piter-0000001b", "") in new stack
-- Executing [18003569377@outbound:2] Log("SIP/piter-0000001b", "NOTICE, Dialing out from "piter" <> to 8003569377 through SIP/98765432GW1") in new stack
[Jul 3 20:01:33] NOTICE[5067][C-00000042]: Ext. 18003569377:2 @ outbound: Dialing out from "piter" <> to 8003569377 through SIP/98765432GW1
-- Executing [18003569377@outbound:3] Dial("SIP/piter-0000001b", "SIP/98765432GW1/8003569377,60") in new stack
@THUFIR
THUFIR / telnyx_call_out
Created July 4, 2016 03:21
telnyx_call_out
mordor*CLI>
mordor*CLI> channel originate SIP/piter extension 18003569377@outbound
== Using SIP RTP CoS mark 5
-- Called piter
-- SIP/piter-0000001f is ringing
-- SIP/piter-0000001f answered
-- Executing [18003569377@outbound:1] NoOp("SIP/piter-0000001f", "") in new stack
-- Executing [18003569377@outbound:2] Log("SIP/piter-0000001f", "NOTICE, Dialing out from "piter" <> to 8003569377 through SIP/TELNYX") in new stack
[Jul 3 20:07:33] NOTICE[5087][C-00000044]: Ext. 18003569377:2 @ outbound: Dialing out from "piter" <> to 8003569377 through SIP/TELNYX
@THUFIR
THUFIR / pinerc
Last active December 28, 2016 11:59
alpine pine config pinerc .pinerc
#
# Alpine configuration file
#
# This file sets the configuration options used by Alpine and PC-Alpine. These
# options are usually set from within Alpine or PC-Alpine. There may be a
# system-wide configuration file which sets the defaults for some of the
# variables. On Unix, run alpine -conf to see how system defaults have been set.
# For variables that accept multiple values, list elements are separated by
# commas. A line beginning with a space or tab is considered to be a
# continuation of the previous line. For a variable to be unset its value must
@THUFIR
THUFIR / gradle.properties
Created January 30, 2016 13:01
gradle.properties
thufir@mordor:~/java$
thufir@mordor:~/java$ ll
total 40
drwxrwxr-x 2 thufir thufir 4096 Jan 30 04:57 ./
drwx------ 29 thufir thufir 12288 Jan 30 04:56 ../
-rw-rw-r-- 1 thufir thufir 70 Jan 30 04:48 gradle.build
-rw-rw-r-- 1 thufir thufir 123 Jan 30 04:47 HelloWorld.java
thufir@mordor:~/java$
thufir@mordor:~/java$
thufir@mordor:~/java$
@THUFIR
THUFIR / log.txt
Created April 12, 2015 22:58
vici log (asterisk)
[Apr 12 18:41:07] VERBOSE[29781] manager.c: [Apr 12 18:41:07] == Manager 'sendcron' logged off from 127.0.0.1
[Apr 12 18:41:38] VERBOSE[29818] manager.c: [Apr 12 18:41:38] == Manager 'sendcron' logged on from 127.0.0.1
[Apr 12 18:41:38] VERBOSE[29818] netsock2.c: [Apr 12 18:41:38] == Using SIP RTP CoS mark 5
[Apr 12 18:41:39] VERBOSE[29818] pbx.c: [Apr 12 18:41:39] > Channel SIP/300-00000003 was answered.
[Apr 12 18:41:39] VERBOSE[29821] pbx.c: [Apr 12 18:41:39] -- Executing [8600051@default:1] MeetMe("SIP/300-00000003", "8600051,F") in new stack
[Apr 12 18:41:39] VERBOSE[29821] config.c: [Apr 12 18:41:39] == Parsing '/etc/asterisk/meetme.conf': [Apr 12 18:41:39] VERBOSE[29821] config.c: [Apr 12 18:41:39] == Found
[Apr 12 18:41:39] VERBOSE[29821] config.c: [Apr 12 18:41:39] == Parsing '/etc/asterisk/meetme-vicidial.conf': [Apr 12 18:41:39] VERBOSE[29821] config.c: [Apr 12 18:41:39] == Found
[Apr 12 18:41:39] VERBOSE[29821] app_meetme.c: [Apr 12 18:41:39] -- Created MeetMe conferen
@THUFIR
THUFIR / extensions-vicidial.conf
Created April 12, 2015 22:54
extensions-vicidial.conf
vici:~ #
vici:~ #
vici:~ # cat /etc/asterisk/extensions-vicidial.conf
; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
TRUNKloop = IAX2/ASTloop:password@127.0.0.1:40569
TRUNKblind = IAX2/ASTblind:password@127.0.0.1:41569
TRUNKplay = IAX2/ASTplay:password@127.0.0.1:42569
TESTSIPTRUNK = SIP/testcarrier
vici:~ #
vici:~ # cat /etc/asterisk/sip-vicidial.conf
; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
register => 19876543210@sip.babytel.ca:fjdkl543543jgsdfklfsjd:19876543210@nat5.babytel.ca:5065/19876543210
; VICIDIAL Carrier: SIPEXAMPLE - TEST SIP carrier example
[testcarrier]
type=peer
username=19876543210
host=nat5.babytel.ca
@THUFIR
THUFIR / log.txt
Created October 28, 2014 06:50
glassfish inject
thufir@dur:~/glassfish-4.1/glassfish/domains/domain1/logs$
thufir@dur:~/glassfish-4.1/glassfish/domains/domain1/logs$
thufir@dur:~/glassfish-4.1/glassfish/domains/domain1/logs$ cat server.log
[2014-10-27T23:44:15.146-0700] [] [INFO] [NCLS-GFLAUNCHER-00005] [javax.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1414478655146] [levelValue: 800] [[
JVM invocation command line:
/usr/lib/jvm/java-7-openjdk-i386/bin/java
-cp
/home/thufir/glassfish-4.1/glassfish/modules/glassfish.jar
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
@THUFIR
THUFIR / glassfish.txt
Created October 19, 2014 11:11
glassfish jpa jdbc resource
[2014-10-19T04:05:58.175-0700] [glassfish 4.1] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=42 _ThreadName=admin-listener(3)] [timeMillis: 1413716758175] [levelValue: 800] [[
EntAppWeb was successfully deployed in 3,690 milliseconds.]]
[2014-10-19T04:06:29.450-0700] [glassfish 4.1] [WARNING] [] [javax.enterprise.system.container.web.com.sun.web.security] [tid: _ThreadID=29 _ThreadName=http-listener-1(5)] [timeMillis: 1413716789450] [levelValue: 900] [[
Context path from ServletContext: /EntAppWeb-war differs from path from bundle: EntAppWeb-war]]
[2014-10-19T04:06:29.746-0700] [glassfish 4.1] [WARNING] [AS-EJB-00056] [javax.enterprise.ejb.container] [tid: _ThreadID=29 _ThreadName=http-listener-1(5)] [timeMillis: 1413716789746] [levelValue: 900] [[
A system exception occurred during an invocation on EJB MyQueueBean, method: public int dur.facelets.MyQueueBean.getNext()]]
[2014-10-19T04:06:29.747-0700] [glassfish 4.1] [WARNING] [] [javax.enterprise.ejb.container] [tid: _ThreadID=29 _ThreadN