Lost Trunk
Guru
- Joined
- Aug 5, 2008
- Messages
- 228
- Reaction score
- 0
Okay, I tested it. Initially it didn't work (Caller ID displayed "unknown" for both name and number) so I totally uninstalled it - as in, used phpMyAdmin to drop the entire hotelwakeup table, then uninstalled it from module admin, then reinstalled it. When I went back to phpMyAdmin to look, the wakeupcallerid entry showed "Wake Up Calls" BUT on the actual Wake Up Calls page it does NOT show the quotes around Wake Up Calls (this is definitely version 1.10, though). But then I clicked Submit, and according to phpMyAdmin the quotes went away, BUT a test call still came up with unknown caller ID.
So I tried adding the quotes around Wake Up Calls and clicked Submit, and they disappeared! But they were back again in the phpMyAdmin display, but (as expected) the Caller ID still showed unknown for both name and number. So finally, I tried manually removing the quotes using phpMyAdmin and even that didn't work - still unknown!
In desperation I went back to version 1.03 and now even that will not send the Caller ID, with or without the quotes. I tried uninstalling everything I could think of, even went and made sure the /var/www/html/admin/modules/hotelwakeup directory was deleted, then reinstalled (tried both previous and new versions) but now it won't work at all (well, it makes the calls but just won't send any Caller ID other than unknown). I'm totally stumped now.
Edit: Here's my CLI output when a wakeup call is being set to the extension at the previously-specified time:
But, wakeupcallerid is still set to Wake Up Calls <*68> according to phpMyAdmin.
Edit 2: Okay, this is interesting - I find that if I change the file /var/lib/asterisk/agi-bin/wakeupphp, line 491 from
to
THEN it works. So there is something wrong in the way it's getting the variable from the database - somehow that value isn't making it into $parm_wakeupcallerid ???
Edit 3: And that's not the only value not being written to the .call file - this is what the .call file actually looks like (after I hardcoded in the Caller ID):
channel: Local/234@from-internal
maxretries:
retrytime:
waittime:
callerid: Wake Up Calls <*67>
application: AGI
data: wakeconfirm.php
Turns out that maxretries, retrytime, and waittime values aren't being written out either!
In desperation I went back to version 1.03 and now even that will not send the Caller ID, with or without the quotes. I tried uninstalling everything I could think of, even went and made sure the /var/www/html/admin/modules/hotelwakeup directory was deleted, then reinstalled (tried both previous and new versions) but now it won't work at all (well, it makes the calls but just won't send any Caller ID other than unknown). I'm totally stumped now.
Edit: Here's my CLI output when a wakeup call is being set to the extension at the previously-specified time:
Code:
-- Attempting call on Local/234@from-internal for application AGI(wakeconfirm.php) (Retry 1)
-- Executing [234@from-internal:1] GotoIf("Local/234@from-internal-9ec1,2", "0?ext-local|234|1") in new stack
-- Executing [234@from-internal:2] Macro("Local/234@from-internal-9ec1,2", "user-callerid|") in new stack
-- Executing [s@macro-user-callerid:1] Set("Local/234@from-internal-9ec1,2", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("Local/234@from-internal-9ec1,2", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("Local/234@from-internal-9ec1,2", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("Local/234@from-internal-9ec1,2", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("Local/234@from-internal-9ec1,2", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("Local/234@from-internal-9ec1,2", "Using CallerID "" <>") in new stack
Edit 2: Okay, this is interesting - I find that if I change the file /var/lib/asterisk/agi-bin/wakeupphp, line 491 from
Code:
fputs( $wuc, "callerid: $parm_wakeupcallerid\n");
Code:
fputs( $wuc, "callerid: Wake Up Calls <*67>\n");
Edit 3: And that's not the only value not being written to the .call file - this is what the .call file actually looks like (after I hardcoded in the Caller ID):
channel: Local/234@from-internal
maxretries:
retrytime:
waittime:
callerid: Wake Up Calls <*67>
application: AGI
data: wakeconfirm.php
Turns out that maxretries, retrytime, and waittime values aren't being written out either!
