Skip to content

Instantly share code, notes, and snippets.

@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 / smtp.conf.xml
Created August 16, 2012 08:16
james config
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
thufir@dur:~/NetBeansProjects/twitterBaseX$
thufir@dur:~/NetBeansProjects/twitterBaseX$
thufir@dur:~/NetBeansProjects/twitterBaseX$ basex
/home/thufir/basex/.basex: Unknown option 'RESTXQERRORS'.
/home/thufir/basex/.basex: writing new configuration file.
BaseX 9.0.1 [Standalone]
Try 'help' to get more information.
>
> list
thufir@dur:~/NetBeansProjects/twitterBaseX$
thufir@dur:~/NetBeansProjects/twitterBaseX$ gradle clean run
> Task :run FAILED
Feb. 03, 2020 12:15:00 A.M. basex.DatabaseHelper add
INFO: <metadata><result_type>recent</result_type><iso_language_code>und</iso_language_code></metadata><in_reply_to_status_id_str>1223800963196162049</in_reply_to_status_id_str><in_reply_to_status_id>1223800963196162049</in_reply_to_status_id><created_at>Mon Feb 03 07:50:03 +0000 2020</created_at><in_reply_to_user_id_str>60919433</in_reply_to_user_id_str><source>&lt;a href=&quot;http://twitter.com/download/iphone&quot; rel=&quot;nofollow&quot;&gt;Twitter for iPhone&lt;/a&gt;</source><retweet_count>0</retweet_count><retweeted>false</retweeted><geo>null</geo><in_reply_to_screen_name>lizardbill</in_reply_to_screen_name><is_quote_status>false</is_quote_status><id_str>1224238604437733378</id_str><in_reply_to_user_id>60919433</in_reply_to_user_id><favorite_count>0</favorite_count><id>1224238604437733378</id><text>@lizardbill 👍😊 https://t.co
thufir@dur:~/NetBeansProjects/twitterBaseX$
thufir@dur:~/NetBeansProjects/twitterBaseX$ gradle clean build run
> Task :run FAILED
Feb. 02, 2020 10:30:23 P.M. basex.DatabaseHelper add
INFO: 1224083010015956992
Feb. 02, 2020 10:30:23 P.M. basex.DatabaseHelper add
INFO: {"metadata":{"result_type":"recent","iso_language_code":"en"},"in_reply_to_status_id_str":null,"in_reply_to_status_id":null,"created_at":"Sun Feb 02 21:31:46 +0000 2020","in_reply_to_user_id_str":null,"source":"<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App<\/a>","retweeted_status":{"metadata":{"result_type":"recent","iso_language_code":"en"},"in_reply_to_status_id_str":null,"in_reply_to_status_id":null,"created_at":"Sun Feb 02 20:53:32 +0000 2020","in_reply_to_user_id_str":null,"source":"<a href=\"https://about.twitter.com/products/tweetdeck\" re
{
"1224083010015956992": {
"metadata": {
"result_type": "recent",
"iso_language_code": "en"
},
"in_reply_to_status_id_str": null,
"in_reply_to_status_id": null,
"created_at": "Sun Feb 02 21:31:46 +0000 2020",
"in_reply_to_user_id_str": null,
thufir@dur:~/NetBeansProjects/gradleHelloWorld$
thufir@dur:~/NetBeansProjects/gradleHelloWorld$ gradle clean
BUILD SUCCESSFUL in 0s
1 actionable task: 1 executed
thufir@dur:~/NetBeansProjects/gradleHelloWorld$
thufir@dur:~/NetBeansProjects/gradleHelloWorld$ tree
.
├── build.gradle
@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 / asterisk.mordor.bounceme.net
Created July 13, 2016 09:48
asterisk.mordor.bounceme.net
mordor*CLI>
mordor*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
TELNYX/TELNYX 192.76.120.10 No No 5060 OK (108 ms)
demo_alice (Unspecified) D Yes Yes 0 UNKNOWN
demo_bob (Unspecified) D Yes Yes 0 UNKNOWN
hawat/hawat (Unspecified) D Yes Yes 0 UNKNOWN
thufir/thufir 192.168.1.5 D Yes Yes 5062 OK (10 ms)
5 sip peers [Monitored: 2 online, 3 offline Unmonitored: 0 online, 0 offline]
@THUFIR
THUFIR / thufir_to_piter
Created July 8, 2016 11:07
thufir_to_piter
dur*CLI>
dur*CLI>
dur*CLI> channel originate SIP/thufir extension piter@myphones
== Using SIP RTP CoS mark 5
Audio is at 11932
Adding codec 100003 (ulaw) to SDP
Adding codec 100008 (g729) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (no NAT) to <my.external.ip>:5060:
INVITE sip:thufir@192.168.1.5:5062 SIP/2.0