<!-- 
RSS generated by JIRA (8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a) at Sat Feb 10 07:14:32 CET 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Jira</title>
    <link>https://jira.astppbilling.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.13.3</version>
        <build-number>813003</build-number>
        <build-date>14-01-2021</build-date>
    </build-info>


<item>
            <title>[ASTPPCOM-144] ASTPP v.3, Inbound call from clients not write to Data Base.</title>
                <link>https://jira.astppbilling.org/browse/ASTPPCOM-144</link>
                <project id="10608" key="ASTPPCOM">ASTPP Community</project>
                    <description>&lt;p&gt;Hi, I&apos;m have one questions about mod_json_cdr and insert cdr to cdrs table. Its not working. i thing its bug. for example in fs_cli a see:&lt;/p&gt;

&lt;p&gt;2016-11-03 11:01:02.127337 &lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; mod_json_cdr.c:271 Process &lt;span class=&quot;error&quot;&gt;&amp;#91;5cd1b590-a1ac-11e6-9e3c-bf48254b27d6.cdr.json&amp;#93;&lt;/span&gt;&lt;br/&gt;
2016-11-03 11:01:02.127337 &lt;span class=&quot;error&quot;&gt;&amp;#91;NOTICE&amp;#93;&lt;/span&gt; switch_core_session.c:1695 Session 541 (sofia/default/86630648@sip.eu) Ended&lt;br/&gt;
2016-11-03 11:01:02.127337 &lt;span class=&quot;error&quot;&gt;&amp;#91;NOTICE&amp;#93;&lt;/span&gt; switch_core_session.c:1699 Close Channel sofia/default/86630648@sip.eu &lt;span class=&quot;error&quot;&gt;&amp;#91;CS_DESTROY&amp;#93;&lt;/span&gt;&lt;br/&gt;
2016-11-03 11:01:15.707359 &lt;span class=&quot;error&quot;&gt;&amp;#91;NOTICE&amp;#93;&lt;/span&gt; switch_channel.c:1104 New Channel sofia/default/86630648@sip.eu &lt;span class=&quot;error&quot;&gt;&amp;#91;756-a1ac-11e6-9e7b-bf27d6&amp;#93;&lt;/span&gt;&lt;br/&gt;
2016-11-03 11:01:15.707359 &lt;span class=&quot;error&quot;&gt;&amp;#91;WARNING&amp;#93;&lt;/span&gt; sofia_reg.c:1792 SIP auth challenge (INVITE) on sofia profile &apos;default&apos; for &lt;span class=&quot;error&quot;&gt;&amp;#91;00440123123@sip.eu&amp;#93;&lt;/span&gt; from ip 8.3.4.2&lt;br/&gt;
2016-11-03 11:01:15.807345 &lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; mod_dialplan_xml.c:637 Processing &#65533;&#65533;&#65533;&#65533;&#65533;&#65533;&#65533; &amp;lt; 86630648 &amp;gt;-&amp;gt;00440123123 in context default&lt;/p&gt;

&lt;p&gt;and in Master.csv &lt;/p&gt;

&lt;p&gt;&quot;.......&quot;,&quot;86630648&quot;,&quot;00440123123&quot;,&quot;default&quot;,&quot;2016-11-03 11:09:28&quot;,&quot;2016-11-03 11:09:34&quot;,&quot;2016-11-03 11:09:42&quot;,&quot;14&quot;,&quot;8&quot;,&quot;NORMAL_CLEARING&quot;,&quot;5cd1b590-a1ac-11e6-9e3c-bf48254b27d6&quot;,&quot;5cd1b590-a1ac-11e6-9e3c-bf48254b27d6&quot;,&quot;440123123&quot;,&quot;PCMA&quot;,&quot;PCMA&quot;&lt;/p&gt;

&lt;p&gt;but in DataBase it nothing. Billing not function and client have same Credit as before calling.&lt;/p&gt;

