[prev in list] [next in list] [prev in thread] [next in thread]
List: sr-users
Subject: Re: [SR-Users] $sel variable
From: Uri Shacked <ushacked () gmail ! com>
Date: 2011-11-30 12:26:08
Message-ID: CAMMbDhQHNwxvDAqY2e65T4Me0grOKArCoGQJGN5Gr8aC2nQBbA () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
thanks.
i used the pv module instead. $shv() seems a good solution as well.
On Wed, Nov 30, 2011 at 12:46 PM, Daniel-Constantin Mierla <
miconda@gmail.com> wrote:
> Hello,
>
> if you declare a custom global variable like:
>
> grp.var = 0 desc "my description"
>
> Then do:
>
> sercmd cfg.seti grp var 1
>
> to change its value to 1
>
> You have to load ctl and cfg_rpc modules.
>
> Cheers,
> Daniel
>
>
> On 11/29/11 8:44 AM, Uri Shacked wrote:
>
> what i am trying to do is to have a parameter on the script that is
> global and all instances can use it.
> i would like to be able to change the parameter while kamailio is running.
> and then based on this parameter to make a decision. for example -
> gracefuly stop.
>
> the explanation given in the topic " gracefuly stop kamailio" seems good
> but i didn't understand how to use it exactly.
>
> thanks,
> Uri
>
>
> > what do you want to change from command line to a $sel(...) variable? If
> > you give a more specific example, I can comment more. Not all $sel(...) can
> > be changed from command line -- $sel(...) started in SER when Kamailio and
> > SER were different projects, many features offered by $sel(...) are
> > available via pseudo-variables.
> >
> > Cheers,
> > Daniel
> >
> > On 11/28/11 12:16 PM, Uri Shacked wrote:
> >
> > can you expend of the $sel variable?
> > how exaclty do i change it from the command line?
> > where do i define it and how in the config...
> > there is not explenation for that in the PV module..only for $shv....
> >
> >
> >
> > _______________________________________________
> > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing \
> > listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
> >
> >
> > --
> > Daniel-Constantin Mierla -- http://www.asipto.com
> > Kamailio Advanced Training, Dec 5-8, Berlin: \
> > http://asipto.com/u/kathttp://linkedin.com/in/miconda -- \
> > http://twitter.com/miconda
> >
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing \
> listsr-users@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- http://www.asipto.com
> Kamailio Advanced Training, Dec 5-8, Berlin: \
> http://asipto.com/u/kathttp://linkedin.com/in/miconda -- http://twitter.com/miconda \
>
[Attachment #5 (text/html)]
<div dir="ltr"><div>thanks.</div>
<div>i used the pv module instead. $shv() seems a good solution as \
well.<br><br></div> <div class="gmail_quote">On Wed, Nov 30, 2011 at 12:46 PM, \
Daniel-Constantin Mierla <span dir="ltr"><<a \
href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br> \
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; \
PADDING-LEFT: 1ex" class="gmail_quote"> <div text="#000000" \
bgcolor="#FFFFFF">Hello,<br><br>if you declare a custom global variable \
like:<br><br>grp.var = 0 desc "my description"<br><br>Then \
do:<br><br>sercmd cfg.seti grp var 1<br><br>to change its value to 1<br> <br>You have \
to load ctl and cfg_rpc modules.<br><br>Cheers,<br>Daniel<br><br><br>On 11/29/11 8:44 \
AM, Uri Shacked wrote: <blockquote type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div>what i am trying to do is to have a parameter on the script that is global and \
all instances can use it.</div> <div>i would like to be able to change the parameter \
while kamailio is running. and then based on this parameter to make a decision. for \
example - gracefuly stop.</div> <div> </div>
<div>the explanation given in the topic " gracefuly stop kamailio" seems \
good but i didn't understand how to use it exactly.</div> <div> </div>
<div>thanks,</div>
<div>Uri</div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; \
PADDING-LEFT: 1ex" class="gmail_quote"> <div text="#000000" bgcolor="#FFFFFF">what do \
you want to change from command line to a $sel(...) variable? If you give a more \
specific example, I can comment more. Not all $sel(...) can be changed from command \
line -- $sel(...) started in SER when Kamailio and SER were different projects, many \
features offered by $sel(...) are available via pseudo-variables.<br> \
<br>Cheers,<br>Daniel<br><br>On 11/28/11 12:16 PM, Uri Shacked wrote: <blockquote \
type="cite"> <div dir="ltr">
<div>can you expend of the $sel variable?</div>
<div>how exaclty do i change it from the command line?</div>
<div>where do i define it and how in the config...</div>
<div>there is not explenation for that in the PV module..only for $shv....</div>
<div> </div></div><br>
<fieldset></fieldset> <br><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" \
target="_blank">sr-users@lists.sip-router.org</a> <a \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span><font \
color="#888888"> </font></span></pre><span></span></blockquote><span><font \
color="#888888"><br><span class="HOEnZb"><font color="#888888"><pre cols="72">-- \
Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" \
target="_blank">http://www.asipto.com</a> Kamailio Advanced Training, Dec 5-8, \
Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a> \
<a href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a \
href="http://twitter.com/miconda" \
target="_blank">http://twitter.com/miconda</a></pre></font></span></font></span></div><span \
class="HOEnZb"><font color="#888888"></font></span></blockquote> <span \
class="HOEnZb"><font color="#888888"></font></span></div><span class="HOEnZb"><font \
color="#888888"><br></font></span></div><span class="HOEnZb"><font \
color="#888888"><br> <fieldset></fieldset> \
<br><pre>_______________________________________________ SIP Express Router (SER) and \
Kamailio (OpenSER) - sr-users mailing list <a \
href="mailto:sr-users@lists.sip-router.org" \
target="_blank">sr-users@lists.sip-router.org</a> <a \
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" \
target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a> \
</pre></font></span></blockquote><span class="HOEnZb"><font color="#888888"><br><pre \
cols="72">-- Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" \
target="_blank">http://www.asipto.com</a> Kamailio Advanced Training, Dec 5-8, \
Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a> \
<a href="http://linkedin.com/in/miconda" \
target="_blank">http://linkedin.com/in/miconda</a> -- <a \
href="http://twitter.com/miconda" \
target="_blank">http://twitter.com/miconda</a></pre></font></span></div></blockquote></div>
<br></div>
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic