Hi

Please always cc kannel list so anybody can help and others benefit from this.

If you send the message to a number in international format, you MUST
add either the + or the long distace code 00.

Therfore assuming you are using php, chage your curl to :

user=urlencode(test)&pass=urlencode(test)&to=urlencode(+2347011955229)&text=urlencode(ANSHUL+Dear+Customer+AccessMoney)&smsc=urlencode(smsc)&from=urlencode(AccessMoney)

This assures that if in any case you use non ascii chars, you will not
get garbled messages

Regards

Alvaro



On 9/6/13, Anshul Jain <[email protected]> wrote:
> Hi Alvaro,
>
> I am sending SMS through curl
>
> curl
> "http://127.0.0.1:14213/cgi-bin/sendsms?user=test&pass=test&to=2347011955229&text=ANSHUL+Dear+Customer+AccessMoney&smsc=smsc&from=AccessMoney";
>
> as suggest I changed the configuration and restarted kannel but still SMS
> are delivered.
>
> allowed-prefix = "+23480;23480;0023480"
> denied-prefix = "+23470;0023470;70;070;23470"
>
> Thanks and Regards
> Anshul Jain
>
>
> -----Original Message-----
> From: Alvaro Cornejo [mailto:[email protected]]
> Sent: Friday, September 06, 2013 8:24 PM
> To: Anshul Jain
> Subject: Re: Allowed-prefix vs Denied-prefix
>
> Hi
>
> I see that your numbers start with 23470... don't know where the +/00 went.
> How are you posting the messages to kannel?. Remember that the + is the url
> encoded code for " " (space) so you need to urlencode the destination number
> so the + get correctly encoded and not being taken as a space.
>
> Try with denied-prefix = "+23470;0023470;23470"
>
> do't forget to restart your smsc after change so it is readed by kannel
>
> Regards
>
> Alvaro
>
>
> On 9/6/13, Anshul Jain <[email protected]> wrote:
>> Hi Alvaro,
>>
>> Thanks for your prompt response.
>>
>> Configured as per your suggestion, but still SMS is getting delivered.
>> Logs below.
>>
>> [smsc@testapp SMSC_LOGS]$ tail -f smsbox_event.log
>> 2013-09-06 14:42:51 [3] INFO: smsbox: Got HTTP request
>> 2013-09-06 14:46:28 [3] INFO: sendsms used by <test>
>> 2013-09-06 14:46:28 [3] INFO: sendsms sender:<test:AccessMoney>
>> (127.0.0.1) to:<2347080001333>
>> 2013-09-06 14:46:28 [3] INFO: smsbox: Got HTTP request
>> 2013-09-06 15:00:58 [3] INFO: sendsms used by <test>
>> 2013-09-06 15:00:58 [3] INFO: sendsms sender:<test:AccessMoney>
>> (127.0.0.1) to:<2347066384013>
>> 2013-09-06 15:00:58 [3] INFO: smsbox: Got HTTP request
>> 2013-09-06 15:02:25 [3] INFO: sendsms used by <test>
>> 2013-09-06 15:02:25 [3] INFO: sendsms sender:<test:AccessMoney>
>> (127.0.0.1) to:<2347080001333>
>> 2013-09-06 15:02:25 [3] INFO: smsbox: Got HTTP request
>>
>>
>> [smsc@testapp SMSC_LOGS]$ tail -f smsbox_event.log
>> 2013-09-06 15:24:49 [0] WARNING: Missing Variable hba-send-alarm-enable.
>> Setting 0 [disabled] as default
>> 2013-09-06 15:24:49 [0] INFO: Service global sender set as ''
>> 2013-09-06 15:24:49 [0] INFO:  smsbox_cif_enable 0
>> 2013-09-06 15:24:49 [0] INFO:  smsbox_hba_send_alarm_enable 0
>> 2013-09-06 15:24:49 [0] WARNING: smsbox Binary is not integrated with
>> CIF library.
>> 2013-09-06 15:24:49 [0] INFO: HTTP: Opening server at port 14213.
>> 2013-09-06 15:24:49 [0] INFO: Set up send sms service at port 14213
>> 2013-09-06 15:24:49 [0] WARNING: HBA Initialization is not enabled in
>> smsbox Binary.
>> 2013-09-06 15:24:49 [0] INFO: Connected to bearerbox at localhost port
>> 15215.
>> 2013-09-06 15:24:49 [3] INFO: smsbox: Got HTTP request
>>
>>
>>
>>
>>
>> 2013-09-06 15:25:37 [3] INFO: sendsms used by <test>
>> 2013-09-06 15:25:37 [3] INFO: sendsms sender:<test:AccessMoney>
>> (127.0.0.1) to:<2347011955229>
>> 2013-09-06 15:25:37 [3] INFO: smsbox: Got HTTP request
>>
>> [smsc@testapp SMSC_LOGS]$
>> [smsc@testapp SMSC_LOGS]$ ls -lrt
>> total 848548
>> -rw-r----- 1 smsc mobiquity   3595199 Sep  6 15:25 smsbox_event.log
>> -rw-r----- 1 smsc mobiquity   1730223 Sep  6 15:25 smsbox_access.log
>> -rw-r----- 1 smsc mobiquity   6435899 Sep  6 15:25 gateway_access.log
>> -rw-r----- 1 smsc mobiquity 856280244 Sep  6 15:25 gateway_event.log
>> [smsc@testapp SMSC_LOGS]$ [smsc@testapp SMSC_LOGS]$ tail -f
>> smsbox_access.log
>> 2013-09-06 14:40:01 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2347066384013
>> 2013-09-06 14:40:31 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2347080001333
>> 2013-09-06 14:40:45 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2348085251691
>> 2013-09-06 14:41:34 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2348085251691
>> 2013-09-06 14:42:51 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2348085251691
>> 2013-09-06 14:46:28 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2347080001333
>> 2013-09-06 15:00:58 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2347066384013
>> 2013-09-06 15:02:25 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2347080001333
>> 2013-09-06 15:24:49 Log begins
>> 2013-09-06 15:25:37 send-SMS request added - sender:test:AccessMoney
>> 127.0.0.1 target:2347011955229
>>
>>
>> [smsc@testapp SMSC_LOGS]$ tail -f gateway_access.log
>> 2013-09-06 15:00:58 Message Sent to SMSC  : 0 [0] [SMSC:smsc]
>> [SVC:test] [ACT:] [from:AccessMoney] [to:2347066384013]
>> [flags:0:1:0:0:0] [msgno:] [udh:0:] [UMI:0] [message type:sms]
>> 2013-09-06 15:00:58 Sent SMS : 0 [0] [SMSC:smsc] [SVC:test] [ACT:]
>> [from:AccessMoney] [to:2347066384013] [flags:0:1:0:0:0] [msgno:]
>> [udh:0:] [UMI:0] [message type:sms]
>> 2013-09-06 15:02:25 Message Sent to SMSC  : 0 [0] [SMSC:smsc]
>> [SVC:test] [ACT:] [from:AccessMoney] [to:2347080001333]
>> [flags:0:1:0:0:0] [msgno:] [udh:0:] [UMI:0] [message type:sms]
>> 2013-09-06 15:02:25 Sent SMS : 0 [0] [SMSC:smsc] [SVC:test] [ACT:]
>> [from:AccessMoney] [to:2347080001333] [flags:0:1:0:0:0] [msgno:]
>> [udh:0:] [UMI:0] [message type:sms]
>> 2013-09-06 15:23:35 Log begins
>> 2013-09-06 15:23:35 Log begins
>> 2013-09-06 15:24:45 Log begins
>> 2013-09-06 15:24:45 Log begins
>> 2013-09-06 15:25:37 Message Sent to SMSC  : 0 [0] [SMSC:smsc]
>> [SVC:test] [ACT:] [from:AccessMoney] [to:2347011955229]
>> [flags:0:1:0:0:0] [msgno:] [udh:0:] [UMI:0] [message type:sms]
>> 2013-09-06 15:25:37 Sent SMS : 0 [0] [SMSC:smsc] [SVC:test] [ACT:]
>> [from:AccessMoney] [to:2347011955229] [flags:0:1:0:0:0] [msgno:]
>> [udh:0:] [UMI:0] [message type:sms]
>>
>>
>> Thanks and Regards
>> Anshul Jain
>>
>>
>> -----Original Message-----
>> From: Alvaro Cornejo [mailto:[email protected]]
>> Sent: Friday, September 06, 2013 7:30 PM
>> To: Alexander Malysh
>> Cc: Anshul Jain; [email protected] org
>> Subject: Re: Allowed-prefix vs Denied-prefix
>>
>> Hi
>>
>> might it be that the messages going through are in "local" format?
>> i.e. without the country code?
>>
>> Usually for sending messages locally you do not need to add country code.
>>
>> If that is the case, try changing denied-prefix to "+23470;0023470;70"
>>
>> if it doesn't work, post some logs
>>
>> Regards
>>
>> Alvaro
>>
>> On 9/6/13, Alexander Malysh <[email protected]> wrote:
>>> Hi,
>>>
>>> please use [email protected], forwarding...
>>>
>>> Alex
>>>
>>> Am 06.09.2013 um 13:01 schrieb Anshul Jain
>>> <[email protected]>:
>>>
>>>> Hi Kannel Team,
>>>>
>>>> Thanks in Advance for your help.
>>>>
>>>> I want to block my kannel to push SMS to a particular series..  I am
>>>> using
>>>> 2.5.1 version of bearerbox. I tried to use below configurations but
>>>> still my kannel is pushing sms on denied series. Request your help
>>>> to catch my mistake to correct my configuration
>>>>
>>>> Core-Bearer bearerbox version `2.5.1'.
>>>> System Linux, release 2.6.18-238.el5, version #1 SMP Sun Dec 19
>>>> 14:22:44 EST 2010, machine x86_64.
>>>>
>>>> group = core
>>>> admin-port = 15214
>>>> smsbox-port = 15215
>>>> admin-password = bar
>>>> log-level = 0
>>>> log-file = "/mmoneyvar/mmoney_smsclogs/gateway_event.log"
>>>> access-log = "/mmoneyvar/mmoney_smsclogs/gateway_access.log"
>>>>
>>>> ##start newbulk##
>>>> group = smsc
>>>> smsc = smpp
>>>> smsc-id = "smsc"
>>>> host = 10.100.60.123
>>>> port = 31110
>>>> receive-port = 0
>>>> system-type = "mcom"
>>>> smsc-username = mcom
>>>> smsc-password = mcom
>>>> address-range = ""
>>>> transceiver-mode =  false
>>>> interface-version = 34
>>>> keepalive = 2
>>>> #max-pending-submits = 5
>>>> source-addr-autodetect = "true"
>>>> #source-addr-ton = 4
>>>> #source-addr-npi = 1
>>>> dest-addr-ton = 3
>>>> dest-addr-npi = 9
>>>> msg-id-type = 0x01
>>>> reconnect-delay=1
>>>> allowed-prefix = "+23480;23480;0023480"
>>>> denied-prefix = "+23470;0023470"
>>>> ##end newbulk##
>>>>
>>>> Here i want to block SMS to series starting from (234)70, 234 here
>>>> is country code. Humble request if you can help me troubleshooting it.
>>>>
>>>> Thanks and Regards
>>>>
>>>> Anshul Jain| Global Projects Delivery | India: + 91
>>>> 98-999-81631(SMS)
>>>> | Nigeria :- +234-7011955229 A-26, Info City | Sector 34, Gurgaon
>>>> 122001 | Haryana, India | T: +91 124
>>>> 481 9000 | F: +91 124 481 9777 | www.mahindracomviva.com
>>>> <image001.jpg> We are now Mahindra Comviva
>>>>
>>>> This e-mail and all material transmitted with it are for the use of
>>>> the intended recipient(s) ONLY and contains confidential and/or
>>>> privileged information. If you are not the intended recipient,
>>>> please contact the sender by reply e-mail and destroy all copies and
>>>> the original message.
>>>> Any unauthorized review, use, disclosure, dissemination, forwarding,
>>>> printing or copying of this email or any action taken pursuant to
>>>> the contents of the present e-mail is strictly prohibited and is
>>>> unlawful. The recipient acknowledges that Comviva Technologies
>>>> Limited or its management or directors, are unable to exercise
>>>> control or ensure the integrity over /of the contents of the
>>>> information contained in e-mail. Any views expressed herein are
>>>> those of the individual sender only and no binding nature of the
>>>> contents shall be implied or assumed unless the sender does so
>>>> expressly with due authority of Comviva Technologies Limited. E-mail
>>>> and any contents transmitted with it are prone to viruses and
>>>> related defects despite all efforts to avoid such by Comviva
>>>> Technologies Limited.
>>>> This e-mail and all material transmitted with it are for the use of
>>>> the intended recipient(s) ONLY and contains confidential and/or
>>>> privileged information. If you are not the intended recipient,
>>>> please contact the sender by reply e-mail and destroy all copies and
>>>> the original message.
>>>> Any unauthorized review, use, disclosure, dissemination, forwarding,
>>>> printing or copying of this email or any action taken pursuant to
>>>> the contents of the present e-mail is strictly prohibited and is
>>>> unlawful. The recipient acknowledges that Comviva Technologies
>>>> Limited or its management or directors, are unable to exercise
>>>> control or ensure the integrity over /of the contents of the
>>>> information contained in e-mail. Any views expressed herein are
>>>> those of the individual sender only and no binding nature of the
>>>> contents shall be implied or assumed unless the sender does so
>>>> expressly with due authority of Comviva Technologies Limited. E-mail
>>>> and any contents transmitted with it are prone to viruses and
>>>> related defects despite all efforts to avoid such by Comviva
>>>> Technologies Limited.
>>>
>>>
>>
>>
>> --
>> |-----------------------------------------------------------------------------------------------------------------|
>> 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.NET www.smsglobal.com.mx y
>> www.pravcom.com This e-mail and all material transmitted with it are
>> for the use of the intended recipient(s) ONLY and contains
>> confidential and/or privileged information. If you are not the
>> intended recipient, please contact the sender by reply e-mail and
>> destroy all copies and the original message. Any unauthorized review,
>> use, disclosure, dissemination, forwarding, printing or copying of
>> this email or any action taken pursuant to the contents of the present
>> e-mail is strictly prohibited and is unlawful. The recipient
>> acknowledges that Comviva Technologies Limited or its management or
>> directors, are unable to exercise control or ensure the integrity over
>> /of the contents of the information contained in e-mail. Any views
>> expressed herein are those of the individual sender only and no
>> binding nature of the contents shall be implied or assumed unless the
>> sender does so expressly with due authority of Comviva Technologies
>> Limited. E-mail and any contents transmitted with it are prone to
>> viruses and related defects despite all efforts to avoid such by Comviva
>> Technologies Limited.
>>
>
>
> --
> |-----------------------------------------------------------------------------------------------------------------|
> 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.NET www.smsglobal.com.mx y
> www.pravcom.com
> This e-mail and all material transmitted with it are for the use of the
> intended recipient(s) ONLY and contains confidential and/or privileged
> information. If you are not the intended recipient, please contact the
> sender by reply e-mail and destroy all copies and the original message. Any
> unauthorized review, use, disclosure, dissemination, forwarding, printing or
> copying of this email or any action taken pursuant to the contents of the
> present e-mail is strictly prohibited and is unlawful. The recipient
> acknowledges that Comviva Technologies Limited or its management or
> directors, are unable to exercise control or ensure the integrity over /of
> the contents of the information contained in e-mail. Any views expressed
> herein are those of the individual sender only and no binding nature of the
> contents shall be implied or assumed unless the sender does so expressly
> with due authority of Comviva Technologies Limited. E-mail and any contents
> transmitted with it are prone to viruses and related defects despite all
> efforts to avoid such by Comviva Technologies Limited.
>


-- 
|-----------------------------------------------------------------------------------------------------------------|
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.NET www.smsglobal.com.mx y
www.pravcom.com

Reply via email to