&lt;p&gt;Can you check what its ?&lt;/p&gt;</description>
                <environment></environment>
        <key id="11964">ASTPPCOM-144</key>
            <summary>ASTPP v.3, Inbound call from clients not write to Data Base.</summary>
                <type id="10000" iconUrl="https://jira.astppbilling.org/secure/viewavatar?size=xsmall&amp;avatarId=10318&amp;avatarType=issuetype">Task</type>
                                                <status id="10001" iconUrl="https://jira.astppbilling.org/images/icons/status_generic.gif" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="alexzh16">alexzh16</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Nov 2016 15:45:04 +0530</created>
                <updated>Tue, 5 Sep 2017 18:32:00 +0530</updated>
                            <resolved>Tue, 5 Sep 2017 18:32:00 +0530</resolved>
                                                    <fixVersion>v3.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                <comments>
                            <comment id="12727" author="alexzh16" created="Thu, 3 Nov 2016 17:29:29 +0530"  >&lt;p&gt;UPDATE:&lt;br/&gt;
after check log file: &lt;br/&gt;
&lt;em&gt;*&lt;b&gt;Normal billing client xml have&lt;/b&gt;*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:20:57&amp;#93;&lt;/span&gt; _&amp;#42; Directory Starts _****&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;sip_call_id&amp;#93;&lt;/span&gt; =&amp;gt; be1d0be6b9c4eeaf&lt;br/&gt;
_&amp;#42; Directory Ends _****&lt;/p&gt;

&lt;p&gt;&lt;em&gt;*&lt;b&gt;Not Normal billing client xml have&lt;/b&gt;*&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:20:57&amp;#93;&lt;/span&gt; _&amp;#42; Directory Starts _****&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;sip_call_id&amp;#93;&lt;/span&gt; =&amp;gt; 00004f66-dd58705e6bfe1000857a0080f0d51536@192.168.4.5&lt;br/&gt;
_&amp;#42; Directory Ends _****&lt;/p&gt;

&lt;p&gt;after that, Normal billing client xml have have long log with&lt;/p&gt;

&lt;p&gt;_&amp;#42; Directory Ends _****&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:21:04&amp;#93;&lt;/span&gt; Array&lt;br/&gt;
(&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;core-uuid&amp;#93;&lt;/span&gt; =&amp;gt; 5939aee4-a1b4-11e6-b6e6-a5996f04dde6&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;switchname&amp;#93;&lt;/span&gt; ....&lt;br/&gt;
)&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:21:04&amp;#93;&lt;/span&gt; Return cost 0.00&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:21:04&amp;#93;&lt;/span&gt; Return cost 0.00&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:21:04&amp;#93;&lt;/span&gt; Debit :0.00 Cost : 0 Provider Cost : 0.00&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:21:04&amp;#93;&lt;/span&gt; _*********&amp;#42; OUTBOUND CALL ENTRY START _&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:21:04&amp;#93;&lt;/span&gt; INSERT INTO cars ...... values (&apos;974304ee-a1b7-11e6-ba2c-a5996f04dde6&apos;,&apos;4&apos;,&apos;0&apos;,&apos;&quot;00420&quot; &amp;lt;6516581&amp;gt;&apos;,&apos;420&apos;,&apos;0&apos;,4,&apos;10.0.0.15&apos;,&apos;10.0.0.15&apos;,&apos;ORIGINATOR_CANCEL&apos;&lt;br/&gt;
**&amp;#42; OUTBOUND CALL ENTRY END *&lt;/p&gt;

