Yes, and yes. -- Sent from my BlackBerry. Please excuse errors and brevity.
I tried with $sht(myhash=>$ci::state) = "call_start". It works fine!! Many thanks. Is that could work too: $sht(myhash=>$ci::$ft::state) = "call_start"? To delete this, can I do sht_rm_name_re("myhash=>$ci");? I want to be sure that after the call ends, everything is cleared. Igor. De : Igor Potjevlesch [mailto:igor.potjevle...@gmail.com] I just tried with RR but it didn't really match what I want to do. HTAble with Call-ID+From-tag is a really interesting idea. I start reading the documentation of the module. Have you an example of what this might look like? Regards, Igor. De : sr-users [mailto:sr-users-boun...@lists.sip-router.org] De la part de Alex Balashov It's pretty straightforward using the right transformations on $hdr(Record-Route). Have a look at the transformations docs. --
Indeed, RR could do the job. But it will not be easy to get the value after. It could be possible with regex I guess. I will look at htable too. It's looks to be easier than dialog. For AVPOPS, why not. I'm just afraid with the delay. Many thanks for all these suggestions. Igor. De : sr-users [mailto:sr-users-boun...@lists.sip-router.org] De la part de Alex Balashov Why not an RR parameter? It's probably the most reliable way to store some dialog-persistent data, since it doesn't depend on any in-memory/runtime state to be kept by the proxy itself, instead using the SIP messaging itself as a persistence layer. The only trouble with this approach is that it relies on correct RR behaviour by both endpoints and of course neither hides the value from the endpoints not prevents them from manipulating it. If the latter aspects are a concern, $dlg vars are probably the way to go. If you don't want to use the dialog module, use an 'htable' with Call-ID + From-tag as key. --
Well, you can also put them in some storage backend e.g. MySQL, PGSQL using AVPOPS or memory caches such as Redis etc. Another way is to set it as record-route parameter using RR module. (not recommended) Thank you. On Mon, Feb 16, 2015 at 6:42 PM, Igor Potjevlesch <igor.potjevle...@gmail.com> wrote:
|
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users