[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freediameter-help
Subject:    [Help] Sending same diameter message again.
From:       sdecugis () freediameter ! net (Sebastien Decugis)
Date:       2012-09-18 20:06:17
Message-ID: 5058D439.4060508 () freediameter ! net
[Download RAW message or body]

Hi Nilesh,

Just for clarity, you are trying to repost the message once the callback 
has been called after the timeout, right? In that case I do not 
understand why msg_cb.fct would not be NULL. Otherwise, please make sure 
that your callback has been called (you can detect the timeout condition 
because the callback receives the request as parameter instead of an answer)

Best regards,
Sebastien.

Le 2012/09/18 18:51, Nilesh Bhosale a ?crit :
> Hi Sebastien,
>
> I tried with fix you given. But still i am facing the same error while 
> sending same diameter message again.
>
>
>         | tid:Main                     09/17/12,21:15:32.232334   in 
> fd_msg_anscb_associate@/freeDiameter/freeDiameter-1.1.2/libfdproto/messages.c:933 
> <mailto:fd_msg_anscb_associate@/freeDiameter/freeDiameter-1.1.2/libfdproto/messages.c:933>
>         @| Warning: Invalid parameter received in '(anscb == NULL) || 
> msg->msg_cb.fct == 0)'
>          | tid:Main                     09/17/12,21:15:32.232440
>   in 
> fd_msg_send_timeout@/freeDiameter/freeDiameter-1.1.2/libfdcore/messages.c:326 
> <mailto:fd_msg_send_timeout@/freeDiameter/freeDiameter-1.1.2/libfdcore/messages.c:326>
>         @| ERROR: in '__v__ = (fd_msg_anscb_associate( *pmsg, anscb, 
> data, timeout ))': Invalid argument
>          | tid:Main                     09/17/12,21:15:32.232606      
>   in fd_send_msg at fd_client.c:838 <mailto:fd_send_msg at fd_client.c:838>
>         @| ERROR: in '__v__ = (fd_msg_send_timeout( &msg, 
> msg_callback, (void*)&data, &timeout ))':     Invalid argument.
>
>
> Regards,
>  Nilesh
>
>
> On Thu, Sep 13, 2012 at 7:42 AM, Sebastien Decugis 
> <sdecugis at freediameter.net <mailto:sdecugis at freediameter.net>> wrote:
>
>     Hi Nilesh,
>
>     I have just committed a fix that should allow to do that. However,
>     note that:
>     - the re-transmitted message will get a new hop-by-hop id
>     - if the original message did not reach the destination, chances
>     are that the retransmitted one will have the same path... Running
>     over SCTP, there are no transmission errors in Diameter (at least
>     in theory).
>
>     Can you try with this fix included ?
>     http://www.freediameter.net/hg/freeDiameter/rev/89c5849b0832
>
>     Best regards,
>     Sebastien
>
>
>     Le 2012/09/13 9:16, Nilesh Bhosale a ?crit :
>>     Hi,
>>
>>     I have some queries regarding sending same diameter message again.
>>
>>     I am trying to resend same diameter message for that i am using
>>     below code.
>>
>>     CHECK_FCT( fd_msg_send_timeout( &msg, msg_callback, (void*)&data,
>>     &timeout ));
>>
>>     after this  I am again sending same message with same call as above
>>
>>     CHECK_FCT( fd_msg_send_timeout( &msg, msg_callback, (void*)&data,
>>     &timeout ));
>>
>>     Here msg is valid daimeter message which is successfully  sent
>>     for  first time but while resending for second time ,
>>
>>     I am getting the following error
>>
>>             | tid:Main 09/12/12,23:05:42.254654     in
>>     fd_msg_anscb_associate@/freeDiameter/freeDiameter-1.1.2/libfdproto/messages.c:933
>>     <mailto:fd_msg_anscb_associate@/freeDiameter/freeDiameter-1.1.2/libfdproto/messages.c:933>
>>             @| Warning: Invalid parameter received in
>>     'msg->msg_cb.fct == 0'
>>              | tid:Main 09/12/12,23:05:42.254813        in
>>     fd_msg_send_timeout@/freeDiameter/freeDiameter-1.1.2/libfdcore/messages.c:326
>>     <mailto:fd_msg_send_timeout@/freeDiameter/freeDiameter-1.1.2/libfdcore/messages.c:326>
>>             @| ERROR: in '__v__ = (fd_msg_anscb_associate( *pmsg,
>>     anscb, data, timeout ))': Invalid argument
>>              | tid:Main 09/12/12,23:05:42.254965        in
>>     fd_send_msg at fd_client.c:838 <mailto:fd_send_msg at fd_client.c:838>
>>             @| ERROR: in '__v__ = (fd_msg_send_timeout( &msg,
>>     msg_callback, (void*)&data, &timeout ))':     Invalid argument.
>>
>>
>>     What are the fields in message structure that need to be updated
>>     while sending same message again?
>>
>>     Regards,
>>      Nilesh
>>
>>
>>
>>     _______________________________________________
>>     Help mailing list
>>     Help at freediameter.net  <mailto:Help at freediameter.net>
>>     http://lists.freediameter.net/cgi-bin/mailman/listinfo/help
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freediameter.net/pipermail/help/attachments/20120918/d71664ec/attachment.html>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic