Are you using AEL with your native application where youâre achieving 50 CPS? Â What kind of CPS do you get when you just use the straight up dial plan along with func_odbc? It seems odd to me that youâre getting such a dramatic CPS difference between func_odbc used with an AEL dial plan and odbc within your native application. Iâd have to imagine the bottleneck is somewhere else. As someone else indicated earlier on this thread, if youâre convinced that you need a native application to meet your needs, a backtrace taken against the core dump produced from the Asterisk crash would be your best bet to figure out what went wrong when the Asterisk instance crashed.Â
--Â
BJ Weschke
Sent with Airmail
On September 12, 2018 at 3:37:24 PM, ***@magnussolution.com (***@magnussolution.com) wrote:
thatâs correct. I wrote a ael context with func_odbc and this work very well.
But, using my app_mbilling.c work more faster than ael and func_odbc.
example:
agi 15 CPS
ael-func_odbc 30 CPS
native application 50 CPS
But my native application crash some times.
I add in my code many ast_log(LOG_ERROR,âLINE numberâ); to try fond the issue, but each crash the line is different. And in /var/log/asterisk/full Log file not show any additional information.
Iâm test in production with more than 40 CPS. In test server I send 75 CPS with SIPP and work perfectly.
Best regardsÂ
On 12 Sep 2018, at 16:26, BJ Weschke <***@btwtech.com> wrote:
AGI is limited in its TPS scalability because it needs to fork an external application to complete processing. func_odbc run from within the dial plan does not need to fork anything external so it does not have the same scalability issues that present with an AGI based solution.
--Â
BJ Weschke
Sent with Airmail
On September 12, 2018 at 3:22:33 PM, ***@magnussolution.com (***@magnussolution.com) wrote:
iâm developing a native application to billing in realtime.
I work many years with Asterisk Billing via AGI. But it is very limited to strong CPS. With 10-15 CPS the server crash. Server with 2 core and 4 GB RAM.
With my actual native C application I can get on the same server more than 40 CPS.
I wrote in C the same code that I have in php AGI.
My name is Adilson Magnus, Iâm developer from www.magnusbilling.com Opensource project to Asterisk Billing.
https://github.com/magnussolution/magnusbilling6
Best regards.
On 12 Sep 2018, at 16:11, Gaston Draque <***@gmail.com> wrote:
From the Asterisk side, I would start by looking into the different logging facilities provided[1] but as stated, which Asterisk API you are using will determine which logging facility to look for, how to complement it with your own app.logging and maybe some capturing may be needed during the learning process.
Cheers,
Gaston//
[1]Â https://wiki.asterisk.org/wiki/display/AST/Logging
[1]Â https://wiki.asterisk.org/wiki/display/AST/Logging+Configuration
On Wed, Sep 12, 2018 at 3:11 PM, James Finstrom <***@gmail.com> wrote:
This is missing a lot of useful information.
How is your app interfaced to asterisk?
ARI?
AGI?
AMI?
What language?
Are you using a library?
There simply isn't enough here to give a qualified answer
Post by i***@magnussolution.comHello.
Iâm developing a new app. But iâm a problem. The app crash and restart. This cause that all call hangup.
My question is about DEBUG, where or how, I can get details about errors?
Exist any documentation to DEBUG.
Connect mysql via ODBC, mount the DIAL command and execute the call, after save call data in my mysql database via ODBC.
Best regards.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference
asterisk-dev mailing list
  http://lists.digium.com/mailman/listinfo/asterisk-dev
--
James Finstrom
Guy who does stuff that is sometimes cool
gpg: https://github.com/jfinstrom.gpg
This email was sent from a personal email account. The content of this
email is not endorsed by my employer or any project I may be a part
of. The contents of this email should be considered my opinion and not
taken as any form of official response. Please keep your hands and
feet in the ride while in motion. Please be sure to tip the wait
staff.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev
--
{
 "fullName" : "Gaston Draque",
 "email"   : "***@gmail.com",
 "twitter"  : "@gdraque",
 "job"      : "VoIP Space Monkey",
 "motto"  : "Clouds are made of pizza & coffee"
}
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Astricon is coming up October 9-11! Â Signup is available at: https://www.asterisk.org/community/astricon-user-conference
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Astricon is coming up October 9-11! Â Signup is available at: https://www.asterisk.org/community/astricon-user-conference
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Astricon is coming up October 9-11! Signup is available at: https://www.asterisk.org/community/astricon-user-conference
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev