Skip to content

Instantly share code, notes, and snippets.

View nam178's full-sized avatar
🎯
Focusing

Nam Duong nam178

🎯
Focusing
  • Amazon Web Services
  • Melbourne, VIC, Australia
View GitHub Profile
public static void Main(string[] args)
{
var logger = NLog.LogManager.LoadConfiguration("NLog.Staging.config").GetCurrentClassLogger();
try
{
// your startup code goes there
}
catch (Exception exception)
{
//NLog: catch setup errors
public static void Main(string[] args)
{
var logger = NLog.Web.NLogBuilder.ConfigureNLog("NLog.Staging.config").GetCurrentClassLogger();
try
{
// your startup code goes there
}
catch (Exception exception)
{
//NLog: catch setup errors
{
"virtualNumber": "+61280024775",
"callPlan": {
"CallPlanId": "10ef4a10-c627-46b9-ad4d-d9972209e680",
"TemplateId": "5f17b93b-2331-429a-a7d7-a10ce029ce7f",
"Name": "Fake CTC callplan",
"Description": "",
"IsPublished": false,
"CreatedOn": "2019-09-03T00:52:13+00:00",
"ModifiedOn": "2020-02-13T15:56:40.800171+00:00",
/* Database: csncallconnectstgeventstore, csncallconnectprodeventstore */
ALTER TABLE public.assignments
ALTER COLUMN event_created_at TYPE timestamp without time zone ;
ALTER TABLE public.dealers
ALTER COLUMN created_at TYPE timestamp without time zone ;
ALTER TABLE public.dealers
ALTER COLUMN modified_at TYPE timestamp without time zone ;
/* Database: csntelephonystgeventstore, csntelephonyprodeventstore */
ALTER TABLE public.numbers
ADD COLUMN frozen_at timestamp with time zone;
ALTER TABLE public.numbers
ALTER COLUMN number_modified TYPE timestamp without time zone ;
ALTER TABLE public.numbers
ALTER COLUMN number_created TYPE timestamp without time zone ;
/** csntelephony */
ALTER TABLE public.numbers_pool
ADD COLUMN frozen_at timestamp with time zone;
/**
* For numbers that free, and previously claimed;
* set the release date to the date modified
*/
UPDATE public.numbers_pool
using System;
using Autofac;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
namespace NPos.Common.UWP.UI
{
public sealed class BasePageParams
{
@nam178
nam178 / sip.conf
Created February 3, 2019 23:47
Second asterisk's sip.conf
[general]
context=default
[first-asterisk]
type=user
context=from-first-asterisk
host=dynamic
secret=unsecuredpassword
disallow=all
allow=ulaw
@nam178
nam178 / extensions.conf
Created February 3, 2019 23:46
First asterisk's extensions.conf
[from-zoiper]
exten=100,1,Answer()
same=n,Wait(1)
same=n,Playback(hello-world)
same=n,Dial(SIP/100@second-asterisk,3600)
same=n,Hangup()
@nam178
nam178 / sip.conf
Created February 3, 2019 23:45
First asterisk sip.conf
[general]
context=default
[zoiper]
type=friend
context=from-zoiper
host=dynamic
secret=unsecuredpassword
disallow=all
allow=ulaw