&lt;p&gt;but Normal billing client xml not have long log file, only:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:18:52&amp;#93;&lt;/span&gt; &lt;em&gt;&amp;#42; Directory Ends __&lt;b&gt;&lt;/em&gt;&lt;/b&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:19:05&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:19:05&amp;#93;&lt;/span&gt; Return cost 0.00&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:19:05&amp;#93;&lt;/span&gt; Return cost 0.00&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:19:05&amp;#93;&lt;/span&gt; Debit :0.00 Cost : 0 Provider Cost : 0.00&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:19:05&amp;#93;&lt;/span&gt; _&amp;#42; OUTBOUND CALL ENTRY START _***&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:19:05&amp;#93;&lt;/span&gt; INSERT INTO cdrs (uniqueid,accountid,type,callerid,callednum,billseconds,trunk_id,trunkip,callerip,disposition,callstart,debit,cost,provider_id,pricelist_id,package_id,pattern,notes,rate_cost,reseller_id,reseller_code,reseller_code_destination,reseller_cost,provider_code,provider_code_destination,provider_cost,provider_call_cost,call_direction,calltype,profile_start_stamp,answer_stamp,bridge_stamp,progress_stamp,progress_media_stamp,end_stamp,billmsec,answermsec,waitmsec,progress_mediamsec,flow_billmsec)  values (&apos;&apos;,&apos;0&apos;,&apos;0&apos;,&apos;&apos;,&apos;&apos;,&apos;0&apos;,0,,,&apos;&apos;,&apos;&apos;,&apos;0.00&apos;,&apos;0.00&apos;,0,&apos;&apos;,&apos;0&apos;,&apos;&apos;,&apos;&apos;,&apos;0&apos;,&lt;br/&gt;
&apos;0&apos;,&apos;0&apos;,&apos;&apos;,0,&apos;&apos;,&lt;br/&gt;
&apos;&apos;,0,&apos;0.00&apos;,&apos;internal&apos;,&apos;STANDARD&apos;,&apos;1970-01-01 00:00:00&apos;,&apos;1970-01-01 00:00:00&apos;,&apos;1970-01-01 00:00:00&apos;,&apos;1970-01-01 00:00:00&apos;,&apos;1970-01-01 00:00:00&apos;,&apos;1970-01-01 00:00:00&apos;,,&apos;&apos;,&apos;&apos;,&apos;&apos;,&apos;&apos;)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:19:05&amp;#93;&lt;/span&gt; _*********&amp;#42; OUTBOUND CALL ENTRY END _&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2016-11-03 11:19:05&amp;#93;&lt;/span&gt; _&amp;#42; CDR ends _****&lt;/p&gt;

&lt;p&gt;all customers have same preferences.&lt;/p&gt;</comment>
                            <comment id="12728" author="alexzh16" created="Fri, 4 Nov 2016 14:41:35 +0530"  >&lt;p&gt;UPDATE:&lt;/p&gt;

&lt;p&gt;after enable logger in the file fs/asp.cdr.php i&apos;m se, that array $data its Null. &lt;/p&gt;</comment>
                            <comment id="12730" author="alexzh16" created="Sun, 6 Nov 2016 14:52:08 +0530"  >&lt;p&gt;can you me please send route, where files call astpp step by step after start calling? i can check and send more info about this. in log ngnix, astpp and fs all its ok.&lt;/p&gt;</comment>
                            <comment id="12729" author="smrdoshi" created="Sun, 6 Nov 2016 14:55:18 +0530"  >&lt;p&gt;Do you see any error in apache or astpp log? &lt;/p&gt;</comment>
                            <comment id="12731" author="alexzh16" created="Wed, 9 Nov 2016 20:28:11 +0530"  >&lt;p&gt;so i find where its problem. Problem its with function json_decode and codepage.If clients send symbols in callerid another as ASCII, that json_decode return NULL. &lt;/p&gt;

