Re: [asterisk-dev] write my self app. Debug

2018-09-17 Thread i...@magnussolution.com
hi, you are correct. I try release two time. best regards > On 17 Sep 2018, at 18:48, Matt Fredrickson wrote: > > On Mon, Sep 17, 2018 at 9:00 AM i...@magnussolution.com > > mailto:i...@magnussolution.com>> wrote: >> >> Hi, sorry bother you. >> >> I get a n

Re: [asterisk-dev] write my self app. Debug

2018-09-17 Thread Matt Fredrickson
On Mon, Sep 17, 2018 at 9:00 AM i...@magnussolution.com wrote: > > Hi, sorry bother you. > > I get a new backtrace > > Core was generated by `/usr/sbin/asterisk -f -vvvg -c'. > Program terminated with signal 11, Segmentation fault. > #0 0x7f82ad124c80 in pthread_mutex_lock () from /lib64/libp

Re: [asterisk-dev] write my self app. Debug

2018-09-17 Thread i...@magnussolution.com
Hi, sorry bother you. I get a new backtrace Core was generated by `/usr/sbin/asterisk -f -vvvg -c'. Program terminated with signal 11, Segmentation fault. #0 0x7f82ad124c80 in pthread_mutex_lock () from /lib64/libpthread.so.0 #0 0x7f82ad124c80 in pthread_mutex_lock () from /lib64/libpt

Re: [asterisk-dev] write my self app. Debug

2018-09-14 Thread i...@magnussolution.com
I get from backtrace: Thread 168 (Thread 0x7fb5122be700 (LWP 1411)): #0 0x7fb57e0cdf0d in poll () from /lib64/libc.so.6 #1 0x004b245c in ast_waitfor_nandfds (c=0x7fb554081db8, n=1, fds=0x7fb554081e50, nfds=1, exception=0x0, outfd=0x7fb5122b6c50, ms=0x7fb5122b6c54) at channel.c:3170

Re: [asterisk-dev] write my self app. Debug

2018-09-13 Thread Matt Fredrickson
On Wed, Sep 12, 2018 at 6:10 PM, i...@magnussolution.com wrote: > thanks for you help. > > > I try use backtrace. But I no a expert. > > I using cents 7 64x > > gdb -se "asterisk" -ex "bt full" -ex "thread apply all bt" --batch -c > core.13414 > /tmp/backtrace.txt > > warning: exec file is newer t

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread i...@magnussolution.com
thanks for you help. I try use backtrace. But I no a expert. I using cents 7 64x gdb -se "asterisk" -ex "bt full" -ex "thread apply all bt" --batch -c core.13414 > /tmp/backtrace.txt warning: exec file is newer than core file. Missing separate debuginfo for /usr/lib64/libmyodbc5.so [Thread

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread Alex Villací­s Lasso
El 12/9/18 a las 14:33, i...@magnussolution.com escribió: 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 Have you tried yet F

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread BJ Weschke
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

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread modou lo
Sorry Dear Member you know i have a probleme and i think this way can help me Le mer 12 sept. 2018 20:13, modou lo a écrit : > Sorry Dear > > Le mer 12 sept. 2018 19:58, James Finstrom a écrit : > >> Modou please do not hijack other peoples messages. >> >> As mentioned in your original email >>

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread modou lo
Sorry Dear Le mer 12 sept. 2018 19:58, James Finstrom a écrit : > Modou please do not hijack other peoples messages. > > As mentioned in your original email > > Quote: > > This list is for the purpose of developmental discussion of the > Asterisk source code. For discussion of taxation in VoIP

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread James Finstrom
Modou please do not hijack other peoples messages. As mentioned in your original email Quote: This list is for the purpose of developmental discussion of the Asterisk source code. For discussion of taxation in VoIP services, you might find a better response on the asterisk-biz list or the aster

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread modou lo
hi Dear Member can i have your helping i want to have a code which help me to taxe users services voip/toip each calling in asterisk. Le mer 12 sept. 2018 19:33, i...@magnussolution.com a écrit : > that’s correct. I wrote a ael context with func_odbc and this work very > well. > > But, using my

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread Gaston Draque
You would most likely use ast_log() [main/logger.c] to take care of your logging, but it seems your server is crashing, so you need a backtrace from the core dump.[1][2] so see why your asterisk is dying on you. [1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace [2] https://wiki.as

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread i...@magnussolution.com
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_ER

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread BJ Weschke
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

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread i...@magnussolution.com
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.

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread BJ Weschke
Why a native application? What data are you looking to store in the DB? It seems like you could do what you’re looking to do in the dial plan with func_odbc.  --  BJ Weschke Sent with Airmail On September 12, 2018 at 3:12:35 PM, i...@magnussolution.com (i...@magnussolution.com) wrote: hi, tha

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread Gaston Draque
>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 lea

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread i...@magnussolution.com
hi, thanks for try help me. I using C. I’m create in Asterisk-13/apps/app_mbilling.c Native application to Asterisk. > On 12 Sep 2018, at 15:11, James Finstrom wrote: > > This is missing a lot of useful information. > > How is your app interfaced to asterisk? > ARI? > AGI? > AMI? > > What

Re: [asterisk-dev] write my self app. Debug

2018-09-12 Thread James Finstrom
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 On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com wrote: > > Hello. > > I’m developing a ne

[asterisk-dev] write my self app. Debug

2018-09-12 Thread i...@magnussolution.com
Hello. 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. My app overview: Connect mysql via ODBC, mount the DIAL command and exec