BUG Wake up calls - adjusting/cancelling

Joined
May 22, 2013
Messages
299
Reaction score
43
I changed to Asterisk 11.12.0 today and I don't know if this is related but when I dial *68 for a wake-up call, it starts as normal. If I then dial back in to cancel or change the time all I am told is 'you have requested a wake-up call for xxx' then hangs up. I have to log into the interface to cancel it.

Can anyone help please?
 

Trimline2

Guru
Joined
May 23, 2013
Messages
525
Reaction score
95
Location
Orlando, FL
I changed to Asterisk 11.12.0 today and I don't know if this is related but when I dial *68 for a wake-up call, it starts as normal. If I then dial back in to cancel or change the time all I am told is 'you have requested a wake-up call for xxx' then hangs up. I have to log into the interface to cancel it.

Can anyone help please?
I can confirm that I see the same issue on a recent install using:

──────────────────────────────────────────────────────────────────────────
┌────────────────────────SYSTEM INFORMATION───────────────────────────┐
│ Asterisk = ONLINE | Dahdi = ONLINE | MySQL = ONLINE │
│ SSH = ONLINE | Apache = ONLINE | Iptables = ONLINE │
│ Fail2ban = ONLINE | Internet = ONLINE | Ip6Tables = ONLINE │
│ Disk Free = ADEQUATE| Mem Free = ADEQUATE| NTPD = ONLINE │
│ SendMail = ONLINE | Samba = ONLINE | Webmin = ONLINE │
│ Ethernet0 = ONLINE | Ethernet1 = N/A | Wlan0 = N/A │
│ │
│ PIAF Installed Version = 2.0.6.5 under *HARDWARE* │
│ FreePBX Version = 2.11.0.38 │
│ Running Asterisk Version = 11.10.0 │
│ Asterisk Source Version = 11.10.0 │
│ Dahdi Source Version = 2.9.0 │
│ Libpri Source Version = 1.4.14 │
│ IP Address = 192.168.1.123 on eth0 │
│ Operating System = CentOS release 6.5 (Final) │
│ Kernel Version = 2.6.32-431.1.2.0.1.el6.i686 - 32 Bit │
│ Incredible Version = 11.10 ──────────────────────────────────────────────────────────────────────────
 

Trimline2

Guru
Joined
May 23, 2013
Messages
525
Reaction score
95
Location
Orlando, FL
Log
Code:
[2014-09-21 19:35:12] VERBOSE[10386][C-00000010] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/wakeupphp
[2014-09-21 19:35:13] VERBOSE[10386][C-00000010] res_agi.c: -- Playing 'rqsted-wakeup-for' (escape_digits=) (sample_offset 0)
[2014-09-21 19:35:16] VERBOSE[10386][C-00000010] file.c: -- <SIP/41963-0000001a> Playing 'digits/7.ulaw' (language 'joe')
[2014-09-21 19:35:16] VERBOSE[10386][C-00000010] file.c: -- <SIP/41963-0000001a> Playing 'digits/40.ulaw' (language 'joe')
[2014-09-21 19:35:17] VERBOSE[10386][C-00000010] res_agi.c: -- Playing 'digits/p-m' (escape_digits=) (sample_offset 0)
[2014-09-21 19:35:17] VERBOSE[10386][C-00000010] res_agi.c: -- <SIP/41963-0000001a>AGI Script wakeupphp completed, returning -1
[2014-09-21 19:35:17] VERBOSE[10386][C-00000010] pbx.c: -- Executing [*[email protected]:5] Hangup("SIP/41963-0000001a", "") in new stack
 
Joined
May 22, 2013
Messages
299
Reaction score
43
This is what happens when I set a wake-up call for 2000hrs on extension 202:

