[solved] Openvox Send reports

Hi All,

I have set up an openvox SMSC. It works but in the sent message report it shows all messages as failed.

The openvox has two types of report, JSON, which returns:
{
“message”:“test-json”,
“report”:[{
“1”:[{
“port”:“gsm-1.1”,
“phonenumber”:“04XXXXXXXX”,
“time”:“2016-05-28 18:15:35”,
“result”:“success”
}]
}]
}

and string, which returns:

message:test-jstring

--record 1 start--
port:gsm-1.1
phonenumber:04XXXXXXXX
time:2016-05-28 18:18:09
result:success
--record 1 end--

How can I configure playsms to recognise these reports?

Thanks for your help.

Hi Everyone

If someone could please point me in the right direction to get more information on this issue it would be fantastic. The following messages all sent successfully, but as shown playsms is saying they failed:

here is the configuration of my openvox unit and the playsms smsc:

I have had a look at my /var/www/html/playsms/plugin/gateway/openvox/fn.php file but I am not programmer and don’t really know what the issue might be. It matches the file detailed here…

All help is greatly appreciated. Thanks in advance.

Hi all,

Still waiting on a response on how to configure my DLR for openvox smsc I have spent a fair amount of time searching for an answer in the forum but haven’t been able to find one. Also a google search turns up very little except kannel dlr settings. In the meantime, here is the L3 log for a message:

10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L2 sendsms # start uid:1 sender_id:[1234] smsc:[]
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L3 sendsms # maxlen:452 footerlen:7 footer:[ @admin] msglen:25 message:[test message 10/6/16 2215]
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L2 sendsms_queue_create # saving queue_code:efe1c79548b0b44dd566fa927da3a5f4 src:1234 scheduled:2016-06-10 22:15:34
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L2 sendsms_queue_create # saved queue_code:efe1c79548b0b44dd566fa927da3a5f4 id:66
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L3 sendsms_manipulate_prefix # before prefix manipulation:[04########]
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L3 sendsms_manipulate_prefix # after prefix manipulation:[+614########]
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L3 simplerate_hook_rate_getbyprefix # found rate id:3 prefix:61 rate:0.000 description:+61 to:+61466647735
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:32 unicode:0 to:+61466647735 enable_credit_unicode:0 count:1 rate: charge:0
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L2 sendsms # dst:1 sms_count:1 total_charges:0
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L2 sendsms_queue_push # saving queue_code:efe1c79548b0b44dd566fa927da3a5f4 dst:+61466647735
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L2 sendsms_queue_push # saved queue_code:efe1c79548b0b44dd566fa927da3a5f4 smslog_id:167
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L2 sendsms # end queue_code:efe1c79548b0b44dd566fa927da3a5f4 queue_count:1 sms_count:1 failed_queue:0 failed_sms:0
10.0.1.44 paging-server 2016-06-10 22:15:34 PID575aaf66a9c67 admin L3 webservices # u:admin ip:10.0.1.44 op:pv timestamp:1465560934 status: error: error_string:
127.0.0.1 paging-server 2016-06-10 22:15:35 PID575aaf66f31e8 - L3 auth_validate_login # login attempt u:reception uid:3 p:1da95b279fc0d21024cece2c68a4c200 ip:127.0.0.1
127.0.0.1 paging-server 2016-06-10 22:15:35 PID575aaf66f31e8 - L2 auth_validate_login # valid login u:reception uid:3 ip:127.0.0.1
127.0.0.1 paging-server 2016-06-10 22:15:35 PID575aaf66f31e8 - L3 webservices # u:reception ip:127.0.0.1 op:get_token timestamp:1465560935 status:ERR error:106 error_string:webservice token not allowed from this IP address
127.0.0.1 paging-server 2016-06-10 22:15:35 PID575aaf670f5b7 - L2 auth_validate_token # invalid login t: ip:127.0.0.1
127.0.0.1 paging-server 2016-06-10 22:15:35 PID575aaf670f5b7 - L3 webservices # u: ip:127.0.0.1 op:pv timestamp:1465560935 status:ERR error:100 error_string:authentication failed
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L2 sendsmsd # start processing queue_code:efe1c79548b0b44dd566fa927da3a5f4 chunk:0 queue_count:1 sms_count:1 scheduled:2016-06-10 22:15:34 uid:1 gpid:0 sender_id:1234
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L2 sendsmsd # sending queue_code:efe1c79548b0b44dd566fa927da3a5f4 smslog_id:167 to:+614######## sms_count:1 counter:1
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 sendsms_intercept # msgtemplate modified sms_sender:[1234] sms_footer:[@admin] sms_to:[+614#########] sms_msg:[test message 10/6/16 2215] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[efe1c79548b0b44dd566fa927da3a5f4] smsc:[]
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 outgoing_hook_sendsms_intercept # found SMSCs:[openvox]
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 outgoing_hook_sendsms_intercept # using prefix based smsc smsc:[openvox] uid:1 parent_uid:0 from:1234 to:+614########
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 sendsms_intercept # outgoing modified sms_sender:[1234] sms_footer:[@admin] sms_to:[+614########] sms_msg:[test message 10/6/16 2215] uid:[1] gpid:[0] sms_type:[text] unicode:[0] queue_code:[efe1c79548b0b44dd566fa927da3a5f4] smsc:[openvox]
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L2 sendsms_process # start
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 simplerate_hook_rate_getbyprefix # found rate id:3 prefix:61 rate:0.000 description:+61 to:+614########
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:32 unicode:0 to:+61466647735 enable_credit_unicode:0 count:1 rate: charge:0
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L2 simplerate__cansend # allowed user uid:1 sms_to:+61466647735 credit:44.000 count:1 rate: charge:0 balance:44
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L2 sendsms # saving smslog_id:167 u:1 g:0 gw:openvox smsc:openvox s:1234 d:+61466647735 type:text unicode:0 status:0
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L2 sendsms_process # saved smslog_id:167 id:167
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 sendsms # final smslog_id:167 gw:openvox smsc:openvox message:test message 10/6/16 2215 @admin len:32
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 openvox_hook_sendsms # enter smsc:openvox smslog_id:167 uid:1 to:+614########
- - 2016-06-10 22:15:35 PID575aaf67b7b4f - L3 openvox__outgoing # url:[http://10.0.1.51:80/sendsms?username=xxxxxxx&password=xxxxxxx&phonenumber=%2B614########&message=test+message+10%2F6%2F16+2215+%40admin&report=JSON&smslog_id=167]
**- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L3 openvox_hook_sendsms # response result: port: to: time:**
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L3 dlr # isdlrd:1 smslog_id:167 p_status:2 uid:1
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L2 simplerate__deduct # enter smslog_id:167
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L3 simplerate_hook_rate_getbyprefix # found rate id:3 prefix:61 rate:0.000 description:+61 to:+61466647735
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L3 simplerate_hook_rate_getcharges # uid:1 u:admin len:32 unicode:0 to:+61466647735 enable_credit_unicode:0 count:1 rate: charge:0
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L2 credit_hook_rate_setusercredit # no changes uid:1 balance:44
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L2 simplerate__deduct # user uid:1 parent_uid: smslog_id:167 msglen:32 count:1 rate: charge:0 credit:44.000 balance:44
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L2 simplebilling__post # saving smslog_id:167 rate: credit:44.000 count:1 charge:0
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L2 simplebilling__post # saved smslog_id:167 id:167
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L3 simplerate__deduct # deduct successful uid:1 parent_uid: smslog_id:167
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L3 simplerate__deduct # credit_lowest_limit:0 balance:44 charge:0
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L2 sendsms_process # end
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L2 sendsmsd # result queue_code:efe1c79548b0b44dd566fa927da3a5f4 to:+61466647735 flag:1 smslog_id:167
- - 2016-06-10 22:15:40 PID575aaf67b7b4f - L2 sendsmsd # finish processing queue_code:efe1c79548b0b44dd566fa927da3a5f4 uid:1 sender_id:1234 queue_count:1 sms_count:1
**- - 2016-06-10 22:15:40 PID575aaf5a590a9 - L3 dlrd # id:178 smslog_id:167 p_status:2 uid:1**
- - 2016-06-10 22:15:40 PID575aaf5a590a9 - L2 simplerate__refund # start smslog_id:167
- - 2016-06-10 22:15:40 PID575aaf5a590a9 - L2 simplebilling__rollback # checking smslog_id:167
- - 2016-06-10 22:15:40 PID575aaf5a590a9 - L2 simplebilling__rollback # saving smslog_id:167 id:167
- - 2016-06-10 22:15:40 PID575aaf5a590a9 - L2 simplebilling__rollback # saved smslog_id:167
- - 2016-06-10 22:15:40 PID575aaf5a590a9 - L2 simplerate__refund # rolling smslog_id:167
- - 2016-06-10 22:15:40 PID575aaf5a590a9 - L2 credit_hook_rate_setusercredit # no changes uid:1 balance:44
- - 2016-06-10 22:15:40 PID575aaf5a590a9 - L2 simplerate__refund # user uid:1 parent_uid: smslog_id:167 credit:44.000 balance:44

I have still not been able to work out where the DLR is actually configured for an openvox SMSC. I have been unable to get a definitive answer from the forum or a google search, so I suppose there is every chance I just haven’t configured it and don’t know how to.

