Can't make outgoing calls

I searched through and couldn’t find anything directly related to the issue I’m having. We have FreePBX operating through a trunk to Coredial. The trunk is registered and inbound calling works fine (well, not fine…calls drop after 6-7 seconds but that’s another post all together). The issue I’m having is that I’m unable to make any outbound calls, you dial the endpoint thinks for about 10 seconds then fail. The endpoints are all registered, and can make extension to extension calls without issue. Any help is much appreciated. The logs seem to indicate that the endpoint is an unknown SIP connection and I’m unsure of how to fix. Here are the logs:

Connected to Asterisk 11.16.0 currently running on localhost (pid = 1767)
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Executing [3014662709@from-sip-external:1] NoOp(“SIP/192.168.17.109-00000134”, “Received incoming SIP connection from unknown peer to 3014662709”) in new stack
– Executing [3014662709@from-sip-external:2] Set(“SIP/192.168.17.109-00000134”, “DID=3014662709”) in new stack
– Executing [3014662709@from-sip-external:3] Goto(“SIP/192.168.17.109-00000134”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“SIP/192.168.17.109-00000134”, “0?checklang:noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“SIP/192.168.17.109-00000134”, “TIMEOUT(absolute)=15”) in new stack
– Channel will hangup at 2017-06-15 12:22:37.583 EDT.
– Executing [s@from-sip-external:6] Log(“SIP/192.168.17.109-00000134”, "WARNING,“Rejecting unknown SIP connection from 192.168.17.109"”) in new stack
[2017-06-15 12:22:22] WARNING[8733][C-00000c07]: Ext. s:6 @ from-sip-external: “Rejecting unknown SIP connection from 192.168.17.109”

Additionally here is my trunk setup:
username=sip0000001_initech
fromuser=sip0000001_initech
secret=
host=198.58.42.157
fromdomain=198.58.42.157
type=friend
nat=yes
context=from-trunk
insecure=invite
trustrpid=yes
sendrpid=yes
directmedia=no
qualify=yes
keepalive=45
dtmfmode=rfc2833
disallow=all
allow=ulaw,alaw,gsm,g726

(Secret removed from post)

Yoiur trunk setup expects calls from

host=198.58.42.157

but the inound cal is apparently from

192.168.17.109

I would investigate your router and turn of all SIP “helpers” therein, they usually don’t help inbound call routing but are designed (often badly) for internal sip clients to call out and get a reply. Your NAT settings in Asterisk should bypass this need for “help”

Thanks for the reply! That host is my carrier’s IP…it was a FQDN but asterisk wouldn’t register to that so I had to change to IP. The 109 address is the endpoint. So it’s the sip client calling out which I thought was trusted inherently. I’ll give that a try and turn off all SIP helpers to see if that does the trick. Thanks again!

Please explain “109 address is the endpoint”

turn on SIP debugging and post the log.

Sorry, 192.168.17.109 is the address of the phone I was trying to dial out with in this example.

But the context of the call is from-external

– Executing [3014662709@from-sip-external:1] NoOp(“SIP/192.168.17.109-00000134”, “Received incoming SIP connection from unknown peer to 3014662709”) in new stack
.
.
.
.
.;

So was that an incoming call or an attempted outgoing call? either way the Wiki link at the top of this page should clarify how to setup your network correctly

I suppose that’s why I’m confused. It was an attempted outgoing call from a phone with IP: 192.168.17.109 to the number at the end of the line, 3014662709.

I can call in without an issue, I can also call extension to extension without a problem.

The sad thing is the system was setup correctly and working perfectly, then just before going live we changed carriers so I had to recreate the trunk and have had nothing but problems since. The setup is essentially the same. I’ll consult the wiki. Thanks for your help

If you care to post your SIP debug along with a failed call, then maybe we can help, no mind readers here :wink:

Here’s the entire debug log from a failed call:
[INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘LINKEDID_END’,{ts ‘2017-06-15 12:26:50.741486’},‘192.168.17.110’,‘19216817110’,‘19216817110’,’’,‘3014662709’,‘h’,‘from-sip-external’,‘SIP/192.168.17.110-00000137’,’’,’’,3,’’,‘1497543998.4753’,‘1497543998.4753’,’’,’’,’’)]
[2017-06-15 12:26:54] NOTICE[1794]: chan_sip.c:28201 handle_request_register: Registration from ‘“Reception” sip:[email protected]’ failed for ‘192.168.17.110:5062’ - Wrong password
– Attempting call on Local/s@tc-maint for application NoCDR() (Retry 1)
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_START’,{ts ‘2017-06-15 12:27:00.578435’},’’,’’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;1’,’’,’’,3,’’,‘1497544020.4754’,‘1497544020.4754’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_START’,{ts ‘2017-06-15 12:27:00.580569’},’’,’’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;2’,’’,’’,3,’’,‘1497544020.4755’,‘1497544020.4754’,’’,’’,’’)]
– Executing [s@tc-maint:1] NoCDR(“Local/s@tc-maint-000008ad;2”, “”) in new stack
– Executing [s@tc-maint:2] Set(“Local/s@tc-maint-000008ad;2”, “TCMAINT=RETURN”) in new stack
– Executing [s@tc-maint:3] Gosub(“Local/s@tc-maint-000008ad;2”, “timeconditions,1,1()”) in new stack
– Executing [1@timeconditions:1] Set(“Local/s@tc-maint-000008ad;2”, “DB(TC/1/INUSESTATE)=INUSE”) in new stack
– Executing [1@timeconditions:2] Set(“Local/s@tc-maint-000008ad;2”, “DB(TC/1/NOT_INUSESTATE)=NOT_INUSE”) in new stack
– Executing [1@timeconditions:3] GotoIfTime(“Local/s@tc-maint-000008ad;2”, “08:30-20:00,mon-thu,1-31,jan-dec,America/New_York?truestate”) in new stack
– Goto (timeconditions,1,14)
– Executing [1@timeconditions:14] GotoIf(“Local/s@tc-maint-000008ad;2”, “0?falsegoto”) in new stack
– Executing [1@timeconditions:15] ExecIf(“Local/s@tc-maint-000008ad;2”, “0?Set(DB(TC/1)=)”) in new stack
– Executing [1@timeconditions:16] Set(“Local/s@tc-maint-000008ad;2”, “DEVICE_STATE(Custom:TC1)=NOT_INUSE”) in new stack
– Executing [1@timeconditions:17] ExecIf(“Local/s@tc-maint-000008ad;2”, “0?Set(NOT_INUSE)”) in new stack
– Executing [1@timeconditions:18] GotoIf(“Local/s@tc-maint-000008ad;2”, “0?app-announcement-1,s,1”) in new stack
– Executing [1@timeconditions:19] Set(“Local/s@tc-maint-000008ad;2”, “TCSTATE=true”) in new stack
– Executing [1@timeconditions:20] Set(“Local/s@tc-maint-000008ad;2”, “TCOVERRIDE=false”) in new stack
– Executing [1@timeconditions:21] Return(“Local/s@tc-maint-000008ad;2”, “”) in new stack
– Executing [s@tc-maint:4] System(“Local/s@tc-maint-000008ad;2”, “/var/lib/asterisk/bin/schedtc.php 60 /var/spool/asterisk/outgoing 1”) in new stack
– Executing [s@tc-maint:5] Answer(“Local/s@tc-maint-000008ad;2”, “”) in new stack
> Channel Local/s@tc-maint-000008ad;1 was answered.
> Launching NoCDR() on Local/s@tc-maint-000008ad;1
[2017-06-15 12:27:00] NOTICE[8958]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘ANSWER’,{ts ‘2017-06-15 12:27:00.653222’},‘1’,‘1’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;2’,‘Answer’,’’,3,’’,‘1497544020.4755’,‘1497544020.4754’,’’,’’,’’)]
== Spawn extension (tc-maint, s, 5) exited non-zero on ‘Local/s@tc-maint-000008ad;2’
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘ANSWER’,{ts ‘2017-06-15 12:27:00.653309’},‘1’,‘1’,‘1’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;1’,’’,’’,3,’’,‘1497544020.4754’,‘1497544020.4754’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘HANGUP’,{ts ‘2017-06-15 12:27:00.653379’},‘1’,‘1’,‘1’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;1’,’’,’’,3,’’,‘1497544020.4754’,‘1497544020.4754’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_END’,{ts ‘2017-06-15 12:27:00.653398’},‘1’,‘1’,‘1’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;1’,’’,’’,3,’’,‘1497544020.4754’,‘1497544020.4754’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘HANGUP’,{ts ‘2017-06-15 12:27:00.654346’},‘1’,‘1’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;2’,’’,’’,3,’’,‘1497544020.4755’,‘1497544020.4754’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_END’,{ts ‘2017-06-15 12:27:00.654365’},‘1’,‘1’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;2’,’’,’’,3,’’,‘1497544020.4755’,‘1497544020.4754’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘LINKEDID_END’,{ts ‘2017-06-15 12:27:00.654372’},‘1’,‘1’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ad;2’,’’,’’,3,’’,‘1497544020.4755’,‘1497544020.4754’,’’,’’,’’)]
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_START’,{ts ‘2017-06-15 12:27:22.425944’},‘192.168.17.110’,‘19216817110’,’’,’’,’’,‘3014662709’,‘from-sip-external’,‘SIP/192.168.17.110-00000138’,’’,’’,3,’’,‘1497544042.4756’,‘1497544042.4756’,’’,’’,’’)]
– Executing [3014662709@from-sip-external:1] NoOp(“SIP/192.168.17.110-00000138”, “Received incoming SIP connection from unknown peer to 3014662709”) in new stack
– Executing [3014662709@from-sip-external:2] Set(“SIP/192.168.17.110-00000138”, “DID=3014662709”) in new stack
– Executing [3014662709@from-sip-external:3] Goto(“SIP/192.168.17.110-00000138”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“SIP/192.168.17.110-00000138”, “0?checklang:noanonymous”) in new stack
– Goto (from-sip-external,s,5)
– Executing [s@from-sip-external:5] Set(“SIP/192.168.17.110-00000138”, “TIMEOUT(absolute)=15”) in new stack
– Channel will hangup at 2017-06-15 12:27:37.434 EDT.
– Executing [s@from-sip-external:6] Log(“SIP/192.168.17.110-00000138”, "WARNING,“Rejecting unknown SIP connection from 192.168.17.110"”) in new stack
[2017-06-15 12:27:22] WARNING[8988][C-00000c11]: Ext. s:6 @ from-sip-external: “Rejecting unknown SIP connection from 192.168.17.110”
– Executing [s@from-sip-external:7] Answer(“SIP/192.168.17.110-00000138”, “”) in new stack
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘ANSWER’,{ts ‘2017-06-15 12:27:22.436202’},‘192.168.17.110’,‘19216817110’,‘19216817110’,’’,‘3014662709’,‘s’,‘from-sip-external’,‘SIP/192.168.17.110-00000138’,‘Answer’,’’,3,’’,‘1497544042.4756’,‘1497544042.4756’,’’,’’,’’)]
> 0x7fd76c0027b0 – Probation passed - setting RTP source address to 192.168.17.110:11782
– Executing [s@from-sip-external:8] Wait(“SIP/192.168.17.110-00000138”, “2”) in new stack
[2017-06-15 12:27:24] NOTICE[1794]: chan_sip.c:28201 handle_request_register: Registration from ‘“Reception” sip:[email protected]’ failed for ‘192.168.17.110:5062’ - Wrong password
– Executing [s@from-sip-external:9] Playback(“SIP/192.168.17.110-00000138”, “ss-noservice”) in new stack
– <SIP/192.168.17.110-00000138> Playing ‘ss-noservice.ulaw’ (language ‘en’)
– Executing [s@from-sip-external:10] PlayTones(“SIP/192.168.17.110-00000138”, “congestion”) in new stack
– Executing [s@from-sip-external:11] Congestion(“SIP/192.168.17.110-00000138”, “5”) in new stack
== Spawn extension (from-sip-external, s, 11) exited non-zero on ‘SIP/192.168.17.110-00000138’
– Executing [h@from-sip-external:1] Hangup(“SIP/192.168.17.110-00000138”, “”) in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/192.168.17.110-00000138’
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘HANGUP’,{ts ‘2017-06-15 12:27:34.955007’},‘192.168.17.110’,‘19216817110’,‘19216817110’,’’,‘3014662709’,‘h’,‘from-sip-external’,‘SIP/192.168.17.110-00000138’,’’,’’,3,’’,‘1497544042.4756’,‘1497544042.4756’,’’,’’,’’)]
> [INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid) VALUES ({ ts ‘2017-06-15 12:27:22’ },’“192.168.17.110” <19216817110>’,‘19216817110’,‘s’,‘from-sip-external’,‘SIP/192.168.17.110-00000138’,‘Congestion’,‘5’,12,12,‘ANSWERED’,3,‘1497544042.4756’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_END’,{ts ‘2017-06-15 12:27:34.959012’},‘192.168.17.110’,‘19216817110’,‘19216817110’,’’,‘3014662709’,‘h’,‘from-sip-external’,‘SIP/192.168.17.110-00000138’,’’,’’,3,’’,‘1497544042.4756’,‘1497544042.4756’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘LINKEDID_END’,{ts ‘2017-06-15 12:27:34.959244’},‘192.168.17.110’,‘19216817110’,‘19216817110’,’’,‘3014662709’,‘h’,‘from-sip-external’,‘SIP/192.168.17.110-00000138’,’’,’’,3,’’,‘1497544042.4756’,‘1497544042.4756’,’’,’’,’’)]
[2017-06-15 12:27:54] NOTICE[1794]: chan_sip.c:28201 handle_request_register: Registration from ‘“Reception” sip:[email protected]’ failed for ‘192.168.17.110:5062’ - Wrong password
– Attempting call on Local/s@tc-maint for application NoCDR() (Retry 1)
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_START’,{ts ‘2017-06-15 12:28:00.728207’},’’,’’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;1’,’’,’’,3,’’,‘1497544080.4757’,‘1497544080.4757’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_START’,{ts ‘2017-06-15 12:28:00.729430’},’’,’’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;2’,’’,’’,3,’’,‘1497544080.4758’,‘1497544080.4757’,’’,’’,’’)]
– Executing [s@tc-maint:1] NoCDR(“Local/s@tc-maint-000008ae;2”, “”) in new stack
– Executing [s@tc-maint:2] Set(“Local/s@tc-maint-000008ae;2”, “TCMAINT=RETURN”) in new stack
– Executing [s@tc-maint:3] Gosub(“Local/s@tc-maint-000008ae;2”, “timeconditions,1,1()”) in new stack
– Executing [1@timeconditions:1] Set(“Local/s@tc-maint-000008ae;2”, “DB(TC/1/INUSESTATE)=INUSE”) in new stack
– Executing [1@timeconditions:2] Set(“Local/s@tc-maint-000008ae;2”, “DB(TC/1/NOT_INUSESTATE)=NOT_INUSE”) in new stack
– Executing [1@timeconditions:3] GotoIfTime(“Local/s@tc-maint-000008ae;2”, “08:30-20:00,mon-thu,1-31,jan-dec,America/New_York?truestate”) in new stack
– Goto (timeconditions,1,14)
– Executing [1@timeconditions:14] GotoIf(“Local/s@tc-maint-000008ae;2”, “0?falsegoto”) in new stack
– Executing [1@timeconditions:15] ExecIf(“Local/s@tc-maint-000008ae;2”, “0?Set(DB(TC/1)=)”) in new stack
– Executing [1@timeconditions:16] Set(“Local/s@tc-maint-000008ae;2”, “DEVICE_STATE(Custom:TC1)=NOT_INUSE”) in new stack
– Executing [1@timeconditions:17] ExecIf(“Local/s@tc-maint-000008ae;2”, “0?Set(NOT_INUSE)”) in new stack
– Executing [1@timeconditions:18] GotoIf(“Local/s@tc-maint-000008ae;2”, “0?app-announcement-1,s,1”) in new stack
– Executing [1@timeconditions:19] Set(“Local/s@tc-maint-000008ae;2”, “TCSTATE=true”) in new stack
– Executing [1@timeconditions:20] Set(“Local/s@tc-maint-000008ae;2”, “TCOVERRIDE=false”) in new stack
– Executing [1@timeconditions:21] Return(“Local/s@tc-maint-000008ae;2”, “”) in new stack
– Executing [s@tc-maint:4] System(“Local/s@tc-maint-000008ae;2”, “/var/lib/asterisk/bin/schedtc.php 60 /var/spool/asterisk/outgoing 0”) in new stack
– Executing [s@tc-maint:5] Answer(“Local/s@tc-maint-000008ae;2”, “”) in new stack
> Channel Local/s@tc-maint-000008ae;1 was answered.
> Launching NoCDR() on Local/s@tc-maint-000008ae;1
[2017-06-15 12:28:00] NOTICE[8989]: pbx_spool.c:402 attempt_thread: Call completed to Local/s@tc-maint
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘ANSWER’,{ts ‘2017-06-15 12:28:00.962501’},‘0’,‘0’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;2’,‘Answer’,’’,3,’’,‘1497544080.4758’,‘1497544080.4757’,’’,’’,’’)]
== Spawn extension (tc-maint, s, 5) exited non-zero on ‘Local/s@tc-maint-000008ae;2’
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘ANSWER’,{ts ‘2017-06-15 12:28:00.962586’},‘0’,‘0’,‘0’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;1’,’’,’’,3,’’,‘1497544080.4757’,‘1497544080.4757’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘HANGUP’,{ts ‘2017-06-15 12:28:00.962654’},‘0’,‘0’,‘0’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;1’,’’,’’,3,’’,‘1497544080.4757’,‘1497544080.4757’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_END’,{ts ‘2017-06-15 12:28:00.962673’},‘0’,‘0’,‘0’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;1’,’’,’’,3,’’,‘1497544080.4757’,‘1497544080.4757’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘HANGUP’,{ts ‘2017-06-15 12:28:00.963659’},‘0’,‘0’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;2’,’’,’’,3,’’,‘1497544080.4758’,‘1497544080.4757’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘CHAN_END’,{ts ‘2017-06-15 12:28:00.963680’},‘0’,‘0’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;2’,’’,’’,3,’’,‘1497544080.4758’,‘1497544080.4757’,’’,’’,’’)]
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid_ani,cid_rdnis,cid_dnid,exten,context,channame,appname,appdata,amaflags,accountcode,uniqueid,linkedid,peer,userdeftype,userfield) VALUES (‘LINKEDID_END’,{ts ‘2017-06-15 12:28:00.963687’},‘0’,‘0’,’’,’’,’’,‘s’,‘tc-maint’,‘Local/s@tc-maint-000008ae;2’,’’,’’,3,’’,‘1497544080.4758’,‘1497544080.4757’,’’,’’,’’)]
[2017-06-15 12:28:25] NOTICE[1794]: chan_sip.c:28201 handle_request_register: Registration from ‘“Reception” sip:[email protected]’ failed for ‘192.168.17.110:5062’ - Wrong password
localhost*CLI>

