[prev in list] [next in list] [prev in thread] [next in thread]
List: openser-users
Subject: [SR-Users] use $var or $avp in ds_list_exists & ds_select dispatcher function
From: Patrick Karton <patrickarton () hotmail ! com>
Date: 2022-01-19 18:29:46
Message-ID: AM0PR0402MB3778829796626C0F29E8DAD6DF599 () AM0PR0402MB3778 ! eurprd04 ! prod ! outlook ! com
[Download RAW message or body]
Hello im using kamailio 5.5.3
and im trying to use pseudo vars in ds_list_exists and ds_select function but it does not work.
ds_list_exists return -2
with ds_list_exists("6") it works
$var(dset)=6 or $avp(dset)=6 it does not work
ds_list_exists("$var(dset)") --> return -2
ds_list_exists("$avp(dset)") --> return -2
Thanks.
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> Hello im using kamailio 5.5.3</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> and im trying to use pseudo vars in ds_list_exists and \
ds_select function but it does not work.</div> <div style="font-family: Calibri, \
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, \
255);display:inline !important">ds_list_exists<span> return \
-2</span></span><br> </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, \
255);display:inline !important"><span><br> </span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, \
255);display:inline !important"><span>with <span \
style="background-color:rgb(255, 255, 255);display:inline \
!important">ds_list_exists("6") it works</span></span></span></div> <div \
style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: \
rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, 255);display:inline \
!important"><span><span style="background-color:rgb(255, 255, 255);display:inline \
!important"><br> </span></span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, \
255);display:inline !important"><span><span style="background-color:rgb(255, 255, \
255);display:inline !important">$var(dset)=6 or <span \
style="background-color:rgb(255, 255, 255);display:inline !important">$avp(dset)=6 \
it does not work</span></span></span></span></div> <div style="font-family: Calibri, \
Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> <span \
style="background-color:rgb(255, 255, 255);display:inline !important"><span><span \
style="background-color:rgb(255, 255, 255);display:inline !important"><span \
style="background-color:rgb(255, 255, 255);display:inline !important"><br> \
</span></span></span></span></div> <div style="font-family: Calibri, Arial, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> <span \
style="background-color:rgb(255, 255, 255);display:inline !important"><span><span \
style="background-color:rgb(255, 255, 255);display:inline !important"><span \
style="background-color:rgb(255, 255, 255);display:inline !important"><span \
style="background-color:rgb(255, 255, 255);display:inline \
!important">ds_list_exists("<span style="background-color:rgb(255, 255, \
255);display:inline !important">$var(dset)</span>")
--> return -2</span><br>
</span></span></span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, \
255);display:inline !important"><span><span style="background-color:rgb(255, 255, \
255);display:inline !important"></span></span></span></div> <div style="font-family: \
Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> <span \
style="background-color:rgb(255, 255, 255);display:inline \
!important">ds_list_exists("</span><span \
style="margin:0px;background-color:rgb(255, 255, 255);display:inline \
!important">$avp(dset)</span><span style="background-color:rgb(255, 255, \
255);display:inline !important">") <span style="background-color:rgb(255, \
255, 255);display:inline !important">--> return -2</span></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, \
255);display:inline !important"><span style="background-color:rgb(255, 255, \
255);display:inline !important"><br> </span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, \
255);display:inline !important"><span style="background-color:rgb(255, 255, \
255);display:inline !important"><br> </span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; \
color: rgb(0, 0, 0);"> <span style="background-color:rgb(255, 255, \
255);display:inline !important"><span style="background-color:rgb(255, 255, \
255);display:inline !important">Thanks.</span></span></div> </body>
</html>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--===============1313370896==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic