Hy, following my patch:

--- smsbox.orig.c       2006-02-28 15:39:24.000000000 +0100
+++ smsbox.c    2006-02-28 15:55:00.000000000 +0100
@@ -618,6 +618,14 @@
        O_DESTROY(tmp);
     }

+    get_tag(*body, octstr_imm("oa"), &tmp, 0, 0);
+    if(tmp) {
+       /* senderAddress */
+        get_tag(tmp, octstr_imm("number"), from, 0, 0);
+        O_DESTROY(tmp);
+    }
+
+
     if(requesttype == mt_push) {
        /* to (da/number) Multiple tags */
        *tolist = list_create();
@@ -782,7 +790,7 @@
        O_DESTROY(tmp);
     }

-    O_DESTROY(*body);
+    //O_DESTROY(*body);
     if(text)
        *body = text;
     else

According to me the O_DESTROY(*body) instruction cause the crash because
body was already destroyed in in get_tag instruction before.

It works for me, but obviously it's stuff for developers...

Hi
francesco
 

Il giorno mar, 28/02/2006 alle 15.29 +0100, francesco emmi ha scritto:
> According to me it's a kannel bug.
> 
> I've patched my source code for my own usage. I'll soon post diff file
> to development staff...maybe it could be useful for.
> 
> Francesco
> 
> Il giorno mar, 28/02/2006 alle 11.02 +0000, Hernan Reyes ha scritto:
> > Aaron Ridout <aaron.ridout <at> reach2mobile.co.uk> writes:
> > 
> > > 
> > > Hi,
> > > I'm using Kannel 1.4.0 and http post of the following XML fragment:
> > > 
> > <message><submit><da><number>xxx</number></da><oa><number>xxx</number></oa>...
> > > The debug shows the rest of the XML being parsed, but not the <oa> and 
> > > the 
> > > trace ends with the message: Status: 400 Answer: <Sender missing and no 
> > > global set, rejected>.
> > > Kannel then goes on to report a set of Panic messages starting in 
> > > gwlib/octstr.c:2342.... which I assume is a consequence of not having set 
> > > the Sender?
> > > 
> > > How do I set the sender if not in the XML?
> > > I had been using hppt get to send messages ok; is that interface more 
> > > mature 
> > > / fuller-featured?
> > > 
> > > Thanks,
> > > Aaron
> > > 
> > > 
> > Hi Aaron,
> > 
> > I have faced the same problem and have temporaly over come the problem by 
> > introducing a sender-default number in the smsbox configuration.
> > 
> > Of course this limit the source address field to one.
> > 
> > I am yet to find a solution. 
> > 
> > Have you since found a solution or found out why kannel is not parsin the 
> > <oa> 
> > tag field? Did you need a change of configuration somewhere else or did you 
> > hack the code?
> > 
> > Any help will me very much appreciated.
> > 
> > Regards,
> > Hernan
> > 
> > 
> > 
> > 
> > 
> > 
-- 



____________________________________________
Francesco Emmi
A-Tono
Largo Paisiello 5 - 95124 Catania
Tel.: (+39) 095 7365312
http: www.a-tono.com

Information in this email is confidential and may be privileged.
It is intended for the addresses only. If you have received it in error,
please notify the sender immediately and delete it from your system.
You should not otherwise copy it, retransmit it or use or disclose its
content to anyone.
Thank you for your co-operation.


Reply via email to