Also, I noticed the Wrong Password from Reception (110). Here’s the Sip Show Users list:

Username Secret Accountcode Def.Context AC L Forcerport
104 cfc123 from-internal Ye s Yes
105 cfc123 from-internal Ye s Yes
106 cfc123 from-internal Ye s Yes
107 cfc123 from-internal Ye s Yes
100 cfc123 from-internal Ye s Yes
101 cfc123 from-internal Ye s Yes
102 cfc123 from-internal Ye s Yes
103 cfc123 from-internal Ye s Yes
108 cfc123 from-internal Ye s Yes
109 cfc123 from-internal Ye s Yes
CoredialSIP 58e405850a918 from-trunk No Yes
sip0000001_initech 58e405850a918 from-trunk No Yes
126 cfc123 from-internal Ye s Yes
127 cfc123 from-internal Ye s Yes
124 cfc123 from-internal Ye s Yes
125 cfc123 from-internal Ye s Yes
122 cfc123 from-internal Ye s Yes
120 cfc123 from-internal Ye s Yes
121 cfc123 from-internal Ye s Yes
128 cfc123 from-internal Ye s Yes
129 cfc123 from-internal Ye s Yes
115 cfc123 from-internal Ye s Yes
114 cfc123 from-internal Ye s Yes
117 cfc123 from-internal Ye s Yes
116 cfc123 from-internal Ye s Yes
111 cfc123 from-internal Ye s Yes
110 cfc123 from-internal Ye s Yes
113 cfc123 from-internal Ye s Yes
112 cfc123 from-internal Ye s Yes
119 cfc123 from-internal Ye s Yes
118 cfc123 from-internal Ye s Yes
136 cfc123 from-internal Ye s Yes
135 cfc123 from-internal Ye s Yes
134 cfc123 from-internal Ye s Yes
133 cfc123 from-internal Ye s Yes
132 cfc123 from-internal Ye s Yes
131 cfc123 from-internal Ye s Yes
130 cfc123 from-internal Ye s Yes
138 b119f092eb5a113 from-internal Ye s Yes
140 cfc123 from-internal Ye s Yes
143 cfc123 from-internal Ye s Yes
144 cfc123 from-internal Ye s Yes
145 cfc123 from-internal Ye s Yes
146 cfc123 from-internal Ye s Yes
147 cfc123 from-internal Ye s Yes
148 cfc123 from-internal Ye s Yes
149 cfc123 from-internal Ye s Yes
150 cfc123 from-internal Ye s Yes
153 cfc123 from-internal Ye s Yes
152 cfc123 from-internal Ye s Yes
155 cfc123 from-internal Ye s Yes
154 cfc123 from-internal Ye s Yes
157 cfc123 from-internal Ye s Yes
156 cfc123 from-internal Ye s Yes
158 cfc123 from-internal Ye s Yes

That is largely just a time-condition call, so not useful, leave your verbosity at 3 and “sip set debug on” and you have other problems with the “endpoint” at 192.168.17.110.

Sorry but clean it all up, post only relevant data and see what happens . . .

Gotcha, no need for apologies I’ll make the changes and get another log thanks again

I’m still having the same issue and have narrowed it down a bit but am still hitting a brick wall. I did have some NAT issues as well as DNS problems that corrected most of my auxillary issues, however I still can not call out. I have no problem calling in, transferring to extensions, dialing extension to extension in house, the only part of the system that isn’t working is the outbound calls.

I have confirmed that my sip trunk is registered however when I make outbound calls I am getting the error: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)

Unfortunatley I don’t have the entire debug log, and will be posting that shortly but didn’t know if I could get a direction in which to check with this information. Here is the registry
Host dnsmgr Username Refresh State Reg.Time
198.58.42.157:5060 N sip0000001_e 105 Registered Thu, 13 Jul 2017 09:42:50
1 SIP registrations.

and my 'sip show peers list: NOTE: The extension I’m testing from is 100 and 151
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
100/100 192.168.17.111 D Yes Yes A 5062 OK (20 ms)
101/101 192.168.17.88 D Yes Yes A 5062 OK (71 ms)
102 (Unspecified) D Yes Yes A 0 UNKNOWN
103/103 192.168.17.54 D Yes Yes A 5062 OK (149 ms)
104/104 192.168.17.77 D Yes Yes A 5062 OK (46 ms)
105 (Unspecified) D Yes Yes A 0 UNKNOWN
106/106 192.168.17.91 D Yes Yes A 5062 OK (21 ms)
107/107 192.168.17.93 D Yes Yes A 5062 OK (27 ms)
108/108 192.168.17.58 D Yes Yes A 5062 OK (31 ms)
109 (Unspecified) D Yes Yes A 0 UNKNOWN
110/110 192.168.17.52 D Yes Yes A 5062 OK (71 ms)
111/111 192.168.17.75 D Yes Yes A 5062 OK (71 ms)
112/112 192.168.17.86 D Yes Yes A 5062 OK (85 ms)
113/113 192.168.17.97 D Yes Yes A 5062 OK (78 ms)
114/114 192.168.17.106 D Yes Yes A 5062 OK (20 ms)
115/115 192.168.17.73 D Yes Yes A 5062 OK (82 ms)
116/116 192.168.17.79 D Yes Yes A 5062 OK (40 ms)
117/117 192.168.17.59 D Yes Yes A 5062 OK (102 ms)
118/118 192.168.17.69 D Yes Yes A 5062 OK (25 ms)
119/119 192.168.17.94 D Yes Yes A 5062 OK (39 ms)
120/120 192.168.17.64 D Yes Yes A 5062 OK (82 ms)
121/121 192.168.17.71 D Yes Yes A 5062 OK (90 ms)
122 (Unspecified) D Yes Yes A 0 UNKNOWN
124/124 192.168.17.103 D Yes Yes A 5062 OK (81 ms)
125/125 192.168.17.92 D Yes Yes A 5062 OK (80 ms)
126/126 192.168.17.85 D Yes Yes A 5062 OK (71 ms)
127/127 192.168.17.90 D Yes Yes A 5062 OK (228 ms)
128/128 192.168.17.113 D Yes Yes A 5062 OK (71 ms)
129/129 192.168.17.81 D Yes Yes A 5062 OK (151 ms)
130/130 192.168.17.98 D Yes Yes A 5062 OK (81 ms)
131/131 192.168.17.87 D Yes Yes A 5062 OK (81 ms)
132/132 192.168.17.83 D Yes Yes A 5062 OK (78 ms)
133/133 192.168.17.66 D Yes Yes A 5062 OK (21 ms)
134 (Unspecified) D Yes Yes A 0 UNKNOWN
135/135 192.168.17.68 D Yes Yes A 5062 OK (25 ms)
136 (Unspecified) D Yes Yes A 0 UNKNOWN
138 (Unspecified) D Yes Yes A 0 UNKNOWN
140 (Unspecified) D Yes Yes A 0 UNKNOWN
143/143 192.168.17.95 D Yes Yes A 5062 OK (70 ms)
144/144 192.168.17.53 D Yes Yes A 5062 OK (81 ms)
145/145 192.168.17.80 D Yes Yes A 5062 OK (140 ms)
146/146 192.168.17.72 D Yes Yes A 5062 OK (78 ms)
147/147 192.168.17.62 D Yes Yes A 5062 OK (20 ms)
148/148 192.168.17.76 D Yes Yes A 5062 OK (75 ms)
149/149 192.168.17.65 D Yes Yes A 5062 OK (21 ms)
150/150 192.168.17.67 D Yes Yes A 5062 OK (22 ms)
152/152 192.168.17.55 D Yes Yes A 5062 OK (22 ms)
153/153 192.168.17.89 D Yes Yes A 5062 OK (36 ms)
154/154 192.168.17.63 D Yes Yes A 5062 OK (25 ms)
155 (Unspecified) D Yes Yes A 0 UNKNOWN
156/156 192.168.17.96 D Yes Yes A 5062 OK (19 ms)
157/157 192.168.17.51 D Yes Yes A 5062 OK (29 ms)
158/158 192.168.17.50 D Yes Yes A 5062 OK (28 ms)
777 (Unspecified) D Yes Yes A 0 UNKNOWN
CoredialSIP/sip0000001_in (Unspecified) No No 0 UNKNOWN
sip0000001_initech/sip000 (Unspecified) No No 0 UNKNOWN

