Skip to content

Instantly share code, notes, and snippets.

@THUFIR
Created July 4, 2016 03:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save THUFIR/6c04fc2d90763f8dcb25e3a060a47ef9 to your computer and use it in GitHub Desktop.
Save THUFIR/6c04fc2d90763f8dcb25e3a060a47ef9 to your computer and use it in GitHub Desktop.
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
-- Executing [18003569377@outbound:3] Dial("SIP/piter-0000001f", "SIP/TELNYX/8003569377,60") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/TELNYX/8003569377
> 0x7fbf44025710 -- Probation passed - setting RTP source address to 192.168.1.5:16398
-- SIP/TELNYX-00000020 is ringing
-- SIP/TELNYX-00000020 is making progress passing it to SIP/piter-0000001f
> 0x7fbfa0005ab0 -- Probation passed - setting RTP source address to 64.16.240.36:29284
-- SIP/TELNYX-00000020 answered SIP/piter-0000001f
-- Channel SIP/piter-0000001f joined 'simple_bridge' basic-bridge <8ce7b54d-359a-494e-88c5-98284329ff3a>
-- Channel SIP/TELNYX-00000020 joined 'simple_bridge' basic-bridge <8ce7b54d-359a-494e-88c5-98284329ff3a>
> Bridge 8ce7b54d-359a-494e-88c5-98284329ff3a: switching from simple_bridge technology to native_rtp
-- Channel SIP/piter-0000001f left 'native_rtp' basic-bridge <8ce7b54d-359a-494e-88c5-98284329ff3a>
-- Channel SIP/TELNYX-00000020 left 'native_rtp' basic-bridge <8ce7b54d-359a-494e-88c5-98284329ff3a>
== Spawn extension (outbound, 18003569377, 3) exited non-zero on 'SIP/piter-0000001f'
mordor*CLI>
mordor*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
TELNYX/TELNYX 192.76.120.10 Yes Yes 5060 OK (113 ms)
demo_alice (Unspecified) D Yes Yes 0 UNKNOWN
demo_bob (Unspecified) D Yes Yes 0 UNKNOWN
hawat (Unspecified) D Yes Yes 0 UNKNOWN
piter/piter 192.168.1.5 D Yes Yes 5063 OK (51 ms)
thufir/thufir 192.168.1.5 D Yes Yes 5062 OK (54 ms)
6 sip peers [Monitored: 3 online, 3 offline Unmonitored: 0 online, 0 offline]
mordor*CLI>
mordor*CLI> sip show peer TELNYX
* Name : TELNYX
Description :
Secret : <Not set>
MD5Secret : <Not set>
Remote Secret: <Not set>
Context : inbound
Record On feature : automon
Record Off feature : automon
Subscr.Cont. : <Not set>
Language :
Tonezone : <Not set>
AMA flags : Unknown
Transfer mode: open
CallingPres : Presentation Allowed, Not Screened
Callgroup :
Pickupgroup :
Named Callgr :
Nam. Pickupgr:
MOH Suggest :
Mailbox :
VM Extension : asterisk
LastMsgsSent : 0/0
Call limit : 0
Max forwards : 0
Dynamic : No
Callerid : "" <>
MaxCallBR : 384 kbps
Expire : -1
Insecure : port,invite
Force rport : Yes
Symmetric RTP: Yes
ACL : No
DirectMedACL : No
T.38 support : No
T.38 EC mode : Unknown
T.38 MaxDtgrm: 4294967295
DirectMedia : No
PromiscRedir : No
User=Phone : No
Video Support: No
Text Support : No
Ign SDP ver : No
Trust RPID : Yes
Send RPID : No
Path support : No
Path : N/A
TrustIDOutbnd: Legacy
Subscriptions: Yes
Overlap dial : No
DTMFmode : rfc2833
Timer T1 : 500
Timer B : 32000
ToHost : sip.telnyx.com
Addr->IP : 192.76.120.10:5060
Defaddr->IP : (null)
Prim.Transp. : UDP
Allowed.Trsp : UDP
Def. Username: TELNYX
SIP Options : (none)
Codecs : (ulaw|gsm)
Auto-Framing : No
Status : OK (113 ms)
Useragent :
Reg. Contact :
Qualify Freq : 30000 ms
Keepalive : 0 ms
Sess-Timers : Refuse
Sess-Refresh : uas
Sess-Expires : 1800 secs
Min-Sess : 90 secs
RTP Engine : asterisk
Parkinglot :
Use Reason : No
Encryption : No
mordor*CLI>
mordor*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
gw1.siptrunk.com:5060 N 98765432 105 Registered Sun, 03 Jul 2016 20:07:52
sip.telnyx.com:5060 N telnyx1234 105 Registered Sun, 03 Jul 2016 20:07:52
2 SIP registrations.
mordor*CLI>
mordor*CLI> sip show objects
-= Peer objects: 6 static, 0 realtime, 1 autocreate =-
name: TELNYX
type: peer
objflags: 0
refcount: 3
name: hawat
type: peer
objflags: 0
refcount: 1
name: demo_bob
type: peer
objflags: 0
refcount: 1
name: piter
type: peer
objflags: 0
refcount: 4
name: thufir
type: peer
objflags: 0
refcount: 4
name: demo_alice
type: peer
objflags: 0
refcount: 1
-= Peer objects by IP =-
name: TELNYX
type: peer
objflags: 0
refcount: 3
name: thufir
type: peer
objflags: 0
refcount: 4
name: piter
type: peer
objflags: 0
refcount: 4
-= Registry objects: 2 =-
name: 98765432:<password>@gw1.siptrunk.com
name: telnyx1234:<password>@sip.telnyx.com
-= Dialog objects:
name: ca81eaf0-acbac8f5@192.168.1.5
type: dialog
objflags: 0
refcount: 2
name: d0017ab4-7688dc01@192.168.1.5
type: dialog
objflags: 0
refcount: 2
mordor*CLI>
mordor*CLI> dialplan show myphones
[ Context 'myphones' created by 'pbx_config' ]
'1000' => 1. Dial(SIP/1000) [pbx_config]
2. Hangup() [pbx_config]
'1001' => 1. Dial(SIP/1001) [pbx_config]
2. Hangup() [pbx_config]
'201' => 1. Answer() [pbx_config]
2. Playback(tt-monty-knights) [pbx_config]
3. Hangup() [pbx_config]
'202' => 1. Answer() [pbx_config]
2. Playback(welcome) [pbx_config]
3. Playback(demo-echotest) [pbx_config]
4. Echo() [pbx_config]
5. Playback(demo-echodone) [pbx_config]
6. Playback(vm-goodbye) [pbx_config]
7. Hangup() [pbx_config]
'4000' => 1. Playback(tt-monkeys) [pbx_config]
'5000' => 1. Playback(tt-monkeysintro) [pbx_config]
'555' => 1. Playback(hello-world) [pbx_config]
2. Playback(echo-test) [pbx_config]
3. Echo() [pbx_config]
4. Playback(demo-echodone) [pbx_config]
'6001' => 1. Dial(SIP/demo_alice,20) [pbx_config]
'6002' => 1. Dial(SIP/demo_bob,20) [pbx_config]
'6003' => 1. Dial(SIP/thufir,20) [pbx_config]
'6004' => 1. Dial(SIP/hawat,20) [pbx_config]
'6005' => 1. Dial(SIP/piter,20) [pbx_config]
Include => 'inbound' [pbx_config]
Include => 'outbound' [pbx_config]
-= 12 extensions (25 priorities) in 1 context. =-
mordor*CLI>
mordor*CLI> dialplan show inbound
[ Context 'inbound' created by 'pbx_config' ]
'_x.' => 1. NoOp() [pbx_config]
2. Dial(SIP/thufir,60) [pbx_config]
3. Hangup() [pbx_config]
-= 1 extension (3 priorities) in 1 context. =-
mordor*CLI>
mordor*CLI> dialplan show outbound
[ Context 'outbound' created by 'pbx_config' ]
'_1NXXNXXXXXX' => 1. NoOp() [pbx_config]
2. Log(NOTICE, Dialing out from ${CALLERID(all)} to ${EXTEN:1} through ${TOLL}) [pbx_config]
3. Dial(${TOLL}/${EXTEN:1},60) [pbx_config]
4. Playtones(congestion) [pbx_config]
5. Hangup() [pbx_config]
-= 1 extension (5 priorities) in 1 context. =-
mordor*CLI>
mordor*CLI>
mordor*CLI> dialplan show globals
TOLL=SIP/98765432GW1
OUTBOUND-TRUNKMSD=1
OUTBOUND-TRUNK="Zap/g2"
IAXINFO-AEL=guest
CONSOLE-AEL="Console/dsp"
-- 5 variable(s)
mordor*CLI>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment