[SR-Users] A parameter with a life span of the entire dialog

Daniel Tryba d.tryba at pocos.nl
Thu Jul 7 16:41:29 CEST 2016


On Thu, Jul 07, 2016 at 02:32:40PM +0000, Jay Li wrote:
> Dear All, I'm trying to set a few parameters for an "INVITE", and
> access their values in the failure routine if the call fails. $var()
> doesn't seem suitable for my purpose as it only lasts for one process.
> I think if I set a $var() in "INVITE", it will be gone when I receive
> the failure response. $sht() seems able to last long but it will be
> accessed by all processes which might include ones not belonging to
> the same dialog. I wonder if somebody would give me some suggestions
> here to handle such situations.  Does Kamailio provide a mechanism to
> set up a parameter with a life span of the entire dialog? Thanks.

Apart from $var/$sht there are also $avp and $dlg_var, which are resp.
transaction and dialog scoped. $avp is available by default. $dlg_var 
http://www.kamailio.org/docs/modules/stable/modules/dialog.html#idp48016508
is available the dialog module.




More information about the sr-users mailing list