[Spce-user] i can't create invoices help please

David | csr-online SPAIN davidp at csr-online.net
Sat Dec 2 18:24:30 EST 2017


I need to remove cdr data that is processed every time i reboot the process
What is the command to force check cdr and make the rate????

I see this in my scenario:

I make some calls and cost is 0.0 always
I check the log of rate-mate and dont appear this calls
I reboot server and then i see in subscriber / call history the costs fine
I make this steps lot of times and always the same if i dont reboot the server dont apply the cost in “real time”

Thanks


El 3/12/17 0:13, "Spce-user en nombre de David | csr-online SPAIN" <spce-user-bounces at lists.sipwise.com en nombre de davidp at csr-online.net> escribió:

    If i clean from web profiles, customer, etc and start again problema persist

    How i can clean from database profile billing and cdr pending to start with new billing registries?

    Thank you




    El 2/12/17 23:06, "Spce-user en nombre de David | csr-online SPAIN" <spce-user-bounces at lists.sipwise.com en nombre de davidp at csr-online.net> escribió:

        This are the results,  i dont know where i am failling… can you helpme please

        MariaDB [(none)]> select call_id,rating_status from accounting.cdr where
            ->     rating_status !='ok';
        +--------------------------------------------------+---------------+
        | call_id                                          | rating_status |
        +--------------------------------------------------+---------------+
        | 88254MzQzMWNiYmQ0MDlmYzM1OWZmNGMyZTYxNjMwMGY5Mjg | unrated       |
        | 88254YmI1N2Q5ZjgyZDg4YmE2MjNjOWEyYWYxZjA3MzQyZDM | unrated       |
        | 88254MTJlZmM0N2QyMzgzMThhZDUzMTc4NjVhM2UyNWVjOTU | unrated       |
        | 88254YWE2NGUzMGE5MmVlMGQ4YzM4OGU2YzNhN2Q4Y2Q5OTM | unrated       |
        | 88307MGM2MjlkNDc4NTA3MzA1ODRhMWZmODkxNDk0ZDIyMWE | unrated       |
        | 88253MjQ3ZmZkNTIwMTcxYzIzMDM3YTYyMjhlZjc2MmY2NjA | unrated       |
        | 88253NmRjZmI5NTdkZDQ5MDBmNmQzM2M5YWIxZGQwMTkzOTY | unrated       |
        +--------------------------------------------------+---------------+
        7 rows in set (0.00 sec)

        MariaDB [(none)]> exit
        Bye
        root at spce:~# vi /var/log/ngcp/rate-o-mat.log

        Dec  2 22:55:05 spce (info) rate-o-mat[3254]: 4/9 - rate CDR ID 171
        Dec  2 22:55:05 spce (info) rate-o-mat[3254]: Batch of 4 CDRs completed. 4 CDRs rated overall so far.
        Dec  2 22:55:05 spce (info) rate-o-mat[3254]: There were 5 failed CDRs, sleep 30
        Dec  2 22:55:35 spce (info) rate-o-mat[3254]: Grabbed 5 CDRs
        Dec  2 22:55:35 spce (info) rate-o-mat[3254]: 1/5 - rate CDR ID 162
        Dec  2 22:55:35 spce (warning) rate-o-mat[3254]: 1/5 - rating CDR ID 162 aborted  (retry 1): No outbound fee info for profile 4 and source user '34932206686' or user/domain '34932206686 at sbc1eu.csr-online.net' and destination user 'abc34932206686' or user/domain 'abc34932206686 at voicebox.local' found
        Dec  2 22:55:35 spce (info) rate-o-mat[3254]: 1/5 - rate CDR ID 164
        Dec  2 22:55:35 spce (warning) rate-o-mat[3254]: 1/5 - rating CDR ID 164 aborted  (retry 1): No outbound fee info for profile 4 and source user '34932206686' or user/domain '34932206686 at sbc1eu.csr-online.net' and destination user '3000658174990' or user/domain '3000658174990 at 217.130.52.246' found
        Dec  2 22:55:35 spce (info) rate-o-mat[3254]: 1/5 - rate CDR ID 165
        Dec  2 22:55:35 spce (warning) rate-o-mat[3254]: 1/5 - rating CDR ID 165 aborted  (retry 1): No outbound fee info for profile 4 and source user '34932206686' or user/domain '34932206686 at sbc1eu.csr-online.net' and destination user '3000658174990' or user/domain '3000658174990 at 217.130.52.246' found
        Dec  2 22:55:35 spce (info) rate-o-mat[3254]: 1/5 - rate CDR ID 166
        Dec  2 22:55:35 spce (warning) rate-o-mat[3254]: 1/5 - rating CDR ID 166 aborted  (retry 1): No outbound fee info for profile 4 and source user '34932206686' or user/domain '34932206686 at sbc1eu.csr-online.net' and destination user '3000658174990' or user/domain '3000658174990 at 217.130.52.246' found
        Dec  2 22:55:35 spce (info) rate-o-mat[3254]: 1/5 - rate CDR ID 168
        Dec  2 22:55:35 spce (warning) rate-o-mat[3254]: 1/5 - rating CDR ID 168 aborted  (retry 1): No outbound fee info for profile 3 and source user '34932206686' or user/domain '34932206686 at sbc1eu.csr-online.net' and destination user 'abc34932206686' or user/domain 'abc34932206686 at voicebox.local' found
        Dec  2 22:55:35 spce (info) rate-o-mat[3254]: Batch of 0 CDRs completed. 4 CDRs rated overall so far.
        Dec  2 22:55:35 spce (info) rate-o-mat[3254]: There were 5 failed CDRs, sleep 30
        Dec  2 22:56:05 spce (info) rate-o-mat[3254]: Grabbed 5 CDRs
        Dec  2 22:56:05 spce (info) rate-o-mat[3254]: 1/5 - rate CDR ID 162
        Dec  2 22:56:05 spce (crit) rate-o-mat[3254]: 1/5 - rating CDR ID 162 aborted (failed 3 times), please fix it manually: No outbound fee info for profile 4 and source user '34932206686' or user/domain '34932206686 at sbc1eu.csr-online.net' and destination user 'abc34932206686' or user/domain 'abc34932206686 at voicebox.local' found
        Dec  2 22:56:05 spce (notice) rate-o-mat: 1/5 - rating CDR ID 162 aborted (failed 3 times), please fix it manually: No outbound fee info for profile 4 and source user '34932206686' or user/domain '34932206686 at sbc1eu.csr-online.net' and destination user 'abc34932206686' or user/domain 'abc34932206686 at voicebox.local' found
                                                                                                        45,1        Final


        El 1/12/17 9:54, "Irina Peshinskaya" <ipeshinskaya at sipwise.com> escribió:

            Dear David,

            Invoice call costs are taken directly from the accounting.cdr table.
            Here calls are processed by rate-o-mat, based on your fees values. Could
            you please check if your calls were processed by rate-o-mat?

                   select call_id,rating_status from accounting.cdr where
            rating_status !='ok';

            ?

            Also some useful information may be found in the rate-o-mat log:
            /var/log/ngcp/rate-o-mat.log

            Best regards,
            Irina Peshinskaya


            On 30.11.2017 18:13, David | csr-online SPAIN wrote:
            > Sorry to every body i cant applu billing fees to my calls and i am in the last versión and fixes
            > All calls appear 0.0 cost
            >
            > Any help please?
            >
            >
            > El 30/11/17 16:58, "Spce-user en nombre de David | csr-online SPAIN" <spce-user-bounces at lists.sipwise.com en nombre de davidp at csr-online.net> escribió:
            >
            >      I have a billing profile but i dont have opción in the panel to delete
            >      By i mistake i assign 2 billing profiles to same reseller
            >
            >      How i can remove profile bill?’ please
            >
            >
            >      El 30/11/17 16:05, "David | csr-online SPAIN" <davidp at csr-online.net> escribió:
            >
            >          Working invoices thansk a lot
            >
            >
            >          El 30/11/17 11:45, "Spce-user en nombre de David | csr-online SPAIN" <spce-user-bounces at lists.sipwise.com en nombre de davidp at csr-online.net> escribió:
            >
            >              Thanks a lot i try
            >
            >              El 30/11/17 11:44, "Irina Peshinskaya" <ipeshinskaya at sipwise.com> escribió:
            >
            >                  Dear David,
            >
            >                  you need to upgrade ngcp-panel with command:
            >
            >                           apt-get install ngcp-panel
            >
            >                  and after that restart ngcp-panel service:
            >
            >                           service ngcp-panel restart
            >
            >                  Best regards,
            >                  Irina Peshinskaya
            >
            >                  On 30.11.2017 12:41, David | csr-online SPAIN wrote:
            >                  > Sorry for this question what steps i do to install/upgrade to the fix?
            >                  >
            >                  > Thank you
            >                  >
            >                  >
            >                  > El 30/11/17 11:35, "Irina Peshinskaya" <ipeshinskaya at sipwise.com> escribió:
            >                  >
            >                  >      Dear David,
            >                  >
            >                  >      We have released a hotfix for this issue.
            >                  >      Kindly find the fix in the ngcp-panel mr5.5.1.5
            >                  >
            >                  >      Best regards,
            >                  >      Irina Peshinskaya
            >                  >
            >                  >      On 29.11.2017 23:19, David | csr-online SPAIN wrote:
            >                  >      > I try with all reseller,s customers and the error always the same in version 5.5.1
            >                  >      >
            >                  >      > In panel.log the error was:
            >                  >      >
            >                  >      > Nov 29 22:12:32 spce ngcp-panel: ERROR: IP=83.49.24.24 CALLED=Controller::Invoice::create TX=14FBAAD9E1E2DDA0 USER=administrator DATA={ 'contract.id' => '6', 'template.id' => '2', 'period' => '2017-11', 'save' => 'Save', 'submitid' => ''} MSG="Failed to create invoice (DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Unknown column 'me.source_cli_suppression_id' in 'field list' [for Statement "SELECT `me`.`source_user`, `me`.`source_domain`, `me`.`source_cli`, `me`.`destination_user_in`, `me`.`source_cli_suppression_id`, `me`.`destination_user_in_suppression_id`, `me`.`start_time`, `me`.`duration`, `me`.`call_type`, `me`.`source_customer_cost`, `source_customer_billing_zones_history`.`zone`, `source_customer_billing_zones_history`.`detail` FROM `accounting`.`cdr` `me` LEFT JOIN `billing`.`billing_zones_history` `source_customer_billing_zones_history` ON `source_customer_billing_zones_history`.`id` = `me`.`source_customer_billing_zone_id` WHERE ( ( `call_status` = ? AND `source_account_id` = ? AND `source_user_id` != ? AND ( `start_time` >= ? AND `start_time` <= ? ) ) ) ORDER BY `start_time`" with ParamValues: 0='ok', 1="6", 2='0', 3=1509494400, 4=1512086399] at /usr/share/perl5/NGCP/Panel/Utils/Invoice.pm line 84#012)" LOG=""
            >                  >      >
            >                  >      >
            >                  >      > Thank you very much
            >                  >      >
            >                  >      >
            >                  >      >
            >                  >      > Cordialment | Atentamente | Sincerely
            >                  >      > David Pablo Mitchell
            >                  >      > CTO
            >                  >      >
            >                  >      > CSR ONLINE
            >                  >      > Movil: +34 658174990
            >                  >      > Tel.Oficina:+34 931860160 / +34 902056355 ext.101
            >                  >      > Mail: davidp at csr-online.net
            >                  >      > Web: www.csr-online.net
            >                  >      > You run your business, we run your IT.
            >                  >      >
            >                  >      >
            >                  >      > La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.
            >                  >      > _______________________________________________
            >                  >      > Spce-user mailing list
            >                  >      > Spce-user at lists.sipwise.com
            >                  >      > https://lists.sipwise.com/listinfo/spce-user
            >                  >
            >                  >
            >                  >
            >                  >
            >                  >
            >                  > Cordialment | Atentamente | Sincerely
            >                  > David Pablo Mitchell
            >                  > CTO
            >                  >
            >                  > CSR ONLINE
            >                  > Movil: +34 658174990
            >                  > Tel.Oficina:+34 931860160 / +34 902056355  ext.101
            >                  > Mail: davidp at csr-online.net
            >                  > Web: www.csr-online.net
            >                  > You run your business, we run your IT.
            >                  >
            >                  >
            >                  > La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.
            >
            >
            >
            >
            >
            >              Cordialment | Atentamente | Sincerely
            >              David Pablo Mitchell
            >              CTO
            >
            >              CSR ONLINE
            >              Movil: +34 658174990
            >              Tel.Oficina:+34 931860160 / +34 902056355  ext.101
            >              Mail: davidp at csr-online.net
            >              Web: www.csr-online.net
            >              You run your business, we run your IT.
            >
            >
            >              La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.
            >              _______________________________________________
            >              Spce-user mailing list
            >              Spce-user at lists.sipwise.com
            >              https://lists.sipwise.com/listinfo/spce-user
            >
            >              Cordialment | Atentamente | Sincerely
            >
            >
            >
            >
            >              Movil:
            >              Tel.Oficina:
            >              Mail:
            >              Web: www.csr-online.net
            >              You run your business, we run your IT.
            >
            >
            >              La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.
            >
            >
            >
            >
            >
            >      Cordialment | Atentamente | Sincerely
            >      David Pablo Mitchell
            >      CTO
            >
            >      CSR ONLINE
            >      Movil: +34 658174990
            >      Tel.Oficina:+34 931860160 / +34 902056355  ext.101
            >      Mail: davidp at csr-online.net
            >      Web: www.csr-online.net
            >      You run your business, we run your IT.
            >
            >
            >      La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.
            >      _______________________________________________
            >      Spce-user mailing list
            >      Spce-user at lists.sipwise.com
            >      https://lists.sipwise.com/listinfo/spce-user
            >
            >      Cordialment | Atentamente | Sincerely
            >
            >
            >
            >
            >      Movil:
            >      Tel.Oficina:
            >      Mail:
            >      Web: www.csr-online.net
            >      You run your business, we run your IT.
            >
            >
            >      La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.
            >
            >
            >
            > Cordialment | Atentamente | Sincerely
            > David Pablo Mitchell
            > CTO
            >
            > CSR ONLINE
            > Movil: +34 658174990
            > Tel.Oficina:+34 931860160 / +34 902056355  ext.101
            > Mail: davidp at csr-online.net
            > Web: www.csr-online.net
            > You run your business, we run your IT.
            >
            >
            > La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.





        Cordialment | Atentamente | Sincerely
        David Pablo Mitchell
        CTO

        CSR ONLINE
        Movil: +34 658174990
        Tel.Oficina:+34 931860160 / +34 902056355  ext.101
        Mail: davidp at csr-online.net
        Web: www.csr-online.net
        You run your business, we run your IT.


        La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.
        _______________________________________________
        Spce-user mailing list
        Spce-user at lists.sipwise.com
        https://lists.sipwise.com/listinfo/spce-user

        Cordialment | Atentamente | Sincerely




        Movil:
        Tel.Oficina:
        Mail:
        Web: www.csr-online.net
        You run your business, we run your IT.


        La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.



    Cordialment | Atentamente | Sincerely
    David Pablo Mitchell
    CTO

    CSR ONLINE
    Movil: +34 658174990
    Tel.Oficina:+34 931860160 / +34 902056355  ext.101
    Mail: davidp at csr-online.net
    Web: www.csr-online.net
    You run your business, we run your IT.


    La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.
    _______________________________________________
    Spce-user mailing list
    Spce-user at lists.sipwise.com
    https://lists.sipwise.com/listinfo/spce-user

    Cordialment | Atentamente | Sincerely




    Movil:
    Tel.Oficina:
    Mail:
    Web: www.csr-online.net
    You run your business, we run your IT.


    La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.



Cordialment | Atentamente | Sincerely
David Pablo Mitchell
CTO

CSR ONLINE
Movil: +34 658174990
Tel.Oficina:+34 931860160 / +34 902056355  ext.101
Mail: davidp at csr-online.net
Web: www.csr-online.net
You run your business, we run your IT.


La información contenida en el mensaje y/o archivo(s) adjunto(s) es confidencial y está destinada a ser leída sólo por la(s) persona(s) a la(s) que va dirigida. Si usted lee este mensaje y no es el destinatario señalado, el empleado o el agente responsable de entregar el mensaje al destinatario, o ha recibido esta comunicación por error, le informamos que está totalmente prohibida, y puede ser ilegal, cualquier divulgación, distribución o reproducción de esta comunicación, y le rogamos que nos lo notifique inmediatamente y nos devuelva el mensaje original a la dirección arriba mencionada.


More information about the Spce-user mailing list