&lt;p&gt;I&apos;m changed cdr.php severals rows. &lt;br/&gt;
Old: &lt;br/&gt;
   $data = json_decode(file_get_contents(&quot;php://input&quot;),true);&lt;br/&gt;
New:&lt;br/&gt;
   $data = file_get_contents(&quot;php://input&quot;);&lt;br/&gt;
   $data = utf8_encode($data);&lt;br/&gt;
   $data = json_decode($data,true);&lt;/p&gt;

&lt;p&gt;now all working. Only that not good ways for encoding input data. But billing working correct. &lt;/p&gt;

&lt;p&gt;Unfortonely mb_detect_encoding( file_get_contents(&quot;php://input&quot;) ) not working correctly, and I&apos;m not found ways for check, where code page have caller id. Maybe check direct array field with callerid and detect encoding code page. I&apos;m try.&lt;/p&gt;</comment>
                            <comment id="12732" author="smrdoshi" created="Thu, 10 Nov 2016 12:10:00 +0530"  >&lt;p&gt;This is strange. What is your php version?&lt;/p&gt;

&lt;h2&gt;&lt;a name=&quot;BestRegards&quot;&gt;&lt;/a&gt;Best Regards&lt;/h2&gt;

&lt;p&gt;Samir Doshi&lt;br/&gt;
&lt;em&gt;iNextrix Technologie&lt;/em&gt;&lt;em&gt;s Pvt. Ltd&lt;/em&gt;.&lt;br/&gt;
&lt;a href=&quot;http://www.inextrix.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.inextrix.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclaimer:&lt;/em&gt;&lt;br/&gt;
The information contained in this communication is confidential and may be&lt;br/&gt;
legally privileged. It is intended solely for the use of the individual or&lt;br/&gt;
entity to whom it is addressed and others authorised to receive it. If you&lt;br/&gt;
are not the intended recipient you are hereby notified that any disclosure,&lt;br/&gt;
copying, distribution or taking action in reliance of the contents of this&lt;br/&gt;
information is strictly prohibited and may be unlawful.&lt;/p&gt;

&lt;p&gt;On Wed, Nov 9, 2016 at 8:28 PM, alexzh16 notifications@github.com wrote:&lt;/p&gt;

&lt;p&gt;&amp;gt; so i find where its problem. Problem its with function json_decode and&lt;br/&gt;
&amp;gt; codepage.If clients send symbols in callerid another as ASCII, that&lt;br/&gt;
&amp;gt; json_decode return NULL.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; I&apos;m changed cdr.php severals rows.&lt;br/&gt;
&amp;gt; Old:&lt;br/&gt;
&amp;gt; $data = json_decode(file_get_contents(&quot;php://input&quot;),true);&lt;br/&gt;
&amp;gt; New:&lt;br/&gt;
&amp;gt; $data = file_get_contents(&quot;php://input&quot;);&lt;br/&gt;
&amp;gt; $data = utf8_encode($data);&lt;br/&gt;
&amp;gt; $data = json_decode($data,true);&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; now all working. Only that not good ways for encoding input data. But&lt;br/&gt;
&amp;gt; billing working correct.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; Unfortonely mb_detect_encoding( file_get_contents(&quot;php://input&quot;) ) not&lt;br/&gt;
&amp;gt; working correctly, and I&apos;m not found ways for check, where code page have&lt;br/&gt;
&amp;gt; caller id. Maybe check direct array field with callerid and detect encoding&lt;br/&gt;
&amp;gt; code page. I&apos;m try.&lt;br/&gt;
&amp;gt; &lt;br/&gt;
&amp;gt; &#8212;&lt;br/&gt;
&amp;gt; You are receiving this because you commented.&lt;br/&gt;
&amp;gt; Reply to this email directly, view it on GitHub&lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://github.com/iNextrix/ASTPP/issues/144#issuecomment-259433859&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iNextrix/ASTPP/issues/144#issuecomment-259433859&lt;/a&gt;, or mute&lt;br/&gt;
&amp;gt; the thread&lt;br/&gt;
&amp;gt; &lt;a href=&quot;https://github.com/notifications/unsubscribe-auth/AA6gcdKTh5RzPFripTI8cpbEXQCzVLbZks5q8d-EgaJpZM4KoLqt&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/notifications/unsubscribe-auth/AA6gcdKTh5RzPFripTI8cpbEXQCzVLbZks5q8d-EgaJpZM4KoLqt&lt;/a&gt;&lt;br/&gt;
&amp;gt; .&lt;/p&gt;</comment>
                            <comment id="12733" author="alexzh16" created="Thu, 10 Nov 2016 16:22:20 +0530"  >&lt;p&gt;PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59) with version 7, not working.&lt;/p&gt;</comment>
                            <comment id="12734" author="alexzh16" created="Thu, 10 Nov 2016 16:25:16 +0530"  >&lt;p&gt;and I&apos;m think, that will be good make verifications in lib/astpp.cdr.php for the null array $data, with send email notifications, or... another alert.&lt;/p&gt;</comment>
                            <comment id="12735" author="smrdoshi" created="Tue, 5 Sep 2017 18:31:45 +0530"  >&lt;p&gt;We updated code with your given solution and merged into ASTPP 3.5. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10703" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>144</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10006" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i009iv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>