<p>Unfortunalty param.count still can't accept comma (,) as separator.<br>
Code block:</p>
<pre><code>if ($(dlg_var(cgrSuppliers){param.count,,}) > 0)
{
}
</code></pre>
<p>Errors:</p>
<pre><code>ERROR: pv [pv_trans.c:2854]: tr_parse_paramlist(): invalid separator in transformation: count,,}
ERROR: <core> [core/pvapi.c:1715]: tr_lookup(): error parsing [{param.count,,}]
ERROR: <core> [core/pvapi.c:1085]: pv_parse_spec2(): bad tr in pvar name "dlg_var"
ERROR: <core> [core/pvapi.c:1111]: pv_parse_spec2(): invalid parsing in [$(dlg_var(cgrSuppliers){param.count,,})] at (4)
CRITICAL: <core> [core/cfg.y:3508]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 950, column 8-46: Can't get from cache: $(dlg_var(cgrSuppliers){param.count,,})
</code></pre>
<p>kamailio -V</p>
<pre><code>version: kamailio 5.2.0 (x86_64/linux) 535e13
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 535e13
compiled on 19:17:13 Dec  3 2018 with gcc 4.8.5
</code></pre>
<p>cat /etc/redhat-release<br>
<code>CentOS Linux release 7.5.1804 (Core)</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1041#issuecomment-445244403">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZbgfquUldIbEGv1rv0dSsOwGzn0Lks5u2ndygaJpZM4Mm7av">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZZakNdNtlgcCUeTwAjiCt7nyIP9Gks5u2ndygaJpZM4Mm7av.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@slavrov in #1041: Unfortunalty param.count still can't accept comma (,) as separator.\r\nCode block:\r\n```\r\nif ($(dlg_var(cgrSuppliers){param.count,,}) \u003e 0)\r\n{\r\n}\r\n```\r\nErrors:\r\n```\r\nERROR: pv [pv_trans.c:2854]: tr_parse_paramlist(): invalid separator in transformation: count,,}\r\nERROR: \u003ccore\u003e [core/pvapi.c:1715]: tr_lookup(): error parsing [{param.count,,}]\r\nERROR: \u003ccore\u003e [core/pvapi.c:1085]: pv_parse_spec2(): bad tr in pvar name \"dlg_var\"\r\nERROR: \u003ccore\u003e [core/pvapi.c:1111]: pv_parse_spec2(): invalid parsing in [$(dlg_var(cgrSuppliers){param.count,,})] at (4)\r\nCRITICAL: \u003ccore\u003e [core/cfg.y:3508]: yyerror_at(): parse error in config file /etc/kamailio/kamailio.cfg, line 950, column 8-46: Can't get from cache: $(dlg_var(cgrSuppliers){param.count,,})\r\n```\r\nkamailio -V\r\n```\r\nversion: kamailio 5.2.0 (x86_64/linux) 535e13\r\nflags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES\r\nADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144 MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB\r\npoll method support: poll, epoll_lt, epoll_et, sigio_rt, select.\r\nid: 535e13\r\ncompiled on 19:17:13 Dec  3 2018 with gcc 4.8.5\r\n```\r\ncat /etc/redhat-release\r\n`CentOS Linux release 7.5.1804 (Core)`"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1041#issuecomment-445244403"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1041#issuecomment-445244403",
"url": "https://github.com/kamailio/kamailio/issues/1041#issuecomment-445244403",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [kamailio/kamailio] tr_lookup(): error parsing [{param.count,,}] (#1041)",
"sections": [
{
"text": "",
"activityTitle": "**Sergey Lavrov**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@slavrov",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1041,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1041#issuecomment-445244403"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 211531439\n}"
}
],
"themeColor": "26292E"
}
]</script>