Code:
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [*[email protected]:1] Macro("SIP/202-00000037", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("SIP/202-00000037", "TOUCH_MONITOR=1411408110.71") in new stack
    -- Executing [[email protected]:2] Set("SIP/202-00000037", "AMPUSER=202") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/202-00000037", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/202-00000037", "1?Set(REALCALLERIDNUM=202)") in new stack
    -- Executing [[email protected]:5] Set("SIP/202-00000037", "AMPUSER=202") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/202-00000037", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/202-00000037", "AMPUSERCIDNAME=Extension 202") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/202-00000037", "0?report") in new stack
    -- Executing [[email protected]:9] Set("SIP/202-00000037", "AMPUSERCID=202") in new stack
    -- Executing [[email protected]:10] Set("SIP/202-00000037", "__DIAL_OPTIONS=tr") in new stack
    -- Executing [[email protected]:11] Set("SIP/202-00000037", "CALLERID(all)="Extension 202" <202>") in new stack
    -- Executing [[email protected]:12] GotoIf("SIP/202-00000037", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/202-00000037", "0?Set(GROUP(concurrency_limit)=202)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/202-00000037", "0?continue") in new stack
    -- Executing [[email protected]:15] Set("SIP/202-00000037", "__TTL=64") in new stack
    -- Executing [[email protected]:16] GotoIf("SIP/202-00000037", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,27)
    -- Executing [[email protected]:27] Set("SIP/202-00000037", "CALLERID(number)=202") in new stack
    -- Executing [[email protected]:28] Set("SIP/202-00000037", "CALLERID(name)=Extension 202") in new stack
    -- Executing [[email protected]:29] Set("SIP/202-00000037", "CDR(cnum)=202") in new stack
    -- Executing [[email protected]:30] Set("SIP/202-00000037", "CDR(cnam)=Extension 202") in new stack
    -- Executing [[email protected]:31] Set("SIP/202-00000037", "CHANNEL(language)=en") in new stack
    -- Executing [*[email protected]:2] Answer("SIP/202-00000037", "") in new stack
      > 0x439531f0 -- Probation passed - setting RTP source address to 192.168.0.32:19928
    -- Executing [*[email protected]:3] Wait("SIP/202-00000037", "1") in new stack
    -- Executing [*[email protected]:4] AGI("SIP/202-00000037", "wakeupphp") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/wakeupphp
    -- Playing 'please-enter-the' (escape_digits=0123456789) (sample_offset 0)
    -- Playing 'time' (escape_digits=0123456789) (sample_offset 0)
    -- Playing 'for' (escape_digits=0123456789) (sample_offset 0)
    -- Playing 'your' (escape_digits=0123456789) (sample_offset 0)
    -- <SIP/202-00000037> Playing 'wakeup-call.ulaw' (language 'en')
    -- Playing 'for' (escape_digits=) (sample_offset 0)
    -- Playing 'extension' (escape_digits=) (sample_offset 0)
    -- <SIP/202-00000037> Playing 'digits/2.ulaw' (language 'en')
    -- <SIP/202-00000037> Playing 'digits/0.ulaw' (language 'en')
    -- <SIP/202-00000037> Playing 'digits/2.ulaw' (language 'en')
    -- Playing 'rqsted-wakeup-for' (escape_digits=) (sample_offset 0)
    -- <SIP/202-00000037> Playing 'digits/8.ulaw' (language 'en')
    -- Playing 'digits/oclock' (escape_digits=) (sample_offset 0)
    -- Playing 'digits/p-m' (escape_digits=) (sample_offset 0)
    -- Playing 'goodbye' (escape_digits=) (sample_offset 0)
    -- <SIP/202-00000037>AGI Script wakeupphp completed, returning -1
    -- Executing [[email protected]:1] Hangup("SIP/202-00000037", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/202-00000037'
This is what happens when I call *68 on extension 202 once I have set the wakeup call for 2000hrs:

Code:
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [*[email protected]:1] Macro("SIP/202-00000038", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("SIP/202-00000038", "TOUCH_MONITOR=1411408138.72") in new stack
    -- Executing [[email protected]:2] Set("SIP/202-00000038", "AMPUSER=202") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/202-00000038", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/202-00000038", "1?Set(REALCALLERIDNUM=202)") in new stack
    -- Executing [[email protected]:5] Set("SIP/202-00000038", "AMPUSER=202") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/202-00000038", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/202-00000038", "AMPUSERCIDNAME=Extension 202") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/202-00000038", "0?report") in new stack
    -- Executing [[email protected]:9] Set("SIP/202-00000038", "AMPUSERCID=202") in new stack
    -- Executing [[email protected]:10] Set("SIP/202-00000038", "__DIAL_OPTIONS=tr") in new stack
    -- Executing [[email protected]:11] Set("SIP/202-00000038", "CALLERID(all)="Extension 202" <202>") in new stack
    -- Executing [[email protected]:12] GotoIf("SIP/202-00000038", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/202-00000038", "0?Set(GROUP(concurrency_limit)=202)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/202-00000038", "0?continue") in new stack
    -- Executing [[email protected]:15] Set("SIP/202-00000038", "__TTL=64") in new stack
    -- Executing [[email protected]:16] GotoIf("SIP/202-00000038", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,27)
    -- Executing [[email protected]:27] Set("SIP/202-00000038", "CALLERID(number)=202") in new stack
    -- Executing [[email protected]:28] Set("SIP/202-00000038", "CALLERID(name)=Extension 202") in new stack
    -- Executing [[email protected]:29] Set("SIP/202-00000038", "CDR(cnum)=202") in new stack
    -- Executing [[email protected]:30] Set("SIP/202-00000038", "CDR(cnam)=Extension 202") in new stack
    -- Executing [[email protected]:31] Set("SIP/202-00000038", "CHANNEL(language)=en") in new stack
    -- Executing [*[email protected]:2] Answer("SIP/202-00000038", "") in new stack
      > 0x4396a280 -- Probation passed - setting RTP source address to 192.168.0.32:16842
    -- Executing [*[email protected]:3] Wait("SIP/202-00000038", "1") in new stack
    -- Executing [*[email protected]:4] AGI("SIP/202-00000038", "wakeupphp") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/wakeupphp
    -- Playing 'rqsted-wakeup-for' (escape_digits=) (sample_offset 0)
    -- <SIP/202-00000038> Playing 'digits/8.ulaw' (language 'en')
    -- Playing 'digits/oclock' (escape_digits=) (sample_offset 0)
    -- Playing 'digits/p-m' (escape_digits=) (sample_offset 0)
    -- <SIP/202-00000038>AGI Script wakeupphp completed, returning -1
    -- Executing [*[email protected]:5] Hangup("SIP/202-00000038", "") in new stack
  == Spawn extension (from-internal, *68, 5) exited non-zero on 'SIP/202-00000038'
    -- Executing [[email protected]:1] Hangup("SIP/202-00000038", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/202-00000038'
I would expect there to be the option of cancelling/adjusting the wake-up call. It was certainly there under Asterisk 11.3.0 but having upgraded my Asterisk version to 11.12.0 it doesn't work. This is using 2.11.3 module as well like Trimline2. I then have to go into FreePBX interface to cancel the wake-up call if it is no longer needed. (If the time is entered correctly the wake up call behaves absolutely fine, the bug is only in cancelling or changing the wake up call).

I suspect the line '>AGI Script wakeupphp completed, returning -1' is happening prematurely and the script not completing properly to allow for changes.

If it's any help I am on 2.11.0.38 FreePBX framework.
 
Joined
May 22, 2013
Messages
299
Reaction score
43
Here you go lgaetz
Code:
---Start of log---
--- Start of Asterisk channel data ---
    agi_request: wakeupphp
    agi_channel: SIP/202-00000038
    agi_language: en
    agi_type: SIP
    agi_uniqueid: 1411408138.72
    agi_version: 11.12.0
    agi_callerid: 202
    agi_calleridname: Extension 202
    agi_callingpres: 1
    agi_callingani2: 0
    agi_callington: 0
    agi_callingtns: 0
    agi_dnid: *68
    agi_rdnis: unknown
    agi_context: from-internal
    agi_extension: *68
    agi_priority: 4
    agi_enhanced: 0.0
    agi_accountcode:
    agi_threadid: 1132905584
 
--- End of Asterisk channel data ---
Channel: SIP/202-00000038
Channel SPLIT-STA: 202 - CHAN: SIP
ANSWER
      READ=200 result=0
1=0, 2=, 3=, 4=
STREAM FILE hello ""
      READ=200 result=-1 endpos=0
1=-1, 2= endpos=0, 3=, 4=
Checking Directory [/var/spool/asterisk/outgoing] Check=[ext.202.call]
File=..
File=.
File=wuc.1411412400.ext.202.call
wakeup found=wuc.1411412400.ext.202.call saying time 2000
Wakeup time is set to 0800
STREAM FILE rqsted-wakeup-for ""
      READ=200 result=0 endpos=18387
1=0, 2= endpos=18387, 3=, 4=
SAY NUMBER 8 ""
      READ=200 result=0
1=0, 2=, 3=, 4=
STREAM FILE digits/oclock ""
      READ=200 result=0 endpos=5414
1=0, 2= endpos=5414, 3=, 4=
STREAM FILE digits/p-m ""
      READ=200 result=0 endpos=5654
1=0, 2= endpos=5654, 3=, 4=
(That code is for the same wake-up call I have given the Asterisk output on).
 

Trimline2

Guru
Joined
May 23, 2013
Messages
525
Reaction score
95
Location
Orlando, FL
I did a compare on the php between an older system and the current system and there were no differences noted.

Here's my log as well. Similar to that above.

Code:
---Start of log---
--- Start of Asterisk channel data ---
agi_request: wakeupphp
agi_channel: SIP/41961-0000001e
agi_language: joe
agi_type: SIP
agi_uniqueid: 1411386148.35
agi_version: 11.10.0
agi_callerid: 4196
agi_calleridname: Princess Fubar
agi_callingpres: 0
agi_callingani2: 0
agi_callington: 0
agi_callingtns: 0
agi_dnid: *68
agi_rdnis: unknown
agi_context: from-internal
agi_extension: *68
agi_priority: 4
agi_enhanced: 0.0
agi_accountcode: 41961
agi_threadid: -1245033616
 
--- End of Asterisk channel data ---
Channel: SIP/41961-0000001e
Channel SPLIT-STA: 41961 - CHAN: SIP
ANSWER
READ=200 result=0
1=0, 2=, 3=, 4=
STREAM FILE hello ""
READ=200 result=-1 endpos=0
1=-1, 2= endpos=0, 3=, 4=
Checking Directory [/var/spool/asterisk/outgoing] Check=[ext.4196.call]
File=..
File=.
File=wuc.1411387200.ext.4196.call
wakeup found=wuc.1411387200.ext.4196.call saying time 0800
Wakeup time is set to 0800
STREAM FILE rqsted-wakeup-for ""
READ=200 result=0 endpos=18780
1=0, 2= endpos=18780, 3=, 4=
SAY NUMBER 8 ""
READ=200 result=0
1=0, 2=, 3=, 4=
STREAM FILE digits/oclock ""
READ=200 result=0 endpos=4650
1=0, 2= endpos=4650, 3=, 4=
STREAM FILE digits/a-m ""
READ=200 result=0 endpos=4487
1=0, 2= endpos=4487, 3=, 4=
 
Joined
May 22, 2013
Messages
299
Reaction score
43
Hi lgaetz wondering if there's any further testing I can help you with to get to bottom of this?
 
Joined
May 22, 2013
Messages
299
Reaction score
43
No worries, I sure know that feeling about a busy schedule! If you think of any testing I can do my end beyond what I've done so far please let me know.
 

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,448
Messages
138,014
Members
14,613
Latest member
roshan2019