<h3>Description</h3>
<pre><code>xinfo("Send the call to CGRates ci='$ci'");
$var(tmp) = '"event":"CGR_AUTH_REQUEST",
        "cgr_category":"$dlg_var(cgrCategory)",
        "cgr_reqtype":"$dlg_var(cgrReqType)",
        "cgr_tenant":"$dlg_var(tenant)",
        "cgr_account":"$dlg_var(cgrAccount)",
        "cgr_destination":"$dlg_var(cgrDestination)",
        "direction":"$dlg_var(profile)",
        "source_user":"$dlg_var(source_user)",
        "recording_url":"",
        "account_code":"$dlg_var(account_code)",
        "billing_cli":"$dlg_var(billing_cli)",
        "cgr_setuptime":"$dlg_var(start_ts)",
        "reseller_id":"$dlg_var(reseller_id)"';
pv_evalx("$var(msg)", "$var(tmp)");
xinfo("--- $$var(tmp):'$var(tmp)'");                                                                                                                                                                                                                                                                                                                            
xinfo("--- $$var(msg):'$var(msg)'");
xinfo("++++");
</code></pre>
<h3>Troubleshooting</h3>
<h4>Log Messages</h4>
<pre><code>May 31 15:07:27 PBX-2117 kamailio[30682]: INFO: <script>: Send the call to CGRates ci='ynfvvklkkcajrfi@slim.torreviejawireless.org'
May 31 15:07:27 PBX-2117 kamailio[30682]: INFO: <script>: --- $var(tmp):'"event":"CGR_AUTH_REQUEST",#012        "cgr_category":"$dlg_var(cgrCategory)",#012        "cgr_reqtype":"$dlg_var(cgrReqType)",#012        "cgr_tenant":"$dlg_var(tenant)",#012        "cgr_account":"$dlg_var(cgrAccount)",#012        "cgr_destination":"$dlg_var(cgrDestination)",#012        "direction":"$dlg_var(profile)",#012        "source_user":"$dlg_var(source_user)",#012        "recording_url":"",#012        "account_code":"$dlg_var(account_code)",#012        "billing_cli":"$dlg_var(billing_cli)",#012        "cgr_setuptime":"$dlg_var(start_ts)",#012        "reseller_id":"$dlg_var(reseller_id)"'
May 31 15:07:27 PBX-2117 kamailio[30682]: INFO: <script>: --- $var(msg):'5
May 31 15:07:27 PBX-2117 kamailio[30682]: INFO: <script>: ++++
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.0.6 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, 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_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled with gcc 4.8.2
</code></pre>

<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/1551">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZasLIep1kje5wU-LPct8TsyAF9seks5t4ArSgaJpZM4UVPwv">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZeWWDGeHBOkc1RTMsrMn4ajYTmgfks5t4ArSgaJpZM4UVPwv.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/kamailio/kamailio/issues/1551","url":"https://github.com/kamailio/kamailio/issues/1551","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}</script>
<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":"DESCRIPTION","message":"pv_evalx result in destination pv seems wrong (#1551)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1551"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "37567f93-e2a7-4e2a-ad37-a9160fc62647",
"title": "pv_evalx result in destination pv seems wrong (#1551)",
"sections": [
{
"text": "",
"activityTitle": "**Victor Seva**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@linuxmaniac",
"facts": [
{
"name": "Repository: ",
"value": "kamailio/kamailio"
},
{
"name": "Issue #: ",
"value": 1551
}
]
}
],
"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\": 1551,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"issueId\": 1551\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/issues/1551"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 341113903\n}"
}
],
"themeColor": "26292E"
}</script>