[OpenSIPS-Devel] Sending INFO from MI

Alex Massover alex at jajah.com
Wed Sep 15 13:48:24 CEST 2010


Hi,

Yes, that is a complication.

As far as I understand dialog module is able to handle CSeqs for both direction. The dirty workaround can be 'fix_dlg_seq()' function exported by dialog and to be called before forwarding request (maybe some flag can be turned on). 

For example, after loose_route():
if (is_dlg_flag_set("16")) {	// indicating that unidirectional request was locally generated, breaking cseq
	fix_dlg_cseq();
}

Or a better solution is making TM aware of dialog and it can check cseqs automatically for every transaction.

-----Original Message-----
From: devel-bounces at lists.opensips.org [mailto:devel-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
Sent: Wednesday, September 15, 2010 2:37 PM
To: OpenSIPS devel mailling list
Subject: Re: [OpenSIPS-Devel] Sending INFO from MI

Hi Alex,

As Ovidiu pointed out, this is not an easy one - if you generate a 
in-dialog request from the proxy, you will de-sync the cseq numbers 
between the 2 end-parties....So any change from the mid-proxy will imply 
the proxy to "fix" all the following cseq numbers in the following 
in-dialog requests (from the end parties).

With the BYE this is not a problem as after BYE there is not other 
"following in-dialog requests" ;)

Regards,
Bogdan

Alex Massover wrote:
>
> Hi,
>
> I need to pass events generated by the external application during the 
> call. I'm thinking about to implement this with INFO.
>
> The idea is to add sending INFO functionality to the dialog module. In 
> analogy with 'dlg_end_dlg' MI function exported by dialog module, I 
> want to add 'dlg_send_info' function. That will receive 2 parameters:
>
> a) Direction (caller, callee, both) – to what side to send INFO
>
> b) Headers to add to INFO
>
> and eventually generate INFO request.
>
> What I'm trying to understand is how complex is to add such 
> functionality. Is the dialog module ready for such extension (I'll 
> look at how 'dlg_end_dlg' is implemented and do similar) or it will 
> require more advanced understanding and major changes to the module 
> design?
>
> --
>
> Best Regards,
>
> Alex Massover
>
> Telephony Group Manager
>
> R&D Department
>
> Jajah Inc.
>
>
>
> This mail was sent via Mail-SeCure System.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
20 - 24 September 2010, Frankfurt, Germany
www.voice-system.ro


_______________________________________________
Devel mailing list
Devel at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

This mail was received via Mail-SeCure System.



This mail was sent via Mail-SeCure System.


More information about the Devel mailing list