Re: Routing Failed Error
Thanks for responding. I have the default routing service setup. The database was working fine. My other programs did not go down. On Sat, Sep 17, 2011 at 10:52 AM, George Karagheaur george.karaghe...@gmail.com wrote: Just as idea: maybe there was a problrm with your sql server? or, do you have setup the default routing service? On Fri, Sep 16, 2011 at 1:18 AM, Karan Zaveri karanzav...@gmail.comwrote: Hello All, I have a bearerbox setup with sqlbox for the past few months and everything runs smoothly no issues. Today suddenly Kannel froze and on each message that it was trying to send out it kept on giving a Routing failed, requed error in the logs. The incoming message traffic was working fine but the outgoing had stopped suddenly. From the logs i got more than 500 routing failed errors here is a screenshot http://screencast.com/t/VL8X5OO2jd i then restarted kannel and everything started working properly and it was able to send messages again. What would be the reason that it would suddenly stop sending messages? Thanks for the help.. -- Best regards, George Karagheaur Mob: +79165482960 Skype: george.karagheaur Email/MSN: george.karaghe...@gmail.com
Routing Failed Error
Hello All, I have a bearerbox setup with sqlbox for the past few months and everything runs smoothly no issues. Today suddenly Kannel froze and on each message that it was trying to send out it kept on giving a Routing failed, requed error in the logs. The incoming message traffic was working fine but the outgoing had stopped suddenly. From the logs i got more than 500 routing failed errors here is a screenshot http://screencast.com/t/VL8X5OO2jd i then restarted kannel and everything started working properly and it was able to send messages again. What would be the reason that it would suddenly stop sending messages? Thanks for the help..
I/O Error or other error.
Hello, When trying to connect with SMSC i am getting the following error. 2011-07-07 03:49:34 [22587] [8] ERROR: SMPP[smscMTn]: I/O error or other error. Re-connecting. 2011-07-07 03:49:34 [22587] [8] ERROR: SMPP[smscMTn]: Couldn't connect to SMS center (retrying in 10 seconds). Has anyone faced this problem before? This does not seem to be an error generated because of incorrect login credentials but something else, not sure what is really causing this as the error is very unclear. Karan
unsubscribe address=ka...@itmiracle.us
unsubscribe address=ka...@itmiracle.us
Sqlbox meta-data
Hi All, My SMPP provider requires 2 additional parameters to be passed to them for a message to be successfully routed. I was able to configure the smpp-tlv group for this and the message successfully goes through the bearerbox using the HTTP URL method. However, when I configure the Sqlbox and try to send a message it throws an error. Looking at the logs its clear the reason for this is that the sqlbox is not sending the additional parameters in its command and the SMPP provider is rejecting it because of this. If somebody who has done this before can tell me how to make Sqlbox send additional parameters to the aggregator I would appreciate it. I looked through the userguide documentation and googled for it but cant seem to find a solution. Thank You Karan
RE: Character code conversion
Hi Patrick, Its simple look at the URL Seikath created the charset=%C will return you the character set Kannel is sending back all you need to do then is store that in a variable in your script or just dump all that data in the post/get in an email or something so you can see it. Thats what I did and it works.. heres an example of the dump that I get in an email when a new MO is received by Kannel. Fri Oct 16 18:18:52 2009,552 [32531] DEBUG main - Kannel Parameters:array ( 'source_no' = ***', 'short_message' = 'ISS steve @ 6:18pm', 'operator_id' = 'InstantSolUS', 'receiver' = '69050', 'time' = '2009-10-16 22:18:52', 'charset' = 'UTF-8', 'meta-data' = '?smpp?x=31002', ) Hope that helps.. Karan From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of patrick meye Sent: Friday, October 16, 2009 10:17 AM To: seik...@gmail.com; mailing list kannel Subject: RE: Character code conversion Hi Seikath, That's the same probleme like mine,all you say is exatly what i've done,but i don't know how to know what charset kannel is doing request.Can help me about,just how to know what charset kannel request please.I think that'll help me. Thank you in advance! Date: Fri, 16 Oct 2009 12:21:59 +0300 From: seik...@gmail.com CC: users@kannel.org Subject: Re: Character code conversion What i mean is : 1. set mo-recode=true 2. restart the smsc. 3. in the get-url add the charset code so you will know in what charset kannel is doing the request. example: post-url = http://localhost/smpp.php?from=%pmessage=%areceived=%Tcoding=%ccharset= %Cto=%Psmsc_id=%ikannel_id=%Iudh=%udcs=%mmwi=%Msms-service=%nbinmess =%bbillinfo=%Baccount_id=%f 4. iconv .. Karan Zaveri wrote: Hi Seikath, Thanks for responding but when you say convert the Kannel request from the reported kannel character set do you mean the value set in the alt-character variable? I tried the above and what happens is all characters except the $$ sign shows a weird character and doesn't show up correctly. Thanks for your help. Karan -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of seikath Sent: Friday, October 16, 2009 3:38 AM Cc: users@kannel.org Subject: Re: Character code conversion at the config, set mo-recode=true and then use iconv to convert the kannel request from the reported by kannel charset to the desired one IF the reported charset is not UTF* rcong wrote: Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00 _ Un avatar à votre image ? Créez votre mini-moi ! http://www.ilovemessenger.fr/minimize-me No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/16/09 06:32:00
RE: Character code conversion
I am also looking for a solution for this. Please help.. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of rcong Sent: Thursday, October 15, 2009 8:09 PM To: users@kannel.org Subject: Character code conversion Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger -- View this message in context: http://www.nabble.com/Character-code-conversion-tp25917969p25917969.html Sent from the Kannel - User mailing list archive at Nabble.com. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00
RE: Character code conversion
Hi Seikath, Thanks for responding but when you say convert the Kannel request from the reported kannel character set do you mean the value set in the alt-character variable? I tried the above and what happens is all characters except the $$ sign shows a weird character and doesn't show up correctly. Thanks for your help. Karan -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of seikath Sent: Friday, October 16, 2009 3:38 AM Cc: users@kannel.org Subject: Re: Character code conversion at the config, set mo-recode=true and then use iconv to convert the kannel request from the reported by kannel charset to the desired one IF the reported charset is not UTF* rcong wrote: Hi, Can someone please tell me that how do I convert kannel received text into UTC-8 code? I tried to use ICONV without success. Currently, my geturl receives something like: O%11e%AFef%00+%00y%00o%00u%00r%00+%00m%00e%00s%00s%00a%00g%00e%00+%00r%00e%0 0c%00e%00i%00v%00e%00d%00.%00+%7BI_%85. Is this unicode? Thanks, Roger No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database: 270.14.18/2437 - Release Date: 10/15/09 03:57:00
RE: Binding accounts w/o restarting kannel
Hi Alejandro, Can you please look at the email I sent earlier when you get some time? Thanks Karan From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Alejandro Guerrieri Sent: Tuesday, October 06, 2009 11:22 AM To: Nikos Balkanas Cc: Sujith Venugopal // Viva; Alejandro Guerrieri; users@kannel.org Subject: Re: Binding accounts w/o restarting kannel To clarify, the current CVS already has my patch in place (well, most of it, there's still a part that needs to be properly reviewed and applied, but what I'm explaining below does work already). 1. start-smsc will reload the configuration of an _existing_ smsc from disk and restart it 2. add-smsc will load the configuration of a _new_ smsc from disk and start it. Check the CVS user guide for further details. Regards, Alejandro 2009/10/6 Nikos Balkanas nbalka...@gmail.com Hi, If by binding you mean connect, there is currently limited live support using the HTTP admin interface. You can start/stop SMScs that already exist in the configuration file. Alejandro Guerrieri is working on a more versatile patch that will update the configuration file for smscs on the fly. It will work on completely new (not configured) smscs as well. BR, Nikos - Original Message - From: Sujith Venugopal // Viva mailto:suj...@vivainfomedia.com To: users@kannel.org Sent: Tuesday, October 06, 2009 1:55 PM Subject: Binding accounts w/o restarting kannel Hi, Is there a way to bind the smpp accounts without restarting the kannel. -- If you have any further queries, Please feel free to mail me or contact me on the numbers provided below. Thanks Regards Sujith Venugopal Server Administrator VivaInfomedia Pvt Ltd. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.420 / Virus Database: 270.14.3/2411 - Release Date: 10/06/09 06:50:00
Still Having Multiple Issues..
Hi Guys, Sorry to bother you all again but I am still having few issues. I tried past few days on my own but I can't seem to get around these. I would appreciate any help. Alejandro, I am attaching the logs as you requested last time. Issue #1 The TLV's or the custom var's are not capturing the meta-data. I contacted my SMSC provider and they said they send all relevant data so there is something in the application that needs to work properly. Please check the attached configuration file and the relevant piece of log from the bearerbox. I see this error in the bearerbox may be that is the problem Error SMPP: Optional field (my-custom-var) with invalid length (5) (should be 2) dropped. However if you look at my configuration file I set the length to 2 only so I am not sure why its taking it as 5. Issue #2 When a message is received all characters come in properly except the $ sign it shows some weird star sign with a question mark in it however all other special characters appear fine. I tried all 1,2,3 of alt-charset settings in the config and the result is the same. For this I see another error in the bearerbox log file (attached) 2009-10-05 15:11:43 [13883] [6] ERROR: Failed to convert string from UTF-8 to 1 - probably broken type names. 2009-10-05 15:11:43 [13883] [6] ERROR: Failed to convert msgdata from charset UTF-8 to 1, will send as is. Issue #3 I configured sqlbox and there were no errors however, when a new message comes in sqlbox automatically terminates and closes down. Needless to say it doesn't send any messages that I insert in its send_sms table. I am not sure if this is the right place to discuss this though. Attached with this email you will also find the smsbox log and the config file. Issue #4 Last but not the least suddenly I started getting an error in the response to submit_sm from my SMSC 2009-10-05 15:11:43 [13883] [6] ERROR: SMPP[smsc1]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. You will see this also in the logs. All messages come in properly though. I appreciate you guys taking the time to help with this. Thanks Karan kannel1.conf Description: Binary data bearerbox.log Description: Binary data smsboxlog.log Description: Binary data sqlboxlog.log Description: Binary data sqlbox1.conf Description: Binary data
RE: destination_addr_ton=3 SUBMIT_SM PDU
Yes that’s a variable you can set in your SMSC group. Look at the user guide .I believe the variable is dest-addr-ton similarly there is a source-addr-ton but I believe you wont need it. you might also need to configure the dest-addr-npi according to your SMPP provider’s requirements. Look at the SMSC section for more variables that might be needed.. http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html hope that helps.. Karan From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of waza...@inbox.lv Sent: Wednesday, September 30, 2009 10:19 AM To: users@kannel.org Subject: destination_addr_ton=3 SUBMIT_SM PDU My operator telling me: You can answer on that number AQSnbwehJT7X6WafuQWk (but set: destination_addr_ton=3 SUBMIT_SM PDU) How can i dot it ? No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.113/2399 - Release Date: 09/30/09 10:35:00
RE: Re[2]: TON 1-3
Yes you are going to need the latest CVS version. Look at the documentation it has examples and sample configuration file. From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of waza...@inbox.lv Sent: Tuesday, September 29, 2009 12:34 PM To: Illimar Reinbusch Cc: users@kannel.org Subject: Re[2]: TON 1-3 I read here ddj.co.za/archives/69/extracting-meta-data-from-smpp-tlvs-with-kannel , that i can download latest sources, 1.5 , and there is Meta data variable, which contain all what i need.. or something that.. what do you think ? Tuesday, September 29, 2009, 7:27:16 PM, you wrote: Hi U can add custom LMT SMPP parameters in your config BUT u also will need to add custom PDU to your Kannel and it will require coding and recompiling your kannel. Illimar Hi, Please read Iser's guide about smsbox configuration. Very detailed, contains many examples. BR, Nikos - Original Message - From: mailto:waza...@inbox.lv waza...@inbox.lv To: mailto:nbalka...@gmail.com Nikos Balkanas Cc: mailto:users@kannel.org users@kannel.org Sent: Tuesday, September 29, 2009 7:04 PM Subject: Re[4]: TON 1-3 How it should be ? can you correct my cfg please, i don't understand a bit.. Tuesday, September 29, 2009, 4:57:02 PM, you wrote: Hi, One problem that I see, is that you need to define an smsbox-id in your smsbox group. You reference it in smsbox-route, but you define it nowhere. This will keep all your MOs in Q. BR, Nikos - Original Message - From: mailto:waza...@inbox.lv waza...@inbox.lv To: mailto:sangpr...@gmail.com Willy Cc: mailto:users@kannel.org users@kannel.org Sent: Tuesday, September 29, 2009 4:22 PM Subject: Re[2]: TON 1-3 Yes, here it is (!!! edited): group = core admin-port = 13000 admin-password = !!! admin-deny-ip = *.*.*.* admin-allow-ip = !!! status-password = !!! log-file = /home/m/kannel/logs/kannel.log log-level = 0 access-log = /home/m/kannel/logs/access.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 store-type = file store-location = /home/m/kannel/kannel.store smsbox-port = 13001 group = smsbox-route smsbox-id = smsbox smsc-id = MY_DAMN_OPERATOR!!! shortcode = 12345!!! group = sms-service keyword = default catch-all = true omit-empty = true exec = /etc/lighttpd/php/bin/php /home/m/kannel/sms_forwarder.php %p %P %a %i %I %t %T %d %A %c group = smsc smsc-id = MY_DAMN_OPERATOR!!! smsc = smpp host = !!! port = !!! receive-port = !!! smsc-username = 12345!!! smsc-password = !!! system-type = VMA address-range = group = smsbox bearerbox-host = localhost Tuesday, September 29, 2009, 4:18:21 PM, you wrote: Can you share us your configuration file? Willy Sent from my Sony Ericsson XPERIA� X1. _ From: mailto:waza...@inbox.lv waza...@inbox.lv Sent: 29 September 2009 19:04 To: mailto:users@kannel.org users@kannel.org Subject: TON 1-3 Hello, I'm sending SMS from my mobile phone with text: test , to number: 1234 After i look in my bearerbox, and i'm looking for my mobile phone number, BUT, i don't see it, I only see the following string: AQSnW%2BucTVsllC21NwUI What is it ? How do i tell operator, to send me the mobile phone number, not this strange string: AQSnW%2BucTVsllC21NwUI. Thanks ! -- Best regards, Waza123 mailto:waza...@inbox.lv mailto:waza...@inbox.lv -- Best regards, Waza123 mailto:waza...@inbox.lv mailto:waza...@inbox.lv No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.113/2399 - Release Date: 09/29/09 05:54:00
SMPP TLV Returns Blank
Hi Guys, I did all the changes in the configuration file and configured the smpp tlv group based on Donald's tutorial (Great tutorial btw) and Kannel user guide but not sure if I still did something wrong but the meta-data=%D returns blank and the operator ID nor anything else is returned by Kannel to the php script which is processing the MO's attached is the Kannel configuration file for your review. Please let me know if I did anything wrong. Any help would be appreciated. Thanks Karan kannel1.conf Description: Binary data
RE: Incorrect Operator ID returned
HI Nikos, I am sorry but I don't see the operator id in the PDU returned by mBlox. I am going to try using TLV meta data as others have suggested. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Sunday, September 27, 2009 9:52 AM To: Karan Zaveri Cc: users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, I am sorry, this is not what I was looking for. bb is shorthand for bearerbox. The SMSC PDU should be there. If you could note the operator-id from there. Thanks, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: 'Nikos Balkanas' mailto:nbalka...@gmail.com Cc: users@kannel.org Sent: Sunday, September 27, 2009 4:27 PM Subject: RE: Incorrect Operator ID returned Hmm that might be a bit tough because the PDU shown by the SMSbox is in numbers and at the end where the data is the operator_id shows blank but here's the sample 2009-09-26 08:18:47 [32638] [9] DEBUG: HTTP: Opening connection to `www.instadiumsolutions.com:80' (fd=28). 2009-09-26 08:18:47 [32638] [9] DEBUG: Socket connecting 2009-09-26 08:18:47 [32638] [8] DEBUG: Get info about connecting socket 2009-09-26 08:18:47 [32638] [8] DEBUG: HTTP: Sending request: 2009-09-26 08:18:47 [32638] [8] DEBUG: Octet string at 0x698720: 2009-09-26 08:18:47 [32638] [8] DEBUG: len: 255 2009-09-26 08:18:47 [32638] [8] DEBUG: size: 1024 2009-09-26 08:18:47 [32638] [8] DEBUG: immutable: 0 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 47 45 54 20 2f 73 74 61 67 69 6e 67 5f 6e 65 77 GET /staging_new 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 2f 6d 74 5f 6d 65 73 73 61 67 65 73 2e 70 68 70 /mt_messages.php 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 3f 73 6f 75 72 63 65 5f 6e 6f 3d 31 39 35 34 32 ?source_no=19542 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 33 34 33 33 30 38 26 73 68 6f 72 74 5f 6d 65 73 343308short_mes 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 73 61 67 65 3d 43 6f 6e 74 65 73 74 2b 53 74 65 sage=Contest+Ste 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 76 65 2b 25 43 32 25 41 31 2b 38 25 33 41 31 38 ve+%C2%A1+8%3A18 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 41 4d 26 6f 70 65 72 61 74 6f 72 5f 69 64 3d 26 AMoperator_id= 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 72 65 63 65 69 76 65 72 3d 36 39 30 35 30 26 74 receiver=69050t 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 69 6d 65 3d 32 30 30 39 2d 30 39 2d 32 36 2b 31 ime=2009-09-26+1 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 32 3a 31 38 3a 34 37 20 48 54 54 50 2f 31 2e 31 2:18:47 HTTP/1.1 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 0d 0a 48 6f 73 74 3a 20 77 77 77 2e 69 6e 73 74 ..Host: www.inst 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 61 64 69 75 6d 73 6f 6c 75 74 69 6f 6e 73 2e 63 adiumsolutions.c 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 6f 6d 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 om..Connection: 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 55 73 65 72 keep-alive..User 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 6c 2f 63 -Agent: Kannel/c 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 76 73 2d 32 30 30 39 30 39 32 30 0d 0a 0d 0a vs-20090920 2009-09-26 08:18:47 [32638] [8] DEBUG: Octet string dump ends. 2009-09-26 08:18:50 [32638] [8] DEBUG: HTTP: Status line: HTTP/1.1 200 OK 2009-09-26 08:18:50 [32638] [8] DEBUG: HTTP: Received response: 2009-09-26 08:18:50 [32638] [8] DEBUG: Octet string at 0x68e370: 2009-09-26 08:18:50 [32638] [8] DEBUG: len: 499 2009-09-26 08:18:50 [32638] [8] DEBUG: size: 1024 2009-09-26 08:18:50 [32638] [8] DEBUG: immutable: 0 Do you think the operator is not sending it? I can check with them again. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Sunday, September 27, 2009 9:03 AM To: Karan Zaveri Cc: users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Could you please post PDU returned from bb logs with operatorID in bold? Thanks, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: 'Alejandro Guerrieri' mailto:alejandro.guerri...@gmail.com ; 'Nikos Balkanas' mailto:nbalka...@gmail.com Cc: users@kannel.org Sent: Sunday, September 27, 2009 3:48 PM Subject: RE: Incorrect Operator ID returned Hi Guys, I think I found the piece of code that is responsible for creating this URL data. It's in the gw/urltrans.c file line 495 case 'o': /* account information (may be operator id for aggregators */ if (octstr_len(request-sms.account)) { enc = octstr_duplicate(request-sms.account); octstr_url_encode(enc); octstr_append(result, enc); octstr_destroy(enc); } break; Clearly it is returning the account id I just need to find out where is the sms object initiated
RE: Incorrect Operator ID returned
Thanks. I am using the latest Kannel Snapshot. I will try it out and let you know if it works. From: Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] Sent: Sunday, September 27, 2009 11:26 AM To: Karan Zaveri Cc: Nikos Balkanas; users@kannel.org Subject: Re: Incorrect Operator ID returned Using the meta-data functionality. You need to configure the TLV's and they'll be available as meta-data. You need to use latest CVS, though. 1.4.3 won't cut it. Regards, Alejandro On Sun, Sep 27, 2009 at 2:00 PM, Karan Zaveri ka...@itmiracle.us wrote: Yes I am using mBlox as our aggregator. How do you catch the TLV coming from the aggregator? I am 100% sure mBlox sends that information as I mentioned earlier I was able to catch that using a script we wrote to test. From: Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] Sent: Saturday, September 26, 2009 2:54 PM To: Karan Zaveri Cc: Nikos Balkanas; users@kannel.org Subject: Re: Incorrect Operator ID returned You're using an aggregator right? Maybe they use a TLV to send you the carrier id? Check the documentation or ask your SMSC provider about it. Regards, Alejandro On Sat, Sep 26, 2009 at 7:13 PM, Karan Zaveri ka...@itmiracle.us wrote: Thanks Nikos, I tried that but it didn't work. What I really need is the message sender's Operator's ID which is a number identifying who the operator is like Sprint = 31005, Cingular = 31002 etc. The %o returns the system-type variable from the config file and the %i returns the SMPP hostname which is not what I am looking for. I am not sure if this is a bug in Kannel or some other setting that I need to do. Appreciate your help. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 11:50 AM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Try %i to get the smsc-id. BR, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: users@kannel.org Sent: Saturday, September 26, 2009 4:12 PM Subject: Incorrect Operator ID returned Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/27/09 17:52:00
RE: Incorrect Operator ID returned
Thanks Juan, The mBlox documentation has not changed much since then. I appreciate your help this should solve my issue. Thanks Karan -Original Message- From: Juan Nin [mailto:jua...@gmail.com] Sent: Sunday, September 27, 2009 1:46 PM To: users@kannel.org Cc: Karan Zaveri Subject: Re: Incorrect Operator ID returned As Alejandro already said, you need to use TLVs, and for that you should use the latest CVS version and not 1.4.3 This is probably not the latest mBlox SMPP specs, it's from 2007, but I guess this part has not changed. According to http://data.getafreelancer.com/project/283852/mBlox%20SMPP%20Interface%20Tec hnical%20Manual_v2.3.pdf the operator ID comes on the mblox_operator optional parameter (TLV). On page 23 of that document you got it's description, but you better check the latest mBlox specs just in case. So, first of all download latest CVS snapshot, and read the SMPP optional parameters configuration section. Then check the latest mBlox SMPP specs, and configure all the needed optional parameters accordingly. Regards, Juan On Sun, Sep 27, 2009 at 12:25 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Using the meta-data functionality. You need to configure the TLV's and they'll be available as meta-data. You need to use latest CVS, though. 1.4.3 won't cut it. Regards, Alejandro On Sun, Sep 27, 2009 at 2:00 PM, Karan Zaveri ka...@itmiracle.us wrote: Yes I am using mBlox as our aggregator. How do you catch the TLV coming from the aggregator? I am 100% sure mBlox sends that information as I mentioned earlier I was able to catch that using a script we wrote to test From: Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] Sent: Saturday, September 26, 2009 2:54 PM To: Karan Zaveri Cc: Nikos Balkanas; users@kannel.org Subject: Re: Incorrect Operator ID returned You're using an aggregator right? Maybe they use a TLV to send you the carrier id? Check the documentation or ask your SMSC provider about it. Regards, Alejandro On Sat, Sep 26, 2009 at 7:13 PM, Karan Zaveri ka...@itmiracle.us wrote: Thanks Nikos, I tried that but it didnt work. What I really need is the message senders Operators ID which is a number identifying who the operator is like Sprint = 31005, Cingular = 31002 etc. The %o returns the system-type variable from the config file and the %i returns the SMPP hostname which is not what I am looking for. I am not sure if this is a bug in Kannel or some other setting that I need to do. Appreciate your help. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 11:50 AM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Try %i to get the smsc-id. BR, Nikos - Original Message - From: Karan Zaveri To: users@kannel.org Sent: Saturday, September 26, 2009 4:12 PM Subject: Incorrect Operator ID returned Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 -- Juan Nin 3Cinteractive / Mobilizing Great Brands http://www.3cinteractive.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/27/09 17:52:00
RE: Incorrect Operator ID returned
Thanks Donald, This really helps. Karan From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Donald Jackson Sent: Sunday, September 27, 2009 4:06 PM To: Juan Nin Cc: users@kannel.org Subject: Re: Incorrect Operator ID returned I wrote a tutorial a while back for extracting TLV's using the meta data feature of the latest CVS Kannel. You can see it here: http://www.ddj.co.za/archives/69/extracting-meta-data-from-smpp-tlvs-with-ka nnel Hope that helps you. Cheers, Donald 2009/9/27 Juan Nin jua...@gmail.com As Alejandro already said, you need to use TLVs, and for that you should use the latest CVS version and not 1.4.3 This is probably not the latest mBlox SMPP specs, it's from 2007, but I guess this part has not changed. According to http://data.getafreelancer.com/project/283852/mBlox%20SMPP%20Interface%20Tec hnical%20Manual_v2.3.pdf the operator ID comes on the mblox_operator optional parameter (TLV). On page 23 of that document you got it's description, but you better check the latest mBlox specs just in case. So, first of all download latest CVS snapshot, and read the SMPP optional parameters configuration section. Then check the latest mBlox SMPP specs, and configure all the needed optional parameters accordingly. Regards, Juan On Sun, Sep 27, 2009 at 12:25 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Using the meta-data functionality. You need to configure the TLV's and they'll be available as meta-data. You need to use latest CVS, though. 1.4.3 won't cut it. Regards, Alejandro On Sun, Sep 27, 2009 at 2:00 PM, Karan Zaveri ka...@itmiracle.us wrote: Yes I am using mBlox as our aggregator. How do you catch the TLV coming from the aggregator? I am 100% sure mBlox sends that information as I mentioned earlier I was able to catch that using a script we wrote to test. From: Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] Sent: Saturday, September 26, 2009 2:54 PM To: Karan Zaveri Cc: Nikos Balkanas; users@kannel.org Subject: Re: Incorrect Operator ID returned You're using an aggregator right? Maybe they use a TLV to send you the carrier id? Check the documentation or ask your SMSC provider about it. Regards, Alejandro On Sat, Sep 26, 2009 at 7:13 PM, Karan Zaveri ka...@itmiracle.us wrote: Thanks Nikos, I tried that but it didn't work. What I really need is the message sender's Operator's ID which is a number identifying who the operator is like Sprint = 31005, Cingular = 31002 etc. The %o returns the system-type variable from the config file and the %i returns the SMPP hostname which is not what I am looking for. I am not sure if this is a bug in Kannel or some other setting that I need to do. Appreciate your help. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 11:50 AM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Try %i to get the smsc-id. BR, Nikos - Original Message - From: Karan Zaveri To: users@kannel.org Sent: Saturday, September 26, 2009 4:12 PM Subject: Incorrect Operator ID returned Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 -- Juan Nin 3Cinteractive / Mobilizing Great Brands http://www.3cinteractive.com -- Donald Jackson http://www.thearchitech.com donald(a)thearchitech.com No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/27/09 17:52:00
RE: Incorrect Operator ID returned
Hi Nikos, That's fine np. The Carrier ID is sent out by the aggregator because I was able to get that using another script however, Kannel doesn't seem to recognize it for some reason. I am afraid with the US carriers it wont work the way you described as the numbers keep on changing often. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 2:05 PM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Sorry, I didn't understand what you were asking for. The sender's mobile carrier, is known only to the (sender's) smsc and doesn't reach kannel. However, you can deduce the carrier from your local prefix numbering scheme. I.e. in Greece all 977 mobiles are Cosmote, 979 Vodaphone, etc. (example not necessarily correct). BR, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: 'Nikos Balkanas' mailto:nbalka...@gmail.com ; users@kannel.org Sent: Saturday, September 26, 2009 8:13 PM Subject: RE: Incorrect Operator ID returned Thanks Nikos, I tried that but it didn't work. What I really need is the message sender's Operator's ID which is a number identifying who the operator is like Sprint = 31005, Cingular = 31002 etc. The %o returns the system-type variable from the config file and the %i returns the SMPP hostname which is not what I am looking for. I am not sure if this is a bug in Kannel or some other setting that I need to do. Appreciate your help. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 11:50 AM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Try %i to get the smsc-id. BR, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: users@kannel.org Sent: Saturday, September 26, 2009 4:12 PM Subject: Incorrect Operator ID returned Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00
RE: Incorrect Operator ID returned
Yes I am using mBlox as our aggregator. How do you catch the TLV coming from the aggregator? I am 100% sure mBlox sends that information as I mentioned earlier I was able to catch that using a script we wrote to test. From: Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] Sent: Saturday, September 26, 2009 2:54 PM To: Karan Zaveri Cc: Nikos Balkanas; users@kannel.org Subject: Re: Incorrect Operator ID returned You're using an aggregator right? Maybe they use a TLV to send you the carrier id? Check the documentation or ask your SMSC provider about it. Regards, Alejandro On Sat, Sep 26, 2009 at 7:13 PM, Karan Zaveri ka...@itmiracle.us wrote: Thanks Nikos, I tried that but it didn't work. What I really need is the message sender's Operator's ID which is a number identifying who the operator is like Sprint = 31005, Cingular = 31002 etc. The %o returns the system-type variable from the config file and the %i returns the SMPP hostname which is not what I am looking for. I am not sure if this is a bug in Kannel or some other setting that I need to do. Appreciate your help. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 11:50 AM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Try %i to get the smsc-id. BR, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: users@kannel.org Sent: Saturday, September 26, 2009 4:12 PM Subject: Incorrect Operator ID returned Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00
RE: Incorrect Operator ID returned
Yes we have that its just Kannel is sending out the wrong value. I checked with the operator they said all data we need including the operator Id is being returned in the pdu. From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Sunday, September 27, 2009 6:10 AM To: Karan Zaveri Cc: users@kannel.org; Alejandro Guerrieri Subject: Re: Incorrect Operator ID returned Of course you need to have SMPP SMSc for that to work :-) NIkos - Original Message - From: Alejandro Guerrieri mailto:alejandro.guerri...@gmail.com To: Karan Zaveri mailto:ka...@itmiracle.us Cc: Nikos Balkanas mailto:nbalka...@gmail.com ; users@kannel.org Sent: Saturday, September 26, 2009 9:54 PM Subject: Re: Incorrect Operator ID returned You're using an aggregator right? Maybe they use a TLV to send you the carrier id? Check the documentation or ask your SMSC provider about it. Regards, Alejandro On Sat, Sep 26, 2009 at 7:13 PM, Karan Zaveri ka...@itmiracle.us wrote: Thanks Nikos, I tried that but it didn't work. What I really need is the message sender's Operator's ID which is a number identifying who the operator is like Sprint = 31005, Cingular = 31002 etc. The %o returns the system-type variable from the config file and the %i returns the SMPP hostname which is not what I am looking for. I am not sure if this is a bug in Kannel or some other setting that I need to do. Appreciate your help. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 11:50 AM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Try %i to get the smsc-id. BR, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: users@kannel.org Sent: Saturday, September 26, 2009 4:12 PM Subject: Incorrect Operator ID returned Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00
RE: Incorrect Operator ID returned
Hi Guys, I think I found the piece of code that is responsible for creating this URL data. It's in the gw/urltrans.c file line 495 case 'o': /* account information (may be operator id for aggregators */ if (octstr_len(request-sms.account)) { enc = octstr_duplicate(request-sms.account); octstr_url_encode(enc); octstr_append(result, enc); octstr_destroy(enc); } break; Clearly it is returning the account id I just need to find out where is the sms object initiated and if there was a way to access the other variables available with it. Please let me know if you are aware of it. Thanks Karan From: Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] Sent: Sunday, September 27, 2009 6:34 AM To: Nikos Balkanas Cc: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned According with the configuration file he posted on his first message, he does... Regards, Alejandro 2009/9/27 Nikos Balkanas nbalka...@gmail.com Of course you need to have SMPP SMSc for that to work :-) NIkos - Original Message - From: Alejandro Guerrieri mailto:alejandro.guerri...@gmail.com To: Karan mailto:ka...@itmiracle.us Zaveri Cc: Nikos mailto:nbalka...@gmail.com Balkanas ; users@kannel.org Sent: Saturday, September 26, 2009 9:54 PM Subject: Re: Incorrect Operator ID returned You're using an aggregator right? Maybe they use a TLV to send you the carrier id? Check the documentation or ask your SMSC provider about it. Regards, Alejandro On Sat, Sep 26, 2009 at 7:13 PM, Karan Zaveri ka...@itmiracle.us wrote: Thanks Nikos, I tried that but it didn't work. What I really need is the message sender's Operator's ID which is a number identifying who the operator is like Sprint = 31005, Cingular = 31002 etc. The %o returns the system-type variable from the config file and the %i returns the SMPP hostname which is not what I am looking for. I am not sure if this is a bug in Kannel or some other setting that I need to do. Appreciate your help. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 11:50 AM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Try %i to get the smsc-id. BR, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: users@kannel.org Sent: Saturday, September 26, 2009 4:12 PM Subject: Incorrect Operator ID returned Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00
RE: Incorrect Operator ID returned
Hmm that might be a bit tough because the PDU shown by the SMSbox is in numbers and at the end where the data is the operator_id shows blank but here's the sample 2009-09-26 08:18:47 [32638] [9] DEBUG: HTTP: Opening connection to `www.instadiumsolutions.com:80' (fd=28). 2009-09-26 08:18:47 [32638] [9] DEBUG: Socket connecting 2009-09-26 08:18:47 [32638] [8] DEBUG: Get info about connecting socket 2009-09-26 08:18:47 [32638] [8] DEBUG: HTTP: Sending request: 2009-09-26 08:18:47 [32638] [8] DEBUG: Octet string at 0x698720: 2009-09-26 08:18:47 [32638] [8] DEBUG: len: 255 2009-09-26 08:18:47 [32638] [8] DEBUG: size: 1024 2009-09-26 08:18:47 [32638] [8] DEBUG: immutable: 0 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 47 45 54 20 2f 73 74 61 67 69 6e 67 5f 6e 65 77 GET /staging_new 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 2f 6d 74 5f 6d 65 73 73 61 67 65 73 2e 70 68 70 /mt_messages.php 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 3f 73 6f 75 72 63 65 5f 6e 6f 3d 31 39 35 34 32 ?source_no=19542 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 33 34 33 33 30 38 26 73 68 6f 72 74 5f 6d 65 73 343308short_mes 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 73 61 67 65 3d 43 6f 6e 74 65 73 74 2b 53 74 65 sage=Contest+Ste 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 76 65 2b 25 43 32 25 41 31 2b 38 25 33 41 31 38 ve+%C2%A1+8%3A18 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 41 4d 26 6f 70 65 72 61 74 6f 72 5f 69 64 3d 26 AMoperator_id= 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 72 65 63 65 69 76 65 72 3d 36 39 30 35 30 26 74 receiver=69050t 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 69 6d 65 3d 32 30 30 39 2d 30 39 2d 32 36 2b 31 ime=2009-09-26+1 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 32 3a 31 38 3a 34 37 20 48 54 54 50 2f 31 2e 31 2:18:47 HTTP/1.1 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 0d 0a 48 6f 73 74 3a 20 77 77 77 2e 69 6e 73 74 ..Host: www.inst 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 61 64 69 75 6d 73 6f 6c 75 74 69 6f 6e 73 2e 63 adiumsolutions.c 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 6f 6d 0d 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 om..Connection: 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 55 73 65 72 keep-alive..User 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65 6c 2f 63 -Agent: Kannel/c 2009-09-26 08:18:47 [32638] [8] DEBUG: data: 76 73 2d 32 30 30 39 30 39 32 30 0d 0a 0d 0a vs-20090920 2009-09-26 08:18:47 [32638] [8] DEBUG: Octet string dump ends. 2009-09-26 08:18:50 [32638] [8] DEBUG: HTTP: Status line: HTTP/1.1 200 OK 2009-09-26 08:18:50 [32638] [8] DEBUG: HTTP: Received response: 2009-09-26 08:18:50 [32638] [8] DEBUG: Octet string at 0x68e370: 2009-09-26 08:18:50 [32638] [8] DEBUG: len: 499 2009-09-26 08:18:50 [32638] [8] DEBUG: size: 1024 2009-09-26 08:18:50 [32638] [8] DEBUG: immutable: 0 Do you think the operator is not sending it? I can check with them again. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Sunday, September 27, 2009 9:03 AM To: Karan Zaveri Cc: users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Could you please post PDU returned from bb logs with operatorID in bold? Thanks, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: 'Alejandro Guerrieri' mailto:alejandro.guerri...@gmail.com ; 'Nikos Balkanas' mailto:nbalka...@gmail.com Cc: users@kannel.org Sent: Sunday, September 27, 2009 3:48 PM Subject: RE: Incorrect Operator ID returned Hi Guys, I think I found the piece of code that is responsible for creating this URL data. It's in the gw/urltrans.c file line 495 case 'o': /* account information (may be operator id for aggregators */ if (octstr_len(request-sms.account)) { enc = octstr_duplicate(request-sms.account); octstr_url_encode(enc); octstr_append(result, enc); octstr_destroy(enc); } break; Clearly it is returning the account id I just need to find out where is the sms object initiated and if there was a way to access the other variables available with it. Please let me know if you are aware of it. Thanks Karan From: Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] Sent: Sunday, September 27, 2009 6:34 AM To: Nikos Balkanas Cc: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned According with the configuration file he posted on his first message, he does... Regards, Alejandro 2009/9/27 Nikos Balkanas nbalka...@gmail.com Of course you need to have SMPP SMSc for that to work :-) NIkos - Original Message - From: Alejandro Guerrieri mailto:alejandro.guerri...@gmail.com To: Karan mailto:ka...@itmiracle.us Zaveri Cc: Nikos mailto:nbalka...@gmail.com Balkanas ; users@kannel.org Sent
Incorrect Operator ID returned
Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan kannel1.conf Description: Binary data
RE: Incorrect Operator ID returned
Thanks Nikos, I tried that but it didn't work. What I really need is the message sender's Operator's ID which is a number identifying who the operator is like Sprint = 31005, Cingular = 31002 etc. The %o returns the system-type variable from the config file and the %i returns the SMPP hostname which is not what I am looking for. I am not sure if this is a bug in Kannel or some other setting that I need to do. Appreciate your help. Thanks Karan From: Nikos Balkanas [mailto:nbalka...@gmail.com] Sent: Saturday, September 26, 2009 11:50 AM To: Karan Zaveri; users@kannel.org Subject: Re: Incorrect Operator ID returned Hi, Try %i to get the smsc-id. BR, Nikos - Original Message - From: Karan Zaveri mailto:ka...@itmiracle.us To: users@kannel.org Sent: Saturday, September 26, 2009 4:12 PM Subject: Incorrect Operator ID returned Hi All, I have been trying to integrate Kannel with our SMS application and so far have had success receiving messages however, I am having a bit of hard time trying to get Kannel return the operator id of the message. Based on the documentation I set the %o value in the response URL but instead of sending a numeric operator ID Kannel returns the smsc-username value. I am not sure if there is any additional setting that would need to be done in order to get the original operator id of the sender. Any help would be appreciated. Attached is my config file. Thanks Karan No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2390 - Release Date: 09/26/09 05:51:00