RE: Regarding sms port on auto reply by sms service

2011-07-13 Thread Rene Kluwen
Like I said:

In your response headers, include X-Kannel-UDH in hex format.
Example: X-Kannel-UDH: 0605041582.

When using php, include Header(X-Kannel-UDH: 0605041582);

== Rene



-Original Message-
From: Adil Mohd [mailto:adil.m...@gmail.com] 
Sent: Wednesday, 13 July, 2011 02:51
To: Rene Kluwen; users@kannel.org
Subject: Re: Regarding sms port on auto reply by sms service

I already have accept-x-kannel-headers = true set in my kannel.conf.
How can I specify UDH to be used with auto-reply to a service..

THanks,
Adil


On Tue, Jul 12, 2011 at 6:38 PM, Rene Kluwen rene.klu...@chimit.nl wrote:
 Use accept-x-kannel-headers = true and see:


http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4
 010 (X-Kannel-UDH).

 An alternative options is to not use the autoreply (max-messages = 0 and
 omit-empty = true) and then send the reply via the sendsms interface from
 within your service.

 == Rene


 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
 Of Adil Mohd
 Sent: Tuesday, 12 July, 2011 14:44
 To: users@kannel.org
 Subject: Regarding sms port on auto reply by sms service

 Hi,

 I am trying to configure Kannel for my use. I have also configured a
 service.
 When ever I recieve an sms on my modem, my Http url configured under
 get-url executes and the
 results get smsed to the originating device.

 Now, my problem is that I need these smses on a particular rather than
 in Inbox of the device.

 I know I can set UDH in send-url. But I want this in the auto-reply to
 a service from kannel.

 THanks,
 Adil

 #-
 # CORE
 #


 group = core
 admin-port = 13000
 smsbox-port = 13003
 admin-password = bar
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 log-file = /etc/kannel/check_sendsms_smsc.log
 log-level = 0
 store-file=/etc/kannel/check_rxdsms_smsc.log

 #-
 # SMSC CONNECTIONS
 #
 group = smsc
 smsc = at
 smsc-id = mysmscenter
 device=/dev/ttyS2
 #my-number = 918802345723
 sms-center = +919811009998
 port = 1
 connect-allow-ip = 127.0.0.1
 #send-url=http://127.0.0.1:13001/cgi-bin/sendsms;

#send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=ag
 ileto=%ptext=%a

send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agi
 leto=%ptext=%audh=%06%05%04%1D%4C%03%02
 #log-level = 0
 modemtype = nokiaphone
 #modemtype = auto
 sim-buffering = true

 #-
 # SMSBOX SETUP
 #
 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13001
 global-sender = +919811009998
 #global-sender = +919842201155

#sendsms-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword
 =agileto=%ptext=%audh=%06%05%04%1D%4C%03%02
 #log-level = 0
 log-file = /etc/kannel/smsbox.log
 log-level = 0

 #-
 # SEND-SMS USERS
 #
 group = sendsms-user
 username = agile
 password = agile
 default-smsc = mysmscenter
 concatenation= true
 max-messages = 100

#http://localhost:13003/cgi-bin/sendsms?username=agilepassword=agileto=880
 2345723text=Hello+world


 #-
 # SERVICES
 #
 group = sms-service
 #get-url=http://www.google.com;
 #get-url =

http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%p;
 text=%audh=%06%05%04%1D%4C%03%02
 #get-url =http://122.176.73.10:8080/MTSVIBE/DynamicPage;
 get-url =http://127.0.0.1/;
 #get-url=http://127.0.0.1/udh=%06%05%04%1D%4C%01%01;
 file=/etc/kannel/check_rxdsms_smsc.log
 keyword = default
 #keyword-regex = .*
 catch-all = yes
 max-messages = 100
 concatenation=true
 accept-x-kannel-headers = true
 #group = sms-service
 #keyword = default
 #text = No service specified


 group = modems
 id = nokiaphone
 name = nokiaphone
 detect-string = Android
 #detect-string = Nokia Mobile Phone
 need-sleep = true
 speed = 115200
 #message-storage = sm
 #init-string=AT+CNMI=2,3,0,1,0;+CMEE=1
 keepalive-cmd = AT+CSQ
 #enable-mms = true


 #include = /usr/local/include/kannel/modems.conf










Regarding sms port on auto reply by sms service

2011-07-12 Thread Adil Mohd
Hi,

I am trying to configure Kannel for my use. I have also configured a service.
When ever I recieve an sms on my modem, my Http url configured under
get-url executes and the
results get smsed to the originating device.

Now, my problem is that I need these smses on a particular rather than
in Inbox of the device.

I know I can set UDH in send-url. But I want this in the auto-reply to
a service from kannel.

THanks,
Adil

#-
# CORE
#