Please, at this stage I think just need a quick nudge in the right direction. I would really appreciate it.

Hi,

See this part of your log:

L3 openvox_hook_sendsms # enter smsc:openvox smslog_id:167 uid:1 to:+614########
L3 openvox__outgoing # url:[http://10.0.1.51:80/sendsms?username=xxxxxxx&password=xxxxxxx&phonenumber=%2B614########&message=test+message+10%2F6%2F16+2215+%40admin&report=JSON&smslog_id=167]
L3 openvox_hook_sendsms # response result: port: to: time:**
L3 dlr # isdlrd:1 smslog_id:167 p_status:2 uid:1

so, playSMS submit url to openvox and your openvox either reply or not I don’t know, but the recorded response result was empty, thus the p_status:2, playSMS set failed

probably changes in response, or maybe I wasn’t hav enough time to explore openvox devices when I wrote the gateway

could you please run the URL manually and paste the response on the browser here, so that I can make some changes if it were changed

anton

Thanks so much for your response Anton.

Here is the output when I run the url manually:

user@paging-server:~$ lynx --dump "http://10.0.1.51:80/sendsms?username=xxxxxxxx&password=xxxxxxxx&phonenumber=%2B614########&message=test+message&report=JSON&smslog_id=167"
        {
                "message":"test message",
                "report":[{
                        "1":[{
                                "port":"gsm-1.1",
                                "phonenumber":"+614########",
                                "time":"2016-06-11 18:06:55",
                                "result":"success"
                        }]
                }]
        }
user@paging-server:~$ 

Hope this helps, please let me know if you need any further information.

Thanks again

Ok, try this:

Open this file, line 54:

Change: $data = $resp['report'][0][0][0];
To: $data = $resp['report'][0][1][0];

anton

Thats fixed it!

Thanks very much for your help, it is very much appreciated!

After I perform the above solution, it solves the problem but still there’s an intermittent failed response from the sent sms.

From the log:

`- - 2016-08-15 11:21:27 PID57b135297d2c6 - L3 openvox_hook_sendsms # response result:success port:gsm-1.2 to:XXXXXXXXXXX time:2016-08-15 11:21:27

    • 2016-08-15 11:27:39 PID57b136a45e4c8 - L3 openvox_hook_sendsms # response result: port: to: time:
    • 2016-08-15 11:28:06 PID57b136c0984eb - L3 openvox_hook_sendsms # response result: port: to: time:
    • 2016-08-15 11:28:53 PID57b136eee0779 - L3 openvox_hook_sendsms # response result: port: to: time:
    • 2016-08-15 11:44:04 PID57b13a81653ff - L3 openvox_hook_sendsms # response result:success port:gsm-1.2 to:XXXXXXXXXXX time:2016-08-15 11:44:04
    • 2016-08-15 11:48:42 PID57b13b961f55d - L3 openvox_hook_sendsms # response result:success port:gsm-1.3 to:XXXXXXXXXXX time:2016-08-15 11:48:42
    • 2016-08-15 11:53:49 PID57b13cc7215d7 - L3 openvox_hook_sendsms # response result:success port:gsm-1.2 to:XXXXXXXXXXX time:2016-08-15 11:53:49
    • 2016-08-15 14:14:28 PID57b15dbbd2352 - L3 openvox_hook_sendsms # response result:success port:gsm-1.3 to:XXXXXXXXXXX time:2016-08-15 14:14:28
    • 2016-08-15 14:21:22 PID57b15f49bc146 - L3 openvox_hook_sendsms # response result: port: to: time:
    • 2016-08-15 14:36:12 PID57b162d10fff3 - L3 openvox_hook_sendsms # response result:success port:gsm-1.3 to:XXXXXXXXXXX time:2016-08-15 14:36:11
    • 2016-08-15 14:36:38 PID57b162ee53881 - L3 openvox_hook_sendsms # response result:success port:gsm-1.2 to:XXXXXXXXXXX time:2016-08-15 14:36:38
    • 2016-08-15 14:52:35 PID57b166af70fe9 - L3 openvox_hook_sendsms # response result:success port:gsm-1.3 to:XXXXXXXXXXX time:2016-08-15 14:52:35
    • 2016-08-15 15:28:29 PID57b16f1641d69 - L3 openvox_hook_sendsms # response result:success port:gsm-1.2 to:XXXXXXXXXXX time:2016-08-15 15:28:29
    • 2016-08-15 16:01:58 PID57b176f142d48 - L3 openvox_hook_sendsms # response result:success port:gsm-1.3 to:XXXXXXXXXXX time:2016-08-15 16:01:58
      `