<p>In progress.<br>
I have some problem with returning number from sipt_get_redirection_number function.<br>
I can print it in c code using<br>
LM_INFO("REDIRECTION NUMBER : %s end \n", sb_s.s);</p>
<p>But when i do<br>
pv_get_strval(msg, param, res, &sb_s);<br>
I got some binary value in kamailio script.</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/pull/1498#issuecomment-392028504">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36Zc_P00NdtCoKCk1ADbnylE3xaebUks5t1-8cgaJpZM4TR8HV">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36Zbh0DSiH45piAAshmU3SCo-IYzVNks5t1-8cgaJpZM4TR8HV.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/pull/1498#issuecomment-392028504","url":"https://github.com/kamailio/kamailio/pull/1498#issuecomment-392028504","name":"View Pull Request"},"description":"View this Pull Request 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":"PERSON","message":"@sergey-vb in #1498: In progress.\r\nI have some problem with returning number from sipt_get_redirection_number function.\r\nI can print it in c code using \r\nLM_INFO(\"REDIRECTION NUMBER : %s end \\n\", sb_s.s);\r\n\r\nBut when i do \r\npv_get_strval(msg, param, res, \u0026sb_s);\r\nI got some binary value in kamailio script.\r\n"}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/1498#issuecomment-392028504"}}}</script>
<script type="application/ld+json">{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "37567f93-e2a7-4e2a-ad37-a9160fc62647",
"title": "Re: [kamailio/kamailio] sipt: Add functions to work with forwarding info (#1498)",
"sections": [
{
"text": "",
"activityTitle": "**Sergey Basov**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@sergey-vb",
"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\": 1498,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close pull request",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"PullRequestClose\",\n\"repositoryFullName\": \"kamailio/kamailio\",\n\"pullRequestId\": 1498\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/kamailio/kamailio/pull/1498#issuecomment-392028504"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 323469781\n}"
}
],
"themeColor": "26292E"
}</script>