group = core
admin-port = 13000
smsbox-port = 13003
admin-password = bar
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
log-file = /etc/kannel/check_sendsms_smsc.log
log-level = 0
store-file=/etc/kannel/check_rxdsms_smsc.log

#-
# SMSC CONNECTIONS
#
group = smsc
smsc = at
smsc-id = mysmscenter
device=/dev/ttyS2
#my-number = 918802345723
sms-center = +919811009998
port = 1
connect-allow-ip = 127.0.0.1
#send-url=http://127.0.0.1:13001/cgi-bin/sendsms;
#send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%ptext=%a;
send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%ptext=%audh=%06%05%04%1D%4C%03%02;
#log-level = 0
modemtype = nokiaphone
#modemtype = auto
sim-buffering = true

#-
# SMSBOX SETUP
#
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13001
global-sender = +919811009998
#global-sender = +919842201155
#sendsms-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%ptext=%audh=%06%05%04%1D%4C%03%02;
#log-level = 0
log-file = /etc/kannel/smsbox.log
log-level = 0

#-
# SEND-SMS USERS
#
group = sendsms-user
username = agile
password = agile
default-smsc = mysmscenter
concatenation= true
max-messages = 100
#http://localhost:13003/cgi-bin/sendsms?username=agilepassword=agileto=8802345723text=Hello+world


#-
# SERVICES
#
group = sms-service
#get-url=http://www.google.com;
#get-url = 
http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%ptext=%audh=%06%05%04%1D%4C%03%02;
#get-url =http://122.176.73.10:8080/MTSVIBE/DynamicPage;
get-url =http://127.0.0.1/;
#get-url=http://127.0.0.1/udh=%06%05%04%1D%4C%01%01;
file=/etc/kannel/check_rxdsms_smsc.log
keyword = default
#keyword-regex = .*
catch-all = yes
max-messages = 100
concatenation=true
accept-x-kannel-headers = true
#group = sms-service
#keyword = default
#text = No service specified


group = modems
id = nokiaphone
name = nokiaphone
detect-string = Android
#detect-string = Nokia Mobile Phone
need-sleep = true
speed = 115200
#message-storage = sm
#init-string=AT+CNMI=2,3,0,1,0;+CMEE=1
keepalive-cmd = AT+CSQ
#enable-mms = true


#include = /usr/local/include/kannel/modems.conf



RE: Regarding sms port on auto reply by sms service

2011-07-12 Thread Rene Kluwen
Use accept-x-kannel-headers = true and see:

http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4
010 (X-Kannel-UDH).

An alternative options is to not use the autoreply (max-messages = 0 and
omit-empty = true) and then send the reply via the sendsms interface from
within your service.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Adil Mohd
Sent: Tuesday, 12 July, 2011 14:44
To: users@kannel.org
Subject: Regarding sms port on auto reply by sms service

Hi,

I am trying to configure Kannel for my use. I have also configured a
service.
When ever I recieve an sms on my modem, my Http url configured under
get-url executes and the
results get smsed to the originating device.

Now, my problem is that I need these smses on a particular rather than
in Inbox of the device.

I know I can set UDH in send-url. But I want this in the auto-reply to
a service from kannel.

THanks,
Adil

#-
# CORE
#


group = core
admin-port = 13000
smsbox-port = 13003
admin-password = bar
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
log-file = /etc/kannel/check_sendsms_smsc.log
log-level = 0
store-file=/etc/kannel/check_rxdsms_smsc.log

#-
# SMSC CONNECTIONS
#
group = smsc
smsc = at
smsc-id = mysmscenter
device=/dev/ttyS2
#my-number = 918802345723
sms-center = +919811009998
port = 1
connect-allow-ip = 127.0.0.1
#send-url=http://127.0.0.1:13001/cgi-bin/sendsms;
#send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=ag
ileto=%ptext=%a
send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agi
leto=%ptext=%audh=%06%05%04%1D%4C%03%02
#log-level = 0
modemtype = nokiaphone
#modemtype = auto
sim-buffering = true

#-
# SMSBOX SETUP
#
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13001
global-sender = +919811009998
#global-sender = +919842201155
#sendsms-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword
=agileto=%ptext=%audh=%06%05%04%1D%4C%03%02
#log-level = 0
log-file = /etc/kannel/smsbox.log
log-level = 0

#-
# SEND-SMS USERS
#
group = sendsms-user
username = agile
password = agile
default-smsc = mysmscenter
concatenation= true
max-messages = 100
#http://localhost:13003/cgi-bin/sendsms?username=agilepassword=agileto=880
2345723text=Hello+world