These would be your outbound trunks and neither of them is connecting. I’m not clear on how incoming calls could be working with both of your ITSP connections “unspecified”.

We need more information about these - trunk configs, etc.

I thought those two lines would have something to do with it, but it is showing the trunk as resgistered in 'sip show registry"

Here is my sip config
Trunk Name: CoredialSIP
Peer Details:
username=xxxxxx
fromuser=xxxxx
secret=xxxxxx
host=sip.east.sipregistration.com
type=peer
qualify=no&yes
nat=no
context=from-trunk
insecure=invite
trustrpid=yes
sendrpid=yes
directmedia=no
keepalive=45
dtmfmode=rfc2833
disallow=all
allow=ulaw,alaw,gsm,g726
local networks=192.168.17.0/255.255.255.0

User Context: sip0000001_initech
host=sip.east.sipregistration.com
username=xxxxxx
secret=xxxxxx
qualify=no
type=peer
nat=no
context=from-trunk
insecure=invite
keepalive=45
dtmfmode=rfc2833
disallow=all
allow=ulaw,alaw,gsm,g726

Thank you SO much for any help, I’m beating my head against a wall at this point!

Edit your usernames and passwords

Thank you…big miss on my part there.

Wait, you meant just to edit the usernames and passwords out of my post, not that my problem lies in the usernames and passwords, right?

Ok, so I see somehow the sip show registry has the trunk registered but it’s showing as unspecified in Peers. That is undoubtedly my issue. I’m not sure where to go now though as the usual registration method doesn’t seem to be working, my provider shows the trunk as registered and I’m able to get incoming calls. Does anyone have any instruction on how to register this trunk with the PBX in this situation?