Message ID for MULTIPART SMS in kannel
Hello everyone, just need quick help to locate the source files/functions to change the default kannel behavior. In one of the installations, the operator requires all of the PDUs in a multipart SMS to have registered_delivery = 1. Only then we receive the deliver_sm PDU from them. I have done this part successfully by modifying the Kannel source. Now basically the flow is this: Kannel Sends: submit_sm - part 1 of 3 submit_sm - part 2 of 3 submit_sm - part 3 of 3 Kannel receives: submit_sm_resp - for part 1, message_id = NULL so no reference is saved in kannel dlr table submit_sm_resp - for part 2, message_id = NULL, same behavior as above submit_sm_resp - for part 3, message_id is present but it is not saved. deliver_sm - received with message_id supplied previously in final acknowledgment PDU. Now Kannel fails to match this deliver_sm PDU because there is nothing saved in the Kannel DLR table. Apparently, for multipart SMS, Kannel only saves message_id from the first response PDU. I need to modify this behavior and set it in a way so that if should always save the reference if message_id is not NULL. Please advise what files/functions I need to change. I have tried but could not achieve this behavior. PS: I am against this, as modifying Kannel to suit one purpose will break it. However, the client has agreed to an isolated exclusive setup and understands the impossibility of future updates. Thanks in advance guys. -Cheers Sam
Re: Kannel SMPP integration
Actually the app is in PHP and it uses Kannel as SMS gateway. It calls SMSBOX send sms url to push SMS to Kannel. The connections to telecom operators are SMPP. If you're interested you can send email to enqu...@smppcube.com for further clarifications. -Cheers Sam On Fri, Nov 13, 2015 at 9:59 PM, <amal...@kannel.org> wrote: > Hi, > > you mean by SMPP layer Kannel? :-) I ask because on the web site I read: > Based on kannel. > > Alex > > Am 12.11.2015 um 06:58 schrieb Saurabh Pandey <sam.it.develo...@gmail.com > >: > > Hi, I was the lead developer in this. There are few shortcoming like > Operator wise charging isn't there, but operator wise routing is there. The > SMPP client layer is excellent. Very high performance but the SMPP server > component has few shortcomings like: > > 1. You cannot control the number of sessions available to smpp client > 2. You cannot control the TPS allowed for SMPP client, yes you can achieve > this by setting a throughput on your own SMPP. > > Other than these points the apps are great. Around 25-30 clients are using > it worldwide without any complaints. I know it a small number but its a > relatively new product. > > -Cheers > Sam > > > > > > On Mon, Nov 9, 2015 at 8:40 PM, info.ubichip <info.ubic...@free.fr> wrote: > >> Hello all, >> >> >> >> I was wondering if anyone has tested this SMPP layer on kannel : >> >> http://www.smppcube.com >> >> I'm not making any ads on it, just to know if anyone have some feedback >> on this php layer ? >> >> >> >> Best regards >> >> >> > > >
Re: Kannel SMPP integration
Hi, I was the lead developer in this. There are few shortcoming like Operator wise charging isn't there, but operator wise routing is there. The SMPP client layer is excellent. Very high performance but the SMPP server component has few shortcomings like: 1. You cannot control the number of sessions available to smpp client 2. You cannot control the TPS allowed for SMPP client, yes you can achieve this by setting a throughput on your own SMPP. Other than these points the apps are great. Around 25-30 clients are using it worldwide without any complaints. I know it a small number but its a relatively new product. -Cheers Sam On Mon, Nov 9, 2015 at 8:40 PM, info.ubichipwrote: > Hello all, > > > > I was wondering if anyone has tested this SMPP layer on kannel : > > http://www.smppcube.com > > I'm not making any ads on it, just to know if anyone have some feedback on > this php layer ? > > > > Best regards > > >
SQLBOX Compile Issue
Hello, I'm having a problem while compiling Sqlbox, this is the error I'm getting: checking for cfg_create in -lgwlib... no configure: error: Kannel gwlib is required! Now, 1. I've looked everywhere on the internet for solution and proposed solution didn't work, any of them 2. I've installed this many times (more than 15) and I only once encountered the problem. It was about an year ago and I fixed it by either commenting something in configure file or something, I really don't remember also I can't find the proper help. This issue previously occurred to me while setting up on Ubuntu server and again, it happened on Ubuntu. On centos is setting up fine. What might be the fix for it? Please help. -Thanks Sam
Add SMSC without Restarting Kannel
Hey guys, I am stuck in a scenario where I need to add SMSC in kannel without restarting it. Normally Kannel has to be restarted so it can load the new CONF file, which contains newly added SMSC. But is there a way I can do this without restarting kannel and disturbing existing online SMPP connections? I read something called add-smsc in Kannel doc. Is this relevant? But this accepts only single parameter. If anybody knows anything related to this, please help. Any guidance would be highly appreciated -Thanks Sam
Re: Add SMSC without Restarting Kannel
Hi Tapan, thanks for the response buddy. I tried this, it gave me an error Could not add smsc-id `test-route' where test-route was the smsc parameter I passed. Also, where would I pass IP, port, username/password, etc other parameters of SMSC? If you could provide me any link to a thread where the solution is posted, that'll help a lot. -Thanks Sam On Thu, Nov 20, 2014 at 6:08 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: It has been answered many times... Try this... http://x.x.x.x:13008/add-smsc?password=smsc=ABCD http://x.x.x.x:13008/stop-smsc?password=smsc=ABCD http://x.x.x.x:13008/remove-smsc?password=smsc=ABCD On Thu, Nov 20, 2014 at 6:05 PM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Hey guys, I am stuck in a scenario where I need to add SMSC in kannel without restarting it. Normally Kannel has to be restarted so it can load the new CONF file, which contains newly added SMSC. But is there a way I can do this without restarting kannel and disturbing existing online SMPP connections? I read something called add-smsc in Kannel doc. Is this relevant? But this accepts only single parameter. If anybody knows anything related to this, please help. Any guidance would be highly appreciated -Thanks Sam
Re: Add SMSC without Restarting Kannel
Alvaro I tried this also. I added a new SMPP connection in Kannel.conf. I assign smsc-id = test-route Then I hit this URL : http://myserver:14000/add-smsc?password=mypasswordsmsc=test-route I got this response: Could not add smsc-id `test-route' Now if I restart Kannel, the test-route is loaded but I wanna do it without restart, and my research indicates that Kannel has this feature. Am I doing something wrong? Please help. Thanks in advance. -Sam On Thu, Nov 20, 2014 at 7:29 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: You don't pass those parameters in the url. You define this in kannel config file and the call will read them from the main config file and/or included files. Read documentation for details. Regards |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Thu, Nov 20, 2014 at 8:04 AM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Hi Tapan, thanks for the response buddy. I tried this, it gave me an error Could not add smsc-id `test-route' where test-route was the smsc parameter I passed. Also, where would I pass IP, port, username/password, etc other parameters of SMSC? If you could provide me any link to a thread where the solution is posted, that'll help a lot. -Thanks Sam On Thu, Nov 20, 2014 at 6:08 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: It has been answered many times... Try this... http://x.x.x.x:13008/add-smsc?password=smsc=ABCD http://x.x.x.x:13008/stop-smsc?password=smsc=ABCD http://x.x.x.x:13008/remove-smsc?password=smsc=ABCD On Thu, Nov 20, 2014 at 6:05 PM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Hey guys, I am stuck in a scenario where I need to add SMSC in kannel without restarting it. Normally Kannel has to be restarted so it can load the new CONF file, which contains newly added SMSC. But is there a way I can do this without restarting kannel and disturbing existing online SMPP connections? I read something called add-smsc in Kannel doc. Is this relevant? But this accepts only single parameter. If anybody knows anything related to this, please help. Any guidance would be highly appreciated -Thanks Sam
Re: Add SMSC without Restarting Kannel
Alright I did it. Actually I was making a mistake. I defined smsc-admin-id as well so I need to pass that in add-smsc call. Thanks for the help guys. I love this facility, silly that I didn't know this existed for so long . On Thu, Nov 20, 2014 at 7:38 PM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Alvaro I tried this also. I added a new SMPP connection in Kannel.conf. I assign smsc-id = test-route Then I hit this URL : http://myserver:14000/add-smsc?password=mypasswordsmsc=test-route I got this response: Could not add smsc-id `test-route' Now if I restart Kannel, the test-route is loaded but I wanna do it without restart, and my research indicates that Kannel has this feature. Am I doing something wrong? Please help. Thanks in advance. -Sam On Thu, Nov 20, 2014 at 7:29 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: You don't pass those parameters in the url. You define this in kannel config file and the call will read them from the main config file and/or included files. Read documentation for details. Regards |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Thu, Nov 20, 2014 at 8:04 AM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Hi Tapan, thanks for the response buddy. I tried this, it gave me an error Could not add smsc-id `test-route' where test-route was the smsc parameter I passed. Also, where would I pass IP, port, username/password, etc other parameters of SMSC? If you could provide me any link to a thread where the solution is posted, that'll help a lot. -Thanks Sam On Thu, Nov 20, 2014 at 6:08 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: It has been answered many times... Try this... http://x.x.x.x:13008/add-smsc?password=smsc=ABCD http://x.x.x.x:13008/stop-smsc?password=smsc=ABCD http://x.x.x.x:13008/remove-smsc?password=smsc=ABCD On Thu, Nov 20, 2014 at 6:05 PM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Hey guys, I am stuck in a scenario where I need to add SMSC in kannel without restarting it. Normally Kannel has to be restarted so it can load the new CONF file, which contains newly added SMSC. But is there a way I can do this without restarting kannel and disturbing existing online SMPP connections? I read something called add-smsc in Kannel doc. Is this relevant? But this accepts only single parameter. If anybody knows anything related to this, please help. Any guidance would be highly appreciated -Thanks Sam
Re: Kannel 1.5 smsbox error
The file opensmppbox.c has errors. Use the default opensmppbox pkg which came with the Kannel. You can find that in the same folder: *gateway-1.5.0/addons/opensmppbox* On Sat, May 3, 2014 at 3:17 PM, MOSES KARIUKI kariuk...@gmail.com wrote: Thanks a lot Sam, I followed your instructions, and it complied without errors using PGSQL. I now want to configure opensmppbox. However, when i compile using the command *./configure --prefix=/usr/local/kannel --with-kannel-dir=/usr/local/kannel* Downloaded from: *./configure --prefix=/usr/local/kannel --with-kannel-dir=/usr/local/kannel* This is the error I am getting. exit 1; fi opensmppbox.c: In function ‘send_pdu’: opensmppbox.c:622:5: warning: passing argument 1 of ‘smpp_pdu_dump’ from incompatible pointer type [enabled by default] /etc/kannel/include/kannel/gw/smsc/smpp_pdu.h:237:6: note: expected ‘struct SMPP_PDU *’ but argument is of type ‘struct Octstr *’ opensmppbox.c:622:5: error: too many arguments to function ‘smpp_pdu_dump’ /etc/kannel/include/kannel/gw/smsc/smpp_pdu.h:237:6: note: declared here opensmppbox.c: In function ‘handle_pdu’: opensmppbox.c:1513:2: warning: passing argument 1 of ‘smpp_pdu_dump’ from incompatible pointer type [enabled by default] /etc/kannel/include/kannel/gw/smsc/smpp_pdu.h:237:6: note: expected ‘struct SMPP_PDU *’ but argument is of type ‘struct Octstr *’ opensmppbox.c:1513:2: error: too many arguments to function ‘smpp_pdu_dump’ /etc/kannel/include/kannel/gw/smsc/smpp_pdu.h:237:6: note: declared here opensmppbox.c: In function ‘run_smppbox’: opensmppbox.c:2099:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] opensmppbox.c: In function ‘wait_for_connections’: opensmppbox.c:2156:10: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] opensmppbox.c: In function ‘smppboxc_run’: opensmppbox.c:2171:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] opensmppbox.c: In function ‘check_login’: opensmppbox.c:288:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] Thanks, MT On Sat, May 3, 2014 at 7:31 AM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Ok, start again from the begining. Remove all Kannel installations by manually deleting files/binaries. Follow these steps exactly and you'd be good to go: 1) download kannel pkg on server from redmine. Enter this command in terminal *mkdir /downloads* *cd /downloads* *wget http://www.kannel.org/download/1.5.0/gateway-1.5.0.zip http://www.kannel.org/download/1.5.0/gateway-1.5.0.zip * 2) Unzip and install Kannel *cd gateway-1.5.0/* *./configure --prefix=/usr/local/kannel --with-mysql --with-mysql-dir=/usr/local/mysql* *make * *make install* 3) Write config file *cd /usr/local/kannel/sbin/* *vim kannel.conf *-- this will open editor and you can copy paste conf from sample conf file provided in the pkg and edit according to your needs Esc+ :wq +Enter -- Save and exit editor 4) Start Kannel Now since you've created conf file in the same directory as bearerbox and smsbox you won't have to provide any paths. so simply enter *./bearerbox, *press enter, close the terminal and in new terminal session enter *./smsbox* Now this must work for you. Also *Broken Pipe* error logged in your logs means that the connection was broken which often times i've seen when I'm working on my local system and I get disconnected from internet. So you might wanna look into that too. Let me know how it works out. Cheers -Sam On Fri, May 2, 2014 at 8:21 PM, MOSES KARIUKI kariuk...@gmail.comwrote: That's what is baffling me. I am unable to clear them. On Fri, May 2, 2014 at 5:49 PM, Otandeka Simon Peter sotand...@gmail.com wrote: You are almost there. Just clear out those errors and you are good to. P. @sotandeka +256 716 801 124 Senior Programmer in VAS Mobile services, ERP, Health and Web-based Systems. Experienced Linux System Administrator and Open Source Developer. On Fri, May 2, 2014 at 5:45 PM, MOSES KARIUKI kariuk...@gmail.comwrote: Hi All, This is the bearer box log: 2014-05-02 14:41:49 [1944] [0] ERROR: Couldn't open logfile `/var/log/kannel/bearerbox.log'. 2014-05-02 14:41:49 [1944] [0] ERROR: System error 2: No such file or directory 2014-05-02 14:41:49 [1944] [0] INFO: SSL not supported, no SSL initialization done. 2014-05-02 14:41:49 [1944] [0] INFO: HTTP: Opening server at port 13000. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2014-05-02 14:41:49 [1944] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2014-05-02 14:41:49 [1944] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 1944. 2014-05-02 14:41:49 [1944
Kannel restart Issues
Hello everyone, lately I am facing couple of issues with Kannel. There never occurred before, but from past couple of months I am facing this problem: 1.) When I restart Kannel (either from Kannel monitor or status page) it hangs in the middle. I mean when I check the status page, it says Going down and it remains as it is no matter I give it 2-3 hours. 2.) When I restart kannel, bearerbox comes up successfully but often times smsbox doesn't come up automatically. I have to explicitly start SMSbox from terminal. Are these known issues? Anybody else faced these? Any patch available for them? Please advise. Thanks in advance -Sam
Re: Kannel 1.5 smsbox error
Ok, start again from the begining. Remove all Kannel installations by manually deleting files/binaries. Follow these steps exactly and you'd be good to go: 1) download kannel pkg on server from redmine. Enter this command in terminal *mkdir /downloads* *cd /downloads* *wget http://www.kannel.org/download/1.5.0/gateway-1.5.0.zip http://www.kannel.org/download/1.5.0/gateway-1.5.0.zip* 2) Unzip and install Kannel *cd gateway-1.5.0/* *./configure --prefix=/usr/local/kannel --with-mysql --with-mysql-dir=/usr/local/mysql* *make* *make install* 3) Write config file *cd /usr/local/kannel/sbin/* *vim kannel.conf *-- this will open editor and you can copy paste conf from sample conf file provided in the pkg and edit according to your needs Esc+ :wq +Enter -- Save and exit editor 4) Start Kannel Now since you've created conf file in the same directory as bearerbox and smsbox you won't have to provide any paths. so simply enter *./bearerbox, *press enter, close the terminal and in new terminal session enter *./smsbox* Now this must work for you. Also *Broken Pipe* error logged in your logs means that the connection was broken which often times i've seen when I'm working on my local system and I get disconnected from internet. So you might wanna look into that too. Let me know how it works out. Cheers -Sam On Fri, May 2, 2014 at 8:21 PM, MOSES KARIUKI kariuk...@gmail.com wrote: That's what is baffling me. I am unable to clear them. On Fri, May 2, 2014 at 5:49 PM, Otandeka Simon Peter sotand...@gmail.comwrote: You are almost there. Just clear out those errors and you are good to. P. @sotandeka +256 716 801 124 Senior Programmer in VAS Mobile services, ERP, Health and Web-based Systems. Experienced Linux System Administrator and Open Source Developer. On Fri, May 2, 2014 at 5:45 PM, MOSES KARIUKI kariuk...@gmail.comwrote: Hi All, This is the bearer box log: 2014-05-02 14:41:49 [1944] [0] ERROR: Couldn't open logfile `/var/log/kannel/bearerbox.log'. 2014-05-02 14:41:49 [1944] [0] ERROR: System error 2: No such file or directory 2014-05-02 14:41:49 [1944] [0] INFO: SSL not supported, no SSL initialization done. 2014-05-02 14:41:49 [1944] [0] INFO: HTTP: Opening server at port 13000. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2014-05-02 14:41:49 [1944] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2014-05-02 14:41:49 [1944] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 1944. 2014-05-02 14:41:49 [1944] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2014-05-02 14:41:49 [1944] [2] DEBUG: HTTP: Including port 13000, fd 8 for polling in server thread 2014-05-02 14:41:49 [1944] [0] DEBUG: starting smsbox connection module 2014-05-02 14:41:49 [1944] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2014-05-02 14:41:49 [1944] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2014-05-02 14:41:49 [1944] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] INFO: Set SMS resend frequency to 60 seconds. 2014-05-02 14:41:49 [1944] [0] INFO: SMS resend retry set to unlimited. 2014-05-02 14:41:49 [1944] [0] DEBUG: MO concatenated message handling enabled 2014-05-02 14:41:49 [1944] [0] INFO: DLR rerouting for smsc id congoairtel disabled. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 6 (gw/smsc/smsc_smpp.c:io_thread) 2014-05-02 14:41:49 [1944] [6] DEBUG: Thread 6 (gw/smsc/smsc_smpp.c:io_thread) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2014-05-02 14:41:49 [1944] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] DEBUG: starting UDP sender/receiver module 2014-05-02 14:41:49 [1944] [0] INFO: Adding interface * 2014-05-02 14:41:49 [1944] [6] DEBUG: Connecting to 217.113.71.81 2014-05-02 14:41:49 [1944] [0] DEBUG: udpc_create: Bound to UDP 0.0.0.0:9200 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 8 (gw/bb_udp.c:udp_receiver) 2014-05-02 14:41:49 [1944] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 9 (gw/bb_udp.c:udp_sender) 2014-05-02 14:41:49 [1944] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender) maps to pid 1944. 2014-05-02 14:41:49 [1944] [0] DEBUG: udpc_create: Bound to UDP 0.0.0.0:9201 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 10 (gw/bb_udp.c:udp_receiver) 2014-05-02 14:41:49 [1944] [10] DEBUG: Thread 10
Execute Custom URL in Opensmppbox
Hi Everyone, for some application specific reasons, I need to execute a URL in opensmppbox.c. I have included urltrans.h and http.h and I am able to perform my required tasks. The problem is after the URL is executed and response is received, a PANIC occurs which I'm not able to fix. I took help from smsbox.c and http.c files while trying to write the code: Here is my code to execute custom url: opensmppbox.c Octstr *url; List *request_headers; url = octstr_duplicate(msg-sms.dlr_url); request_headers = http_create_empty_headers(); http_header_add(request_headers, User-Agent, GW_NAME / GW_VERSION); if (t != 0) { if (urltrans_send_sender(t)) { http_header_add(request_headers, X-Kannel-From, octstr_get_cstr(msg-sms.receiver)); } } caller = http_caller_create(); http_start_request(caller, HTTP_METHOD_GET, url, request_headers, NULL, 1, http_get_real, NULL); info(0, URL executed successfully); octstr_destroy(url); http_destroy_headers(request_headers); http_caller_destroy(caller); -- Here is the error log: -- 2014-05-01 09:20:06 [8403] [9] PANIC: gwlib/thread.c:125: mutex_lock_real: Assertion `mutex != NULL' failed. 2014-05-01 09:20:06 [8403] [9] PANIC: ./opensmppbox(gw_panic+0x147) [0x445797] 2014-05-01 09:20:06 [8403] [9] PANIC: ./opensmppbox(mutex_lock_real+0x10c) [0x45030c] 2014-05-01 09:20:06 [8403] [9] PANIC: ./opensmppbox(gwlist_append+0x19) [0x444ae9] 2014-05-01 09:20:06 [8403] [9] PANIC: ./opensmppbox() [0x43b371] 2014-05-01 09:20:06 [8403] [9] PANIC: ./opensmppbox() [0x43d3fe] 2014-05-01 09:20:06 [8403] [9] PANIC: /lib64/libpthread.so.0() [0x3b1ea079d1] 2014-05-01 09:20:06 [8403] [9] PANIC: /lib64/libc.so.6(clone+0x6d) [0x3b1e6e8b6d] -- What am I doing wrong? Can anybody provide me any fix to this problem. Also, if you can advise me some other way to simply execute URL that would be great as well. Thanks in advance Sam
DLR-URL debugging
Hi, I need to debug and check the dlr-url function of Kannel. Here is my situation: 1) When I submit sms through Kannel, dlr-url appended in sendsms request, it works fine 2) Earlier I was pushing sms via opensmppbox, there was some issues with deliver_sm so smpp client was not getting the DLR but the DLR url defined in opensmppbox-dlr-table was working fine 3) Now deliver_sm issue is fixed but dlr-url is not working anymore. I need to check why is that happening. Can somebody guide me how to debug this feature? What file to look at? Thanks in advance -Sam
Re: SMS ID and DLR-URL concatenation issue
Thanks a lot Rene. perfect solution. Also I used another gw function to retrieve last item, so that's okay. Thanks again for your help. On Wed, Apr 30, 2014 at 4:33 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Try: octstr_format( http://someurl.com/somescript.php?mobile=%%pdlr=%%dmsgid=%s;, octstr_get_cstr(msgid)); This will replace %%p with %p, %%d with %d and %s with the msgid. Also: I don’t think gw_extract_last() doesn’t exist in the gw library. == Rene *From:* Saurabh Pandey [mailto:sam.it.develo...@gmail.com] *Sent:* dinsdag 29 april 2014 16:55 *To:* Rene Kluwen *Cc:* users@kannel.org *Subject:* Re: SMS ID and DLR-URL concatenation issue Rene my dlr-url contains other parameters also like %d for dlr etc. Also C is supposed to replace %d with passed integer value right? So I want this http://someurl.com/somescript.php?mobile=%pdlr=%dmsgid=i want my id here Now, based on your suggestion I did this: octstr_format(http://someurl.com/somescript.php?mobile=%pdlr=%dmsgid=%s;, octstr_get_cstr(msgid)); compiled just fine, but when got DLR, it panicked: 2014-04-29 11:44:39 [29025] [12] PANIC: octstr_format format string syntax error. What can I do in this situation? Please help. I appreciate your support. On Tue, Apr 29, 2014 at 7:57 PM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Thanks for the valuable guidance Rene. I'll give it a shot and afterwards will look into that memory leak issue. One quick question, above this code the dlr_url is separated by splitting it and picking the first part. Here is the code : parts = octstr_split(msg-sms.dlr_url, octstr_imm(vmsgid=)); msgid = gwlist_extract_first(parts); However, now according to my scenario, I need to extract the last item in the list. I tried this: parts = octstr_split(msg-sms.dlr_url, octstr_imm(vmsgid=)); msgid = gwlist_extract_last(parts); But it throws error: undefined reference to `gwlist_extract_last' Would you happen to know how can I do that, it s a very simple task. Sorry if the question is too stupid :( I'm no C programmer. On Tue, Apr 29, 2014 at 7:23 PM, Rene Kluwen rene.klu...@chimit.nl wrote: I didn’t see the end of your email. Use: msg-sms.dlr_url = octstr_format(http://someurl.com/myscript.php?msgid=%s”, octstr_get_cstr(msgid)); Btw, in the code that you gave below, there’s a memory leak. == Rene *From:* Rene Kluwen [mailto:rene.klu...@chimit.nl] *Sent:* dinsdag 29 april 2014 15:51 *To:* 'Saurabh Pandey'; 'users@kannel.org' *Subject:* RE: SMS ID and DLR-URL concatenation issue Use octstr_format(http://someurl.com/myscript.php?msgid=%s”, msgid); This is if msgid is a string. If it is an integer use %d instead of %s. == Rene *From:* users [mailto:users-boun...@kannel.org users-boun...@kannel.org] *On Behalf Of *Saurabh Pandey *Sent:* dinsdag 29 april 2014 13:41 *To:* users@kannel.org *Subject:* SMS ID and DLR-URL concatenation issue Hi everyone, this should be very simple for an expert C programmer to fix. I am trying to edit source of Opensmppbox.c to suit my requirements, but I am very poor in C. What I had was: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php;); and it was working fine. In my dlr-table this URL was inserted as dlr-url and was fired when I received DLR. Now what I need is: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php*?msgid=* +*msgid*); where msgid is fetched above like this: msgid = generate_smppid(msg,box-version); msgid = octstr_duplicate(msgid); *Issue: *How do I append msgid to my dlr url and pass it. I used strcpy/strcat but it gives me incompatible pointer type errors. Please help me here. Thanks a lot in advance. -Sam
Re: DLR-URL debugging
Okay, that's odd, because the URL i defined was being fired. May be it was a mixup. Here is my setup: SMSC --- Kannel [Bearerbox+smsbox] Sqlbox Opensmppbox --- smpp client Now I submit SMS via sendsms cgi to smsbox. Sqlbox is just for logging of messages sent via opensmppbox. Now opensmppbox has its own dlr-table and that table has a dlr_url field (which stored msgid earlier but now its storing custom urls). Earlier these URLs were being fired and they were carrying out the tasks they were supposed to do. But now they stopped. Anyways, I guess getting into that doesn't seem like a good idea since you just said that opensmppbox doesn't trigger urls. But I need them triggered so I'm gonna have to write it myself. So Rene can you help me find where the code which does this url-translation and trigger dlr-url exists? So I can take a reference. Thanks in advance On Wed, Apr 30, 2014 at 4:34 PM, Rene Kluwen rene.klu...@chimit.nl wrote: opensmppbox doesn’t trigger any dlr-url’s. You need smsbox for that. *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Saurabh Pandey *Sent:* woensdag 30 april 2014 8:26 *To:* users@kannel.org *Subject:* DLR-URL debugging Hi, I need to debug and check the dlr-url function of Kannel. Here is my situation: 1) When I submit sms through Kannel, dlr-url appended in sendsms request, it works fine 2) Earlier I was pushing sms via opensmppbox, there was some issues with deliver_sm so smpp client was not getting the DLR but the DLR url defined in opensmppbox-dlr-table was working fine 3) Now deliver_sm issue is fixed but dlr-url is not working anymore. I need to check why is that happening. Can somebody guide me how to debug this feature? What file to look at? Thanks in advance -Sam
Re: SMS ID and DLR-URL concatenation issue
Actually I needed DLR status to be updated in the same row. Also there are other things like refund credits if invalid number etc. Thigs which are needed for prepaid-accounting. Its not complete yet still few things pending. Its a very application specific modification I'm doing. Here is what I did: 1) Instead of passing msgID i passed hardcoded url 2) When this URL is triggered a bunch of tasks are performed in my application, i thought of using sql-triggers but the task is bit complicated and I'm more comfortable in php In the same function, my solution doesn't work for multipart messages. I'll post it if i get it working. That bit I still need to do. So I have a long way to go. I hope experts here will always be here to help newbies. Thank you On Wed, Apr 30, 2014 at 4:56 PM, spameden spame...@gmail.com wrote: Post your final solution (e.g. some patch in .diff) and what advantages it gives you so others would benefit too :) 2014-04-30 15:22 GMT+04:00 Saurabh Pandey sam.it.develo...@gmail.com: Thanks a lot Rene. perfect solution. Also I used another gw function to retrieve last item, so that's okay. Thanks again for your help. On Wed, Apr 30, 2014 at 4:33 PM, Rene Kluwen rene.klu...@chimit.nlwrote: Try: octstr_format( http://someurl.com/somescript.php?mobile=%%pdlr=%%dmsgid=%s;, octstr_get_cstr(msgid)); This will replace %%p with %p, %%d with %d and %s with the msgid. Also: I don’t think gw_extract_last() doesn’t exist in the gw library. == Rene *From:* Saurabh Pandey [mailto:sam.it.develo...@gmail.com] *Sent:* dinsdag 29 april 2014 16:55 *To:* Rene Kluwen *Cc:* users@kannel.org *Subject:* Re: SMS ID and DLR-URL concatenation issue Rene my dlr-url contains other parameters also like %d for dlr etc. Also C is supposed to replace %d with passed integer value right? So I want this http://someurl.com/somescript.php?mobile=%pdlr=%dmsgid=i want my id here Now, based on your suggestion I did this: octstr_format( http://someurl.com/somescript.php?mobile=%pdlr=%dmsgid=%s;, octstr_get_cstr(msgid)); compiled just fine, but when got DLR, it panicked: 2014-04-29 11:44:39 [29025] [12] PANIC: octstr_format format string syntax error. What can I do in this situation? Please help. I appreciate your support. On Tue, Apr 29, 2014 at 7:57 PM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Thanks for the valuable guidance Rene. I'll give it a shot and afterwards will look into that memory leak issue. One quick question, above this code the dlr_url is separated by splitting it and picking the first part. Here is the code : parts = octstr_split(msg-sms.dlr_url, octstr_imm(vmsgid=)); msgid = gwlist_extract_first(parts); However, now according to my scenario, I need to extract the last item in the list. I tried this: parts = octstr_split(msg-sms.dlr_url, octstr_imm(vmsgid=)); msgid = gwlist_extract_last(parts); But it throws error: undefined reference to `gwlist_extract_last' Would you happen to know how can I do that, it s a very simple task. Sorry if the question is too stupid :( I'm no C programmer. On Tue, Apr 29, 2014 at 7:23 PM, Rene Kluwen rene.klu...@chimit.nl wrote: I didn’t see the end of your email. Use: msg-sms.dlr_url = octstr_format( http://someurl.com/myscript.php?msgid=%s”, octstr_get_cstr(msgid)); Btw, in the code that you gave below, there’s a memory leak. == Rene *From:* Rene Kluwen [mailto:rene.klu...@chimit.nl] *Sent:* dinsdag 29 april 2014 15:51 *To:* 'Saurabh Pandey'; 'users@kannel.org' *Subject:* RE: SMS ID and DLR-URL concatenation issue Use octstr_format(http://someurl.com/myscript.php?msgid=%s”, msgid); This is if msgid is a string. If it is an integer use %d instead of %s. == Rene *From:* users [mailto:users-boun...@kannel.orgusers-boun...@kannel.org] *On Behalf Of *Saurabh Pandey *Sent:* dinsdag 29 april 2014 13:41 *To:* users@kannel.org *Subject:* SMS ID and DLR-URL concatenation issue Hi everyone, this should be very simple for an expert C programmer to fix. I am trying to edit source of Opensmppbox.c to suit my requirements, but I am very poor in C. What I had was: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php;); and it was working fine. In my dlr-table this URL was inserted as dlr-url and was fired when I received DLR. Now what I need is: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php *?msgid=*+*msgid*); where msgid is fetched above like this: msgid = generate_smppid(msg,box-version); msgid = octstr_duplicate(msgid); *Issue: *How do I append msgid to my dlr url and pass it. I used strcpy/strcat but it gives me incompatible pointer type errors. Please help me here. Thanks a lot in advance. -Sam
Re: Opensmppbox Panic
Solved: Just pass a proper Octet string: msgid = *octstr_duplicate*(gwlist_get(parts,gwlist_len(parts)-1)); On Wed, Apr 30, 2014 at 6:37 AM, Saurabh Pandey sam.it.develo...@gmail.comwrote: Hi, please anyone help me. I've tried everything, studied about Octet string, used all functions, this isn't getting fixed. According to the Logs,the problem seems to be: *ostr-data[ostr-len] == '\0'' failed* which I understood that last char of the octet string should be \0. I've tried everything but I'm not able to fix this. C experts, Kannel experts please help me here. Thanks in advance On Wed, Apr 30, 2014 at 2:53 AM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Hi, I have this setup: SMSC-Bearerbox - Sqlbox --Opensmppbox - SMPP client Everything runs fine untill Opensmppbox send deliver_sm to smpp client. It crashes with following error in the log: - 2014-04-29 18:05:30 [10020] [1] PANIC: gwlib/octstr.c:2509: seems_valid_real: Assertion `ostr-data[ostr-len] == '\0'' failed. (Called from opensmppbox.c:828:msg_to_pdu.) 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox(gw_panic+0x147) [0x441527] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x44255b] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox(octstr_duplicate_real+0x2e) [0x4459fe] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40c1fc] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40f391] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x43918e] 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libpthread.so.0() [0x3b1ea079d1] 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libc.so.6(clone+0x6d) [0x3b1e6e8b6d] - I inspected the line number mentioned and found this line: pdu-u.deliver_sm.receipted_message_id = octstr_duplicate(msgid); Now I have played around with the field msgid. Originally it was: msgid = gwlist_extract_first(parts); /* extracting first item */ and I changed it to: msgid = gwlist_get(parts,gwlist_len(parts)-1); /* extracting last item */ Now I don't think return type of the functions are different to in both cases msgid must be of same type. I fail to understand why the error is thrown. I've seen this error in the mail-archives also but couldn't find the solution. I'd appreciate any help. Thanks in advance. -Sam
Re: DLR-URL debugging
Hi Rene, I have a very simple question. How do I execute a URL. I have did everything but if I use Kannel functions (from gwlib/http.h) it results in panic which I can't seem to trace. I guess I could use libCurl but I don't want to include anything. When Kannel is already using its functions to trigger URL, I think I should utilize it. So my final question is: how do I execute a URL? My Hints: I think http_get_real(), http_start_request() are the way to go but they have so many parameters and all those pointers and pointer to pointers really confuse me. I want a simple URL trigger. Can you please guide me. Thanks for all your help. On Wed, Apr 30, 2014 at 5:00 PM, Saurabh Pandey sam.it.develo...@gmail.comwrote: Okay, that's odd, because the URL i defined was being fired. May be it was a mixup. Here is my setup: SMSC --- Kannel [Bearerbox+smsbox] Sqlbox Opensmppbox --- smpp client Now I submit SMS via sendsms cgi to smsbox. Sqlbox is just for logging of messages sent via opensmppbox. Now opensmppbox has its own dlr-table and that table has a dlr_url field (which stored msgid earlier but now its storing custom urls). Earlier these URLs were being fired and they were carrying out the tasks they were supposed to do. But now they stopped. Anyways, I guess getting into that doesn't seem like a good idea since you just said that opensmppbox doesn't trigger urls. But I need them triggered so I'm gonna have to write it myself. So Rene can you help me find where the code which does this url-translation and trigger dlr-url exists? So I can take a reference. Thanks in advance On Wed, Apr 30, 2014 at 4:34 PM, Rene Kluwen rene.klu...@chimit.nlwrote: opensmppbox doesn’t trigger any dlr-url’s. You need smsbox for that. *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Saurabh Pandey *Sent:* woensdag 30 april 2014 8:26 *To:* users@kannel.org *Subject:* DLR-URL debugging Hi, I need to debug and check the dlr-url function of Kannel. Here is my situation: 1) When I submit sms through Kannel, dlr-url appended in sendsms request, it works fine 2) Earlier I was pushing sms via opensmppbox, there was some issues with deliver_sm so smpp client was not getting the DLR but the DLR url defined in opensmppbox-dlr-table was working fine 3) Now deliver_sm issue is fixed but dlr-url is not working anymore. I need to check why is that happening. Can somebody guide me how to debug this feature? What file to look at? Thanks in advance -Sam
SMS ID and DLR-URL concatenation issue
Hi everyone, this should be very simple for an expert C programmer to fix. I am trying to edit source of Opensmppbox.c to suit my requirements, but I am very poor in C. What I had was: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php;); and it was working fine. In my dlr-table this URL was inserted as dlr-url and was fired when I received DLR. Now what I need is: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php*?msgid=*+ *msgid*); where msgid is fetched above like this: msgid = generate_smppid(msg,box-version); msgid = octstr_duplicate(msgid); *Issue: *How do I append msgid to my dlr url and pass it. I used strcpy/strcat but it gives me incompatible pointer type errors. Please help me here. Thanks a lot in advance. -Sam
Re: SMS ID and DLR-URL concatenation issue
Thanks for the valuable guidance Rene. I'll give it a shot and afterwards will look into that memory leak issue. One quick question, above this code the dlr_url is separated by splitting it and picking the first part. Here is the code : parts = octstr_split(msg-sms.dlr_url, octstr_imm(vmsgid=)); msgid = gwlist_extract_first(parts); However, now according to my scenario, I need to extract the last item in the list. I tried this: parts = octstr_split(msg-sms.dlr_url, octstr_imm(vmsgid=)); msgid = gwlist_extract_last(parts); But it throws error: undefined reference to `gwlist_extract_last' Would you happen to know how can I do that, it s a very simple task. Sorry if the question is too stupid :( I'm no C programmer. On Tue, Apr 29, 2014 at 7:23 PM, Rene Kluwen rene.klu...@chimit.nl wrote: I didn’t see the end of your email. Use: msg-sms.dlr_url = octstr_format(http://someurl.com/myscript.php?msgid=%s”, octstr_get_cstr(msgid)); Btw, in the code that you gave below, there’s a memory leak. == Rene *From:* Rene Kluwen [mailto:rene.klu...@chimit.nl] *Sent:* dinsdag 29 april 2014 15:51 *To:* 'Saurabh Pandey'; 'users@kannel.org' *Subject:* RE: SMS ID and DLR-URL concatenation issue Use octstr_format(http://someurl.com/myscript.php?msgid=%s”, msgid); This is if msgid is a string. If it is an integer use %d instead of %s. == Rene *From:* users [mailto:users-boun...@kannel.org users-boun...@kannel.org] *On Behalf Of *Saurabh Pandey *Sent:* dinsdag 29 april 2014 13:41 *To:* users@kannel.org *Subject:* SMS ID and DLR-URL concatenation issue Hi everyone, this should be very simple for an expert C programmer to fix. I am trying to edit source of Opensmppbox.c to suit my requirements, but I am very poor in C. What I had was: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php;); and it was working fine. In my dlr-table this URL was inserted as dlr-url and was fired when I received DLR. Now what I need is: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php*?msgid=* +*msgid*); where msgid is fetched above like this: msgid = generate_smppid(msg,box-version); msgid = octstr_duplicate(msgid); *Issue: *How do I append msgid to my dlr url and pass it. I used strcpy/strcat but it gives me incompatible pointer type errors. Please help me here. Thanks a lot in advance. -Sam
Re: SMS ID and DLR-URL concatenation issue
Rene my dlr-url contains other parameters also like %d for dlr etc. Also C is supposed to replace %d with passed integer value right? So I want this http://someurl.com/somescript.php?mobile=%pdlr=%dmsgid=i want my id here Now, based on your suggestion I did this: octstr_format(http://someurl.com/somescript.php?mobile=%pdlr=%dmsgid=%s;, octstr_get_cstr(msgid)); compiled just fine, but when got DLR, it panicked: 2014-04-29 11:44:39 [29025] [12] PANIC: octstr_format format string syntax error. What can I do in this situation? Please help. I appreciate your support. On Tue, Apr 29, 2014 at 7:57 PM, Saurabh Pandey sam.it.develo...@gmail.comwrote: Thanks for the valuable guidance Rene. I'll give it a shot and afterwards will look into that memory leak issue. One quick question, above this code the dlr_url is separated by splitting it and picking the first part. Here is the code : parts = octstr_split(msg-sms.dlr_url, octstr_imm(vmsgid=)); msgid = gwlist_extract_first(parts); However, now according to my scenario, I need to extract the last item in the list. I tried this: parts = octstr_split(msg-sms.dlr_url, octstr_imm(vmsgid=)); msgid = gwlist_extract_last(parts); But it throws error: undefined reference to `gwlist_extract_last' Would you happen to know how can I do that, it s a very simple task. Sorry if the question is too stupid :( I'm no C programmer. On Tue, Apr 29, 2014 at 7:23 PM, Rene Kluwen rene.klu...@chimit.nlwrote: I didn’t see the end of your email. Use: msg-sms.dlr_url = octstr_format(http://someurl.com/myscript.php?msgid=%s”, octstr_get_cstr(msgid)); Btw, in the code that you gave below, there’s a memory leak. == Rene *From:* Rene Kluwen [mailto:rene.klu...@chimit.nl] *Sent:* dinsdag 29 april 2014 15:51 *To:* 'Saurabh Pandey'; 'users@kannel.org' *Subject:* RE: SMS ID and DLR-URL concatenation issue Use octstr_format(http://someurl.com/myscript.php?msgid=%s”, msgid); This is if msgid is a string. If it is an integer use %d instead of %s. == Rene *From:* users [mailto:users-boun...@kannel.org users-boun...@kannel.org] *On Behalf Of *Saurabh Pandey *Sent:* dinsdag 29 april 2014 13:41 *To:* users@kannel.org *Subject:* SMS ID and DLR-URL concatenation issue Hi everyone, this should be very simple for an expert C programmer to fix. I am trying to edit source of Opensmppbox.c to suit my requirements, but I am very poor in C. What I had was: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php;); and it was working fine. In my dlr-table this URL was inserted as dlr-url and was fired when I received DLR. Now what I need is: msg-sms.dlr_url = octstr_create(http://someurl.com/myscript.php *?msgid=*+*msgid*); where msgid is fetched above like this: msgid = generate_smppid(msg,box-version); msgid = octstr_duplicate(msgid); *Issue: *How do I append msgid to my dlr url and pass it. I used strcpy/strcat but it gives me incompatible pointer type errors. Please help me here. Thanks a lot in advance. -Sam
Opensmppbox Panic
Hi, I have this setup: SMSC-Bearerbox - Sqlbox --Opensmppbox - SMPP client Everything runs fine untill Opensmppbox send deliver_sm to smpp client. It crashes with following error in the log: - 2014-04-29 18:05:30 [10020] [1] PANIC: gwlib/octstr.c:2509: seems_valid_real: Assertion `ostr-data[ostr-len] == '\0'' failed. (Called from opensmppbox.c:828:msg_to_pdu.) 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox(gw_panic+0x147) [0x441527] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x44255b] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox(octstr_duplicate_real+0x2e) [0x4459fe] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40c1fc] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40f391] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x43918e] 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libpthread.so.0() [0x3b1ea079d1] 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libc.so.6(clone+0x6d) [0x3b1e6e8b6d] - I inspected the line number mentioned and found this line: pdu-u.deliver_sm.receipted_message_id = octstr_duplicate(msgid); Now I have played around with the field msgid. Originally it was: msgid = gwlist_extract_first(parts); /* extracting first item */ and I changed it to: msgid = gwlist_get(parts,gwlist_len(parts)-1); /* extracting last item */ Now I don't think return type of the functions are different to in both cases msgid must be of same type. I fail to understand why the error is thrown. I've seen this error in the mail-archives also but couldn't find the solution. I'd appreciate any help. Thanks in advance. -Sam
Re: Opensmppbox Panic
Hi, please anyone help me. I've tried everything, studied about Octet string, used all functions, this isn't getting fixed. According to the Logs,the problem seems to be: *ostr-data[ostr-len] == '\0'' failed* which I understood that last char of the octet string should be \0. I've tried everything but I'm not able to fix this. C experts, Kannel experts please help me here. Thanks in advance On Wed, Apr 30, 2014 at 2:53 AM, Saurabh Pandey sam.it.develo...@gmail.comwrote: Hi, I have this setup: SMSC-Bearerbox - Sqlbox --Opensmppbox - SMPP client Everything runs fine untill Opensmppbox send deliver_sm to smpp client. It crashes with following error in the log: - 2014-04-29 18:05:30 [10020] [1] PANIC: gwlib/octstr.c:2509: seems_valid_real: Assertion `ostr-data[ostr-len] == '\0'' failed. (Called from opensmppbox.c:828:msg_to_pdu.) 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox(gw_panic+0x147) [0x441527] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x44255b] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox(octstr_duplicate_real+0x2e) [0x4459fe] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40c1fc] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x40f391] 2014-04-29 18:05:30 [10020] [1] PANIC: ./opensmppbox() [0x43918e] 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libpthread.so.0() [0x3b1ea079d1] 2014-04-29 18:05:30 [10020] [1] PANIC: /lib64/libc.so.6(clone+0x6d) [0x3b1e6e8b6d] - I inspected the line number mentioned and found this line: pdu-u.deliver_sm.receipted_message_id = octstr_duplicate(msgid); Now I have played around with the field msgid. Originally it was: msgid = gwlist_extract_first(parts); /* extracting first item */ and I changed it to: msgid = gwlist_get(parts,gwlist_len(parts)-1); /* extracting last item */ Now I don't think return type of the functions are different to in both cases msgid must be of same type. I fail to understand why the error is thrown. I've seen this error in the mail-archives also but couldn't find the solution. I'd appreciate any help. Thanks in advance. -Sam
SQLBOX :: msg id in DLR-URL
Hi everyone, does anybody noticed that in SQLbox log table, msg ID is stored in the field named as dlr_url? I have a following setup: SMSC --bearerbox---Sqlbox---Opensmppbox---SMPP CLient Now the problem is in Sqlbox, msg ID is stored as dlr_url and same is passed in dlr_url field of opensmppbox-dlr-table. So if I need to use Dlr url, I can't. To work around I tried altering the source code but its throwing out weird errors. What I need is: 1) msg id must be stored in ID field (currently storing null) 2) I want my own DLR-url to be stored in dlr_url field, i wouldn't mind if its hard-coded Any suggestions?
OpenSMPPBox :: SMS ID issue
Hi everyone, I have the following setup: SMSC bearerbox Sqlbox Opensmppbox- smpp client Now I have done some changes in source of OpenSMppbox and there is one issue that I can't seem to understand. DLRs are checked using msg ID. Now I am trying to fetch msg id from msg object but I am getting garbage value. The weird part is that when I dump the msg object I am getting the msg id in there. How do i fetch it am I making some logical mistake? Here is the code I've written: opensmppbox: line 725 info(0, received msg dumping manually by sam); msg_dump(msg, 0); info(0, msg id: %S,msg-sms.id); The output I'm getting in the logs is: -- 2014-04-28 11:43:58 [27013] [9] INFO: received msg dumping manually by sam 2014-04-28 11:43:58 [27013] [9] DEBUG: Msg object at 0x7f25d80039e0: 2014-04-28 11:43:58 [27013] [9] DEBUG: type: sms 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.sender: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8003b60: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 8 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 9 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 54 45 53 54 20 53 4d 53 TEST SMS 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.receiver: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8003b90: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 10 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 11 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 39 30 30 31 38 35 33 33 39 39 *90018X* 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.udhdata: 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.msgdata: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8003db0: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 112 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 113 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 69 64 3a 35 39 31 30 37 31 33 39 38 36 39 36 32 id:5910713986962 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 33 38 36 37 35 32 32 20 73 75 62 3a 30 30 31 20 3867522 sub:001 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 64 6c 76 72 64 3a 30 30 30 20 73 75 62 6d 69 74 dlvrd:000 submit 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 20 64 61 74 65 3a 31 34 30 34 32 38 32 30 31 33date:1404282013 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 20 64 6f 6e 65 20 64 61 74 65 3a 31 34 30 34 32done date:14042 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 38 32 30 31 33 20 73 74 61 74 3a 55 4e 44 45 4c 82013 stat:UNDEL 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 49 56 20 65 72 72 3a 30 30 35 20 74 65 78 74 3a IV err:005 text: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.time: 1398696238 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.smsc_id: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8003560: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 8 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 9 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 6d 76 2d 70 72 6f 6d 6f mv-promo 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.smsc_number: 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.foreign_id: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8004200: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 20 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 21 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 35 39 31 30 37 31 33 39 38 36 39 36 32 33 38 36 5910713986962386 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 37 35 32 32 7522 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.service: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8004230: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 8 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 9 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 74 65 73 74 73 6d 70 70 testsmpp 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.account: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8004280: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 5 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 6 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:
Re: OpenSMPPBox :: SMS ID issue
I would really appreciate any help here. This small fix will fix my whole system. Thanks in advance On Mon, Apr 28, 2014 at 9:08 PM, Saurabh Pandey sam.it.develo...@gmail.comwrote: Hi everyone, I have the following setup: SMSC bearerbox Sqlbox Opensmppbox- smpp client Now I have done some changes in source of OpenSMppbox and there is one issue that I can't seem to understand. DLRs are checked using msg ID. Now I am trying to fetch msg id from msg object but I am getting garbage value. The weird part is that when I dump the msg object I am getting the msg id in there. How do i fetch it am I making some logical mistake? Here is the code I've written: opensmppbox: line 725 info(0, received msg dumping manually by sam); msg_dump(msg, 0); info(0, msg id: %S,msg-sms.id); The output I'm getting in the logs is: -- 2014-04-28 11:43:58 [27013] [9] INFO: received msg dumping manually by sam 2014-04-28 11:43:58 [27013] [9] DEBUG: Msg object at 0x7f25d80039e0: 2014-04-28 11:43:58 [27013] [9] DEBUG: type: sms 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.sender: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8003b60: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 8 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 9 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 54 45 53 54 20 53 4d 53 TEST SMS 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.receiver: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8003b90: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 10 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 11 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 39 30 30 31 38 35 33 33 39 39 *90018X* 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.udhdata: 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.msgdata: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8003db0: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 112 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 113 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 69 64 3a 35 39 31 30 37 31 33 39 38 36 39 36 32 id:5910713986962 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 33 38 36 37 35 32 32 20 73 75 62 3a 30 30 31 20 3867522 sub:001 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 64 6c 76 72 64 3a 30 30 30 20 73 75 62 6d 69 74 dlvrd:000 submit 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 20 64 61 74 65 3a 31 34 30 34 32 38 32 30 31 33date:1404282013 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 20 64 6f 6e 65 20 64 61 74 65 3a 31 34 30 34 32done date:14042 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 38 32 30 31 33 20 73 74 61 74 3a 55 4e 44 45 4c 82013 stat:UNDEL 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 49 56 20 65 72 72 3a 30 30 35 20 74 65 78 74 3a IV err:005 text: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.time: 1398696238 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.smsc_id: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8003560: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 8 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 9 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 6d 76 2d 70 72 6f 6d 6f mv-promo 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.smsc_number: 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.foreign_id: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8004200: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 20 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 21 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 35 39 31 30 37 31 33 39 38 36 39 36 32 33 38 36 5910713986962386 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 37 35 32 32 7522 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.service: 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string at 0x7f25d8004230: 2014-04-28 11:43:58 [27013] [9] DEBUG:len: 8 2014-04-28 11:43:58 [27013] [9] DEBUG:size: 9 2014-04-28 11:43:58 [27013] [9] DEBUG:immutable: 0 2014-04-28 11:43:58 [27013] [9] DEBUG:data: 74 65 73 74 73 6d 70 70 testsmpp 2014-04-28 11:43:58 [27013] [9] DEBUG: Octet string dump ends. 2014-04-28 11:43:58 [27013] [9] DEBUG: sms.account
OpenSMPPBox: DLR Routing to connected SMPP client
Hi, I am stuck in a problem which seems to have a simple solution. Here is my system: SMSC---Kannel---Sqlbox---OpenSMPPbox---SMPP Client Now when SMPP client submits a message, it only gets the intermediate DLR i.e. 8 (Submitted to SMSC). It never receives the final DLR. But when I send SMS from Kannel, I get full DLR (1-delivered). I'm not able to reach a solution. What could be the possible reasons? Anybody knows some fix or suggestion that I could try? Note: There is one line in the Bearerbox log which seems kinda suspicious. *INFO: DLR rerouting for smsc id my-smsc disabled.* If this is the reason, I didn't find anywhere how to enable DLR rerouting for a particular SMSC. Please help me here. I appreciate your support -Thanks in advance Sam
Re: sms_type in SQLBOX
Thanks for the reply Ali. The guy is too reluctant to do that. He's not giving me access and tells me that he is using the same setting he uses for his other systems and also there are not much tweaking options. Anyways, thanks for the guidance, I'll poke him more about this. Also do you happen to have any idea about the sms_type variable? The guide says put 2, when I test using Kannel as client it puts 2, but when this customer did some tests using Ozeki it put 3 in this field. On Wed, Apr 23, 2014 at 10:46 PM, Ali Ansari mydi...@gmail.com wrote: It's your customer's side. Have him play around with Ozeki SMPP Provider setting. There are several options in each of ozeki smpp provider settings tab that could cause this. From kannel to ozeki? It's usually the other way... -- Kind Regards, Ali Ansari Sent from my mobile device. On 23 April 2014 16:39:20 BST, Saurabh Pandey sam.it.develo...@gmail.com wrote: Hi, I need a little help. I have setup the following system: SMSC SMS app (Bearerbox+Sqlbox+Opensmppbox) --- SMPP client (Kannel) Now for aroung a month it was working fine. Now the customer switched Kannel SMPP client to Ozeki. Now when the client is submitting SMS, he is not receiving DLR. What could be the possible reasons? The one thing which looks suspicious is SMS_TYPE saved in sent_sms table in SQLBOX. When customer used Kannel as SMPP client, sms_type was being entered 2 (as suggested in SQLBOX documentation), but now its coming as 3. What is the purpose of this field and what does the value 3 means? I appreciate any help. Thanks Sam
Opensmppbox issue: NACK/No SMSC
Hi, I am submitting SMS from Kannel based SMPP client to a different server having kannel based setup+opensmppbox+sqlbox stack. The SMS is always getting REJECTED. The issuea are: 1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC and then rejecting it 2.) SQLBOX shows no activity except an error: sql_id cannot be null I have this setup SMSC--- BB --- SQLBOX Opensmppbox --- SMPP client // HERE ARE THE CONFIG FILES-// //Kannel.conf group=core admin-port = 14000 smsbox-port = 13001 admin-password = sam status-password = log-file = /var/log/kannel/kannel.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = kannel.store dlr-storage = mysql #- # SMSC CONNECTIONS group=smsc smsc = smpp smsc-id = Promotional host = xxx.xx.xxx.xxx port = smsc-username = x smsc-password = x system-type = VMA source-addr-ton = 0 source-addr-npi = 0 dest-addr-ton = 0 dest-addr-npi = 0 allowed-smsc-id = Promotional transceiver-mode = true receive-port = #- # SMSBOX SETUP group=smsbox smsbox-id = main-box bearerbox-host = 127.0.0.1 sendsms-port = 14014 global-sender = 14014 log-file = /tmp/smsbox.log access-log = /tmp/access.log group=smsbox-route smsbox-id = smppclient smsc-id = Promotional #- # SEND-SMS USERS group=sendsms-user username = sam password = sam max-messages = 5 concatenation = true #- # SERVICES group=sms-service keyword = nop text = You asked nothing and I did it! group=sms-service keyword = default get-url = http://domain.com/index.php?senderid=%Pphone=%preply=%asmscid=%i; max-messages = 0 group = mysql-connection id = mydlr host = localhost username = _sam password = database = _xxx max-connections = 5 group = dlr-db id = mydlr table = sc_kannel_dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc // Opensmppbox.conf group = core dlr-storage = mysql group = opensmppbox opensmppbox-id = nvsmpp opensmppbox-port = 2345 bearerbox-host = localhost bearerbox-port = 13014 use-systemid-as-smsboxid = true log-file = /var/log/smpp/smppbox.log our-system-id = VSMSC smpp-logins = smpplogins.txt group = mysql-connection id = mydlr host = localhost username = _xxx password = database = _xxx #DLR Table Structure group = dlr-db id = mydlr table = sc_smpp_dlr field-smsc = smsc field-timestamp = timestamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id // SQLbox.conf group = sqlbox id = sqlbox-db smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13014 smsbox-port-ssl = false sql-log-table = sc_sqlbox_log sql-insert-table = sc_smpp_incoming log-file = /var/log/nvsmpp/test_smpp/sqlbox.log log-level = 0 group = mysql-connection id = sqlbox-db host = localhost username = x_xxx password = xxx database = _ # you can increase this upon a higher load max-connections = 5 // SMPPlogins.txt file smppclient goodsmpp testsmpp *.*.*.* Now I've done everything as directed but still, its not working. Here is what I got from SMPPBOXLOG file //---SMPP PDU DUMP- 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP[smppclient]: Got PDU: 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP PDU 0x7f9874001380 dump: 2013-09-28 02:14:17 [2578] [11] DEBUG: type_name: submit_sm 2013-09-28 02:14:17 [2578] [11] DEBUG: command_id: 4 = 0x0004 2013-09-28 02:14:17 [2578] [11] DEBUG: command_status: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: sequence_number: 2377 = 0x0949 2013-09-28 02:14:17 [2578] [11] DEBUG: service_type: NULL 2013-09-28 02:14:17 [2578] [11] DEBUG: source_addr_ton: 5 = 0x0005 2013-09-28 02:14:17 [2578] [11] DEBUG: source_addr_npi: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: source_addr: OPAUTO 2013-09-28 02:14:17 [2578] [11] DEBUG: dest_addr_ton: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: dest_addr_npi: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: destination_addr: 9694304016 2013-09-28 02:14:17 [2578] [11] DEBUG: esm_class: 3 = 0x0003 2013-09-28 02:14:17 [2578] [11] DEBUG: protocol_id: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: priority_flag: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: schedule_delivery_time: NULL 2013-09-28 02:14:17 [2578] [11] DEBUG: validity_period: NULL 2013-09-28 02:14:17 [2578] [11] DEBUG: registered_delivery: 1 = 0x0001 2013-09-28 02:14:17 [2578] [11] DEBUG: replace_if_present_flag: 0 = 0x 2013-09-28 02:14:17 [2578]
Re: Opensmppbox issue: NACK/No SMSC
Hi, thanks for the reply. But I want different smsc routing for different smpp clients. If i add route-to-smsc, wouldn't that direct all traffic to a single smsc? On Sat, Sep 28, 2013 at 1:50 PM, Minh Tuan handsam...@gmail.com wrote: You should add into your Opensmppbox.conf on Kannel server: route-to-smsc = Promotional Try to submit another message and paste the bearerbox-asscess.log of Kannel server here for more information. Thank you. Brs, Tuan. -- Message: 2 Date: Sat, 28 Sep 2013 12:49:47 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: users@kannel.org Subject: Opensmppbox issue: NACK/No SMSC Message-ID: cahipy2xp1-upxqd_0bt-y4efsv3xqqu2hvg9ro7-lu6qzav...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi, I am submitting SMS from Kannel based SMPP client to a different server having kannel based setup+opensmppbox+sqlbox stack. The SMS is always getting REJECTED. The issuea are: 1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC and then rejecting it 2.) SQLBOX shows no activity except an error: sql_id cannot be null I have this setup SMSC--- BB --- SQLBOX Opensmppbox --- SMPP client // HERE ARE THE CONFIG FILES-// //Kannel.conf group=core admin-port = 14000 smsbox-port = 13001 admin-password = sam status-password = log-file = /var/log/kannel/kannel.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = kannel.store dlr-storage = mysql #- # SMSC CONNECTIONS group=smsc smsc = smpp smsc-id = Promotional host = xxx.xx.xxx.xxx port = smsc-username = x smsc-password = x system-type = VMA source-addr-ton = 0 source-addr-npi = 0 dest-addr-ton = 0 dest-addr-npi = 0 allowed-smsc-id = Promotional transceiver-mode = true receive-port = #- # SMSBOX SETUP group=smsbox smsbox-id = main-box bearerbox-host = 127.0.0.1 sendsms-port = 14014 global-sender = 14014 log-file = /tmp/smsbox.log access-log = /tmp/access.log group=smsbox-route smsbox-id = smppclient smsc-id = Promotional #- # SEND-SMS USERS group=sendsms-user username = sam password = sam max-messages = 5 concatenation = true #- # SERVICES group=sms-service keyword = nop text = You asked nothing and I did it! group=sms-service keyword = default get-url = http://domain.com/index.php?senderid=%Pphone=%preply=%asmscid=%i; max-messages = 0 group = mysql-connection id = mydlr host = localhost username = _sam password = database = _xxx max-connections = 5 group = dlr-db id = mydlr table = sc_kannel_dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc // Opensmppbox.conf group = core dlr-storage = mysql group = opensmppbox opensmppbox-id = nvsmpp opensmppbox-port = 2345 bearerbox-host = localhost bearerbox-port = 13014 use-systemid-as-smsboxid = true log-file = /var/log/smpp/smppbox.log our-system-id = VSMSC smpp-logins = smpplogins.txt group = mysql-connection id = mydlr host = localhost username = _xxx password = database = _xxx #DLR Table Structure group = dlr-db id = mydlr table = sc_smpp_dlr field-smsc = smsc field-timestamp = timestamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id // SQLbox.conf group = sqlbox id = sqlbox-db smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13014 smsbox-port-ssl = false sql-log-table = sc_sqlbox_log sql-insert-table = sc_smpp_incoming log-file = /var/log/nvsmpp/test_smpp/sqlbox.log log-level = 0 group = mysql-connection id = sqlbox-db host = localhost username = x_xxx password = xxx database = _ # you can increase this upon a higher load max-connections = 5 // SMPPlogins.txt file smppclient goodsmpp testsmpp *.*.*.* Now I've done everything as directed but still, its not working. Here is what I got from SMPPBOXLOG file //---SMPP PDU DUMP- 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP[smppclient]: Got PDU: 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP PDU 0x7f9874001380 dump: 2013-09-28 02:14:17 [2578] [11] DEBUG: type_name: submit_sm 2013-09-28 02:14:17 [2578] [11] DEBUG: command_id: 4 = 0x0004 2013-09-28 02:14:17 [2578] [11] DEBUG: command_status: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: sequence_number: 2377 = 0x0949 2013-09-28 02:14:17 [2578] [11] DEBUG
Re: users Digest, Vol 85, Issue 39
Ok, i see what your point. But I wanted this flow: 1. Client submits SMS to opensmppbox 2. Opensmppbox stores that SMS in mysql db (using sqlbox) 3. Now Sqlbox submits these SMS to bearerbox. So I don't want BB to interact directly with opensmppbox. So all I want is that whenever SMS is received, it should be pushed in MySQL table. I've read many config examples in this mailing list and based on that I've done the aforementioned configuration. But I don't understand why opensmppbox is not passing anything to sqlbox. I am pretty new to opensmppbox and after trying hard for past few days I've come to you guys as last resort. I'd really appreciate if anyone can brief me how to store the SMS in mysql received by opensmppbox. On Sat, Sep 28, 2013 at 3:31 PM, Minh Tuan handsam...@gmail.com wrote: This is another question that is very clear in opensmppbox manual. Refer to it, you absolutely have to use smsc-route to route clients to particular SMSC. Back to your original question, cause you are using allowed-smsc-id = Promotional in your smsc configuration, so if you don't specify smsc in your submissions, BB will not route to this SMSC automatically. On Sat, Sep 28, 2013 at 4:11 PM, users-requ...@kannel.org wrote: Send users mailing list submissions to users@kannel.org To subscribe or unsubscribe via the World Wide Web, visit http://www.kannel.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to users-requ...@kannel.org You can reach the person managing the list at users-ow...@kannel.org When replying, please edit your Subject line so it is more specific than Re: Contents of users digest... Today's Topics: 1. Re: Opensmppbox issue: NACK/No SMSC (Saurabh Pandey) -- Message: 1 Date: Sat, 28 Sep 2013 14:41:21 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: Minh Tuan handsam...@gmail.com Cc: users@kannel.org Subject: Re: Opensmppbox issue: NACK/No SMSC Message-ID: CAHiPY2UYBPgUPNnmziwbpeJq= ywnlgqy+qulr7scet-z1a0...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi, thanks for the reply. But I want different smsc routing for different smpp clients. If i add route-to-smsc, wouldn't that direct all traffic to a single smsc? On Sat, Sep 28, 2013 at 1:50 PM, Minh Tuan handsam...@gmail.com wrote: You should add into your Opensmppbox.conf on Kannel server: route-to-smsc = Promotional Try to submit another message and paste the bearerbox-asscess.log of Kannel server here for more information. Thank you. Brs, Tuan. -- Message: 2 Date: Sat, 28 Sep 2013 12:49:47 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: users@kannel.org Subject: Opensmppbox issue: NACK/No SMSC Message-ID: cahipy2xp1-upxqd_0bt-y4efsv3xqqu2hvg9ro7-lu6qzav...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi, I am submitting SMS from Kannel based SMPP client to a different server having kannel based setup+opensmppbox+sqlbox stack. The SMS is always getting REJECTED. The issuea are: 1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC and then rejecting it 2.) SQLBOX shows no activity except an error: sql_id cannot be null I have this setup SMSC--- BB --- SQLBOX Opensmppbox --- SMPP client // HERE ARE THE CONFIG FILES-// //Kannel.conf group=core admin-port = 14000 smsbox-port = 13001 admin-password = sam status-password = log-file = /var/log/kannel/kannel.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = kannel.store dlr-storage = mysql #- # SMSC CONNECTIONS group=smsc smsc = smpp smsc-id = Promotional host = xxx.xx.xxx.xxx port = smsc-username = x smsc-password = x system-type = VMA source-addr-ton = 0 source-addr-npi = 0 dest-addr-ton = 0 dest-addr-npi = 0 allowed-smsc-id = Promotional transceiver-mode = true receive-port = #- # SMSBOX SETUP group=smsbox smsbox-id = main-box bearerbox-host = 127.0.0.1 sendsms-port = 14014 global-sender = 14014 log-file = /tmp/smsbox.log access-log = /tmp/access.log group=smsbox-route smsbox-id = smppclient smsc-id = Promotional #- # SEND-SMS USERS group=sendsms-user username = sam password = sam max-messages = 5 concatenation = true #- # SERVICES group=sms-service keyword = nop text = You asked nothing and I did it! group=sms-service keyword = default get-url = http://domain.com/index.php?senderid=%Pphone=%preply=%asmscid=%i; max