receive concatenated SMS

2008-03-29 Thread hafez ahmad
Hi All,
How can I receive concatenated SMS as one hit, not many hits, i have the
following confugration for my sms-service:

group = sms-service
keyword = default
get-url = 
http://localhost/scripts/myscript.php?sms_txt_binary=%bsender_number=%preceiver_number=%Psmsc_id=%imessage_coding=%cudh=%uoriginating_smsc=%fmessage_charset=%Cfirst_word=%ksecond_word_encoded=%ssecond_word_uncoded=%Srest_sms_txt=%rsms_txt_spaces_squeezed=%asent_datetime=%tsent_timestamp=%Tsender_number_no_zeros=%qreciver_number_no_zeros=%Qsmsc_id_internal=%Idelivery_report=%ddelivery_report_reply=%Asendsms_user_service=%nmessage_class=%mmwi=%Mbilling_identifier=%Baccount_identifier=%o


omit-empty = true
max-messages = 10
concatenation = true


Any Ideas,
Thanks,
Hafez


Re: receive concatenated SMS

2008-03-29 Thread Iain Dooley

hi hafez,


How can I receive concatenated SMS as one hit, not many hits, i have the
following confugration for my sms-service:


there's a patch on the CVS version that allows this, but if you want to 
run the release version, i wrote this script which does concatenation in 
PHP:


http://www.workingsoftware.com.au/concatenate_mo.php.txt

in order to do this you have to filter all messages through that single 
URL. i needed to also get the destination phone number to route messages 
to different applications, so i developed a method of parsing the error 
logs to find out what number a message was sent *to* instead of what 
number it was sent from. let me know if you need this snippet.


cheers

iain


group = sms-service
keyword = default
get-url = 
http://localhost/scripts/myscript.php?sms_txt_binary=%bsender_number=%preceiver_number=%Psmsc_id=%imessage_coding=%cudh=%uoriginating_smsc=%fmessage_charset=%Cfirst_word=%ksecond_word_encoded=%ssecond_word_uncoded=%Srest_sms_txt=%rsms_txt_spaces_squeezed=%asent_datetime=%tsent_timestamp=%Tsender_number_no_zeros=%qreciver_number_no_zeros=%Qsmsc_id_internal=%Idelivery_report=%ddelivery_report_reply=%Asendsms_user_service=%nmessage_class=%mmwi=%Mbilling_identifier=%Baccount_identifier=%o


omit-empty = true
max-messages = 10
concatenation = true


Any Ideas,
Thanks,
Hafez





Re: Kannel with OpenSWAN

2008-03-29 Thread Hammad
It took me a good deal of time to make a way out, but all is well that ends
well. Would like to share answer to the below mentioned query as it may be
of use for the others;

Scenario: Where we want to create a site-to-site VPN and run kannel on the
same machine as VPN implementation and connect with remote end SMPP host

1. make sure that VPN tunnel is already build with our left (X.X.X.X) and
leftsubnet(Y.Y.Y.Y) ips mentioned in our ipsec configurations file
2. Now remote end expects our encryption domain to be Y.Y.Y.Y where as
kannel always uses the first interface in kernel to be its own host ignoring
the others. In order to achieve this;
*a) first decalre a virtual interface on the same machine with following
command;*

# ifconfig eth0:1 Y.Y.Y.Y netmask 255.255.255.255

...do yourself on how to make this change persistant.

*b)with our smpp SMSC configuration in kannel.conf, add following line
(our-host=Y.Y.Y.Y)*

group = smsc
smsc = smpp
smsc-id = remote
host = *re.mo.te.IP*
port = *p.o.r.t*
receive-port = *p.o.r.t*
our-host = Y.Y.Y.Y
smsc-username = user
smsc-password = password
system-type = VMA
address-range = 


...and thats it. Now when you run bearerbox; you should see smpp pdu's
travelling in log files.

regards,
Hammad Aslam Khan

On Wed, Mar 26, 2008 at 3:37 PM, Hammad [EMAIL PROTECTED] wrote:

 Hello everyone,
 Can somebody please share, how to configure Openswan and kannel on the
 same machine witha virtual eth interface;

 how do we modify iptables in this case?

 Regards,
 Hammad



SyncML sendota difficulties

2008-03-29 Thread Dave Clarke
Hi guys,

I'm all googled out. I've tried this in as many ways as I can think of, but
am getting no place fast. I have started with the basics, and can send a
bookmark using sendota fine. So my send otaworks, and my SMSC can handle
messages of this nature.

I want to send SyncML settings to my phone, telling it about the syncML
server address, and the fact that i am only interested in contacts.
Basically, I am trying to start at the lowest possible point, with the
simplest possible xml doc.

Here's what I am trying to send:

?xml version=\1.0\?
!DOCTYPE wap-provisioningdoc PUBLIC -//WAPFORUM//DTD PROV 1.0//EN 
http://www.wapforum.org/DTD/prov.dtd;
wap-provisioningdoc
characteristic type=APPLICATION
parm name=APPID value=w5/
parm name=NAME value=Sync Server/
parm name=ADDR value=http://www.syncserver.com:8080/sync/
characteristic type=RESOURCE
parm name=URI value=./Contacts/
parm name=NAME value=Contact DB/
parm name=AACCEPT value=text/x-vcard,text/vcard/
/characteristic
/characteristic
/wap-provisioningdoc

Note this is not going to work for syncing purposes, I am just trying to get
the darn settings to show up on the handset.

What I'm doing is:
- Taking the above xml and urlencoding it with PHP
- using wget, from the command line to do:
 wget 
http://myhost:13013/cgi-bin/sendota?username=otauserpassword=foobarto=***text=%3C%3Fxml+version%3D%221.0%22%3F%3E%3C%21DOCTYPE+wap-provisioningdoc+PUBLIC+%22-%2F%2FWAPFORUM%2F%2FDTD+PROV+1.0%2F%2FEN%22+%22http%3A%2F%2Fwww.wapforum.org%2FDTD%2Fprov.dtd%22%3E%3Cwap-provisioningdoc%3E%3Ccharacteristic+type%3D%22APPLICATION%22%3E%3Cparm+name%3D%22APPID%22+value%3D%22w5%22%2F%3E%3Cparm+name%3D%22NAME%22+value%3D%22Sync+Server%22%2F%3E%3Cparm+name%3D%22ADDR%22+value%3D%22http%3A%2F%2Fwww.syncserver.com%3A8080%2Fsync%22%2F%3E%3Ccharacteristic+type%3D%22RESOURCE%22%3E+%3Cparm+name%3D%22URI%22+value%3D%22.%2FContacts%22%2F%3E+%3Cparm+name%3D%22NAME%22+value%3D%22Contact+DB%22%2F%3E+%3Cparm+name%3D%22AACCEPT%22+value%3D%22text%2Fx-vcard%2Ctext%2Fvcard%22%2F%3E%3C%2Fcharacteristic%3E+%3C%2Fcharacteristic%3E%3C%2Fwap-provisioningdoc%3Efrom=davetype=syncsettings


- No cpmplaints from smsbox, it parses and sends.
- No complaints from smsc, it seems to all go fine:
access log loks fine, shows udh: 060504C34CC002
- Handset, zilch. Nothing. Nada.

- Using CVS from 22080314

- otauser exists in conf:
group = sendsms-user
username = otauser
password = foobar
max-messages = 6
concatenation = 1

I'd really appreciate it if someone could show me the simplest possible xml
file to work with, and I can go form there, as I'm sure it must be my xml
doc that is causing the issue, as I can take an xml bookmark and send fine
using sendota with type=bookmarks

Phone I've been trying with: Nokia 6234

Thanks
Dave


Re: Re[2]: DLR parameter variables

2008-03-29 Thread Bibek Shrestha
thanks,
this should be really helpful

On Sat, Mar 29, 2008 at 7:00 PM, seik [EMAIL PROTECTED] wrote:
 the sms-service url is not of big use ..

  instead set unique dlr-url value for each MT message along with dlr-mask 
 value to 31


  something like

  
 http://127.0.0.1/dlr.pgsql.php?smscID=%idlr=%danswer=%Ato=%pfrom=%Pts=%TsmsID=40dbeba9b417ce40e3a0f2e8496b2ea8charset=%Ckannel_id=%I;

  the smsID is your unique internal ID so you mya keep track on the status




  -Original Message-
  From: Bibek Shrestha [EMAIL PROTECTED]
  Sent: 29  2008 ?.
  To: seik
  Subject:DLR parameter variables

   How did i miss it?
   thanks a lot

   On Sat, Mar 29, 2008 at 4:01 AM, seik [EMAIL PROTECTED] wrote:
   Table 6-9. Parameters (Escape Codes)
  
  

 http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN3525
  
  
  
  
-Original Message-
From: users@kannel.org [EMAIL PROTECTED]
Sent: 28  2008 ?.
To: seik
Subject:DLR parameter variables
  
 Can someone explain the parameters accepted by
 dlr-url in the sendsms-user,
 i checked the userdocs but it wasn't there
  
  
  
  
  
  
  
  











-- 
Bibek Shrestha
[EMAIL PROTECTED]
--
YoungInnovations Pvt. Ltd.
GPO 8976 EPC 241
Thamel Kathmandu, Nepal