#-
# SERVICES
#
group = sms-service
#get-url=http://www.google.com;
#get-url =
http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%p;
text=%audh=%06%05%04%1D%4C%03%02
#get-url =http://122.176.73.10:8080/MTSVIBE/DynamicPage;
get-url =http://127.0.0.1/;
#get-url=http://127.0.0.1/udh=%06%05%04%1D%4C%01%01;
file=/etc/kannel/check_rxdsms_smsc.log
keyword = default
#keyword-regex = .*
catch-all = yes
max-messages = 100
concatenation=true
accept-x-kannel-headers = true
#group = sms-service
#keyword = default
#text = No service specified


group = modems
id = nokiaphone
name = nokiaphone
detect-string = Android
#detect-string = Nokia Mobile Phone
need-sleep = true
speed = 115200
#message-storage = sm
#init-string=AT+CNMI=2,3,0,1,0;+CMEE=1
keepalive-cmd = AT+CSQ
#enable-mms = true


#include = /usr/local/include/kannel/modems.conf






Re: Regarding sms port on auto reply by sms service

2011-07-12 Thread Adil Mohd
I already have accept-x-kannel-headers = true set in my kannel.conf.
How can I specify UDH to be used with auto-reply to a service..

THanks,
Adil


On Tue, Jul 12, 2011 at 6:38 PM, Rene Kluwen rene.klu...@chimit.nl wrote:
 Use accept-x-kannel-headers = true and see:

 http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4
 010 (X-Kannel-UDH).

 An alternative options is to not use the autoreply (max-messages = 0 and
 omit-empty = true) and then send the reply via the sendsms interface from
 within your service.

 == Rene


 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
 Of Adil Mohd
 Sent: Tuesday, 12 July, 2011 14:44
 To: users@kannel.org
 Subject: Regarding sms port on auto reply by sms service

 Hi,

 I am trying to configure Kannel for my use. I have also configured a
 service.
 When ever I recieve an sms on my modem, my Http url configured under
 get-url executes and the
 results get smsed to the originating device.

 Now, my problem is that I need these smses on a particular rather than
 in Inbox of the device.

 I know I can set UDH in send-url. But I want this in the auto-reply to
 a service from kannel.

 THanks,
 Adil

 #-
 # CORE
 #


 group = core
 admin-port = 13000
 smsbox-port = 13003
 admin-password = bar
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 log-file = /etc/kannel/check_sendsms_smsc.log
 log-level = 0
 store-file=/etc/kannel/check_rxdsms_smsc.log

 #-
 # SMSC CONNECTIONS
 #
 group = smsc
 smsc = at
 smsc-id = mysmscenter
 device=/dev/ttyS2
 #my-number = 918802345723
 sms-center = +919811009998
 port = 1
 connect-allow-ip = 127.0.0.1
 #send-url=http://127.0.0.1:13001/cgi-bin/sendsms;
 #send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=ag
 ileto=%ptext=%a
 send-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agi
 leto=%ptext=%audh=%06%05%04%1D%4C%03%02
 #log-level = 0
 modemtype = nokiaphone
 #modemtype = auto
 sim-buffering = true

 #-
 # SMSBOX SETUP
 #
 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13001
 global-sender = +919811009998
 #global-sender = +919842201155
 #sendsms-url=http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword
 =agileto=%ptext=%audh=%06%05%04%1D%4C%03%02
 #log-level = 0
 log-file = /etc/kannel/smsbox.log
 log-level = 0

 #-
 # SEND-SMS USERS
 #
 group = sendsms-user
 username = agile
 password = agile
 default-smsc = mysmscenter
 concatenation= true
 max-messages = 100
 #http://localhost:13003/cgi-bin/sendsms?username=agilepassword=agileto=880
 2345723text=Hello+world


 #-
 # SERVICES
 #
 group = sms-service
 #get-url=http://www.google.com;
 #get-url =
 http://127.0.0.1:13001/cgi-bin/sendsms?username=agilepassword=agileto=%p;
 text=%audh=%06%05%04%1D%4C%03%02
 #get-url =http://122.176.73.10:8080/MTSVIBE/DynamicPage;
 get-url =http://127.0.0.1/;
 #get-url=http://127.0.0.1/udh=%06%05%04%1D%4C%01%01;
 file=/etc/kannel/check_rxdsms_smsc.log
 keyword = default
 #keyword-regex = .*
 catch-all = yes
 max-messages = 100
 concatenation=true
 accept-x-kannel-headers = true
 #group = sms-service
 #keyword = default
 #text = No service specified


 group = modems
 id = nokiaphone
 name = nokiaphone
 detect-string = Android
 #detect-string = Nokia Mobile Phone
 need-sleep = true
 speed = 115200
 #message-storage = sm
 #init-string=AT+CNMI=2,3,0,1,0;+CMEE=1
 keepalive-cmd = AT+CSQ
 #enable-mms = true


 #include = /usr/local/include/kannel/modems.conf