SMS Custom Reply fail

I use the below test.php and the reply seems to never reach sender. Kindly share ideas as to why not.

<?php

$quotes = array(
        "don't look back in anger",
        "are we all lost stars?",
        "whatever can go wrong, will go wrong"
);
shuffle($quotes);

if ($name = $_REQUEST['name']) {
        echo "Hi ".$name.", ".$quotes[0];
} else {
        echo "Wrong input bro";
}

This is the log

• - 2016-07-18 17:12:34 PID578d0a94916ac - L3 smstools_hook_getsmsinbox # sender:+306944xxxxxx receiver: dt:2016-07-18 17:12:33 msg:[Q 44] smsc:[modem1]
• - 2016-07-18 17:12:34 PID578d0a94916ac - L3 recvsms # isrecvsmsd:1 dt:2016-07-18 17:12:33 sender:+306944xxxxxx m:Q 44 receiver: smsc:modem1
• - 2016-07-18 17:12:35 PID578d0a94916ac - L3 recvsmsd # id:235 dt:2016-07-18 17:12:33 sender:+306944xxxxxx m:Q 44 receiver: smsc:modem1
• - 2016-07-18 17:12:35 PID578d0a94916ac - L3 recvsms_process # dt:2016-07-18 17:12:33 sender:+306944xxxxxx m:Q 44 receiver: smsc:modem1
• - 2016-07-18 17:12:35 PID578d0a94916ac - L3 recvsms_process # unknown supplied SMSC smsc:[modem1]

that log was on unrelated part

I usually use this command before running a single test:

tail -f /var/log/playsms/playsms.log -n0 | tee debug1.txt

run a test and then control+c the tail command, all the log related to that test will be in debug1.txt

anton

debug2.txt (1.7 KB)

this is the log

Unhandled means no feature handling the incoming sms, wrong keyword ?

Anton

debug4.txt (6.7 KB)

another attempt failed to receive reply on mobile

it seems to use smsc:blocked
although

Hi
Make sure yr smsc settings are same. It happens to me before.

I noticed that in your playsms you set the SMSC as smstools3 and in the log the smsc is named as modem1

yes, @Azaman_Suleiman was right.

the relevant parts from your log:

- - 2016-07-19 19:37:59 PID578e8163b24c7 admin L3 recvsms_process # unknown supplied SMSC smsc:[modem1]
- - 2016-07-19 19:37:59 PID578e8163b24c7 admin L3 gateway_decide_smsc # SMSC supplied:[modem1] configured:[] decided smsc:[blocked]

your gateway was pushing the smsc name modem1 which didn’t exists in playSMS, and then playSMS decided to chose blocked instead, which is a default behaviour

so, add an SMSC with the same name that your gateway used, in this case instead of smstools3 use modem1 instead

anton