I have had a perfectly working VoipTalk trunk for years, for no reason, it seems to have just stopped working suddenly - I only noticed today, but could've been down for quite a bit of time. The trunk details are:
disallow=all
username=81XXXX
type=friend
secret=XXXXXX
nat=yes
maxexpirey=30
insecure=port,invite
host=voiptalk.org
fromuser=81XXXX
fromdomain=voiptalk.org
echocancel=yes
dtmfmode=rfc2833
canreinvite=no
authuser=8XXXX
allow=ulaw&alaw
;context=from-pstn
context=VoipTalk-Incoming-custom&from-trunk-sip-VoipTalk
;context=default
I have tried various contexts (hence the ; on some) but didn't fix anything.
I have a Timecondtion that has worked fine for a long time, and still works perfectly for other inbound trunks, including a GoogleVoice inbound number. But calls to the VoipTalk DID just disconnect, and I get the following in CLI:
Any ideas what could've gone wrong?,
Thanks.
Riz
-- Attempting call on Local/s@tc-maint for application NoCDR() (Retry 1)
-- Executing [s@tc-maint:1] NoCDR("Local/s@tc-maint-0000001f;2", "") 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 ('CHAN_START',{ts '2014-06-04 22:30:00'},'','','','','','s','tc-maint','Local/s@tc-maint-0000001f;1','','',3,'','1401935400.62','1401935400.62','','','')]
-- Executing [s@tc-maint:2] Set("Local/s@tc-maint-0000001f;2", "TCMAINT=RETURN") in new stack
-- Executing [s@tc-maint:3] Gosub("Local/s@tc-maint-0000001f;2", "timeconditions,1,1()") in new stack
-- Executing [1@timeconditions:1] GotoIfTime("Local/s@tc-maint-0000001f;2", "23:05-07:00,mon-fri,*,*?truestate") in new stack
-- Executing [1@timeconditions:2] GotoIf("Local/s@tc-maint-0000001f;2", "0?truegoto") 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 ('CHAN_START',{ts '2014-06-04 22:30:00'},'','','','','','s','tc-maint','Local/s@tc-maint-0000001f;2','','',3,'','1401935400.63','1401935400.62','','','')]
-- Executing [1@timeconditions:3] ExecIf("Local/s@tc-maint-0000001f;2", "0?Set(DB(TC/1)=)") in new stack
-- Executing [1@timeconditions:4] Set("Local/s@tc-maint-0000001f;2", "DEVICE_STATE(Custom:TC1)=INUSE") in new stack
-- Executing [1@timeconditions:5] ExecIf("Local/s@tc-maint-0000001f;2", "0?Set(DEVICE_STATE(Custom:TCSTICKY)=INUSE)") in new stack
-- Executing [1@timeconditions:6] GotoIf("Local/s@tc-maint-0000001f;2", "0?ext-group,100,1") in new stack
-- Executing [1@timeconditions:7] Set("Local/s@tc-maint-0000001f;2", "TCSTATE=false") in new stack
-- Executing [1@timeconditions:8] Return("Local/s@tc-maint-0000001f;2", "") in new stack
-- Executing [s@tc-maint:4] System("Local/s@tc-maint-0000001f;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-0000001f;2", "") in new stack
> Channel Local/s@tc-maint-0000001f;1 was answered.
> Launching NoCDR() on Local/s@tc-maint-0000001f;1
== Spawn extension (tc-maint, s, 5) exited non-zero on 'Local/s@tc-maint-0000001f;2'
[2014-06-04 22:30:00] NOTICE[3039]: 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 '2014-06-04 22:30:00'},'0','0','','','','s','tc-maint','Local/s@tc-maint-0000001f;2','Answer','',3,'','1401935400.63','1401935400.62','','','')]
> [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 '2014-06-04 22:30:00'},'0','0','0','','','s','tc-maint','Local/s@tc-maint-0000001f;1','','',3,'','1401935400.62','1401935400.62','','','')]
> [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 '2014-06-04 22:30:00'},'0','0','0','','','s','tc-maint','Local/s@tc-maint-0000001f;1','','',3,'','1401935400.62','1401935400.62','','','')]
> [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 '2014-06-04 22:30:00'},'0','0','0','','','s','tc-maint','Local/s@tc-maint-0000001f;1','','',3,'','1401935400.62','1401935400.62','','','')]
disallow=all
username=81XXXX
type=friend
secret=XXXXXX
nat=yes
maxexpirey=30
insecure=port,invite
host=voiptalk.org
fromuser=81XXXX
fromdomain=voiptalk.org
echocancel=yes
dtmfmode=rfc2833
canreinvite=no
authuser=8XXXX
allow=ulaw&alaw
;context=from-pstn
context=VoipTalk-Incoming-custom&from-trunk-sip-VoipTalk
;context=default
I have tried various contexts (hence the ; on some) but didn't fix anything.
I have a Timecondtion that has worked fine for a long time, and still works perfectly for other inbound trunks, including a GoogleVoice inbound number. But calls to the VoipTalk DID just disconnect, and I get the following in CLI:
Any ideas what could've gone wrong?,
Thanks.
Riz
-- Attempting call on Local/s@tc-maint for application NoCDR() (Retry 1)
-- Executing [s@tc-maint:1] NoCDR("Local/s@tc-maint-0000001f;2", "") 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 ('CHAN_START',{ts '2014-06-04 22:30:00'},'','','','','','s','tc-maint','Local/s@tc-maint-0000001f;1','','',3,'','1401935400.62','1401935400.62','','','')]
-- Executing [s@tc-maint:2] Set("Local/s@tc-maint-0000001f;2", "TCMAINT=RETURN") in new stack
-- Executing [s@tc-maint:3] Gosub("Local/s@tc-maint-0000001f;2", "timeconditions,1,1()") in new stack
-- Executing [1@timeconditions:1] GotoIfTime("Local/s@tc-maint-0000001f;2", "23:05-07:00,mon-fri,*,*?truestate") in new stack
-- Executing [1@timeconditions:2] GotoIf("Local/s@tc-maint-0000001f;2", "0?truegoto") 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 ('CHAN_START',{ts '2014-06-04 22:30:00'},'','','','','','s','tc-maint','Local/s@tc-maint-0000001f;2','','',3,'','1401935400.63','1401935400.62','','','')]
-- Executing [1@timeconditions:3] ExecIf("Local/s@tc-maint-0000001f;2", "0?Set(DB(TC/1)=)") in new stack
-- Executing [1@timeconditions:4] Set("Local/s@tc-maint-0000001f;2", "DEVICE_STATE(Custom:TC1)=INUSE") in new stack
-- Executing [1@timeconditions:5] ExecIf("Local/s@tc-maint-0000001f;2", "0?Set(DEVICE_STATE(Custom:TCSTICKY)=INUSE)") in new stack
-- Executing [1@timeconditions:6] GotoIf("Local/s@tc-maint-0000001f;2", "0?ext-group,100,1") in new stack
-- Executing [1@timeconditions:7] Set("Local/s@tc-maint-0000001f;2", "TCSTATE=false") in new stack
-- Executing [1@timeconditions:8] Return("Local/s@tc-maint-0000001f;2", "") in new stack
-- Executing [s@tc-maint:4] System("Local/s@tc-maint-0000001f;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-0000001f;2", "") in new stack
> Channel Local/s@tc-maint-0000001f;1 was answered.
> Launching NoCDR() on Local/s@tc-maint-0000001f;1
== Spawn extension (tc-maint, s, 5) exited non-zero on 'Local/s@tc-maint-0000001f;2'
[2014-06-04 22:30:00] NOTICE[3039]: 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 '2014-06-04 22:30:00'},'0','0','','','','s','tc-maint','Local/s@tc-maint-0000001f;2','Answer','',3,'','1401935400.63','1401935400.62','','','')]
> [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 '2014-06-04 22:30:00'},'0','0','0','','','s','tc-maint','Local/s@tc-maint-0000001f;1','','',3,'','1401935400.62','1401935400.62','','','')]
> [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 '2014-06-04 22:30:00'},'0','0','0','','','s','tc-maint','Local/s@tc-maint-0000001f;1','','',3,'','1401935400.62','1401935400.62','','','')]
> [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 '2014-06-04 22:30:00'},'0','0','0','','','s','tc-maint','Local/s@tc-maint-0000001f;1','','',3,'','1401935400.62','1401935400.62','','','')]