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 debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Missing separate debuginfo for /usr/lib64/libmyodbc5.so
Core was generated by `asterisk -vvvg'.
Program terminated with signal 11, Segmentation fault.
#0  ast_odbc_release_obj (obj=0x0) at res_odbc.c:712
712 struct odbc_class *class = obj->parent;


to use ODBC on centos7 and mariaDB 10 I install it

yum -y remove mysql-connector-odbc
yum -y localinstall --nogpgcheck 
http://dev.mysql.com/get/Downloads/Connector-ODBC/5.3/mysql-connector-odbc-5.3.11-1.el7.x86_64.rpm
ln -s /usr/lib64/libmyodbc5w.so  /usr/lib64/libmyodbc5.so 



> On 12 Sep 2018, at 19:28, Alex Villací­s Lasso  
> wrote:
> 
> 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 FastAGI? Ordinary AGI is slowed down by the spawning of an 
> entire process per call. FastAGI just requires a daemon that listens to 
> requests on a TCP/IP port. This is way less invasive than writing a whole new 
> Asterisk application in C. Any bottlenecks would now be located in the 
> FastAGI server and could be tuned without touching the Asterisk core.
> 
> As an aside, just a wild guess, but I think the crashes could be due to one 
> or more race conditions, and the proper locking required to solve them would 
> slow down your C application to the ael-func_odbc level.
> 
> 
> -- 
> _
> -- 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

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 FastAGI? Ordinary AGI is slowed down by the spawning of an entire process per call. FastAGI just requires a daemon that listens to requests on a TCP/IP port. This is way less invasive than writing a whole new Asterisk application in C. 
Any bottlenecks would now be located in the FastAGI server and could be tuned without touching the Asterisk core.


As an aside, just a wild guess, but I think the crashes could be due to one or 
more race conditions, and the proper locking required to solve them would slow 
down your C application to the ael-func_odbc level.


--
_
-- 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

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 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, i...@magnussolution.com 
(i...@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  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, i...@magnussolution.com 
(i...@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  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  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
On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com
 wrote:
>
> 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 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
> To UNSUBSCRIBE or update options visit:
>    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"    : "gaston.dra...@gmail.com",
  "twitter"  : "@gdraque",

Re: [asterisk-dev] Codec negotiation when incoming re-INVITE has no SDP (ASTERISK-28036)

2018-09-12 Thread Richard Mudgett
On Sun, Sep 9, 2018 at 8:23 PM, Daniel Harper  wrote:

> It has been recommended that I bring this up in order to get some
> feedback on ways to move forward regarding this feature "When
> recieving an re-Invite without SDP asterisk can re-offer all available
> codecs supported"
>
> See https://issues.asterisk.org/jira/browse/ASTERISK-28036
>
> I have had a look at the source for res_pjsip_session.c and
> res_pjsip_sdp_rtp.c but I am not sure I have the skillset or knowledge
> to be able to make a patch myself.
>
> I found this in regards to the feature being added to pjsipua
> https://trac.pjsip.org/repos/ticket/1892


For v15+ it looks easier to get the desired behavior.

Looks like in v15+ the res_pjsip_sessions.c:create_local_sdp() function
can be modified to use the configured stream format capabilities when
there is no session->pending_media_state->topology or the topology is empty.

/* We've encountered a situation where we have been told to create a local
SDP but noone has given us any indication
 * of what kind of stream topology they would like. We try to not alter the
current state of the SDP negotiation
 * by using what is currently negotiated. If this is unavailable we fall
back to what is configured on the endpoint.
 */

If there is an active_media_state->topology then we could use that topology
and set the pending_media_state->topology
stream formats to the configured endpoint media formats based on stream
type.

When the session->pending_media_state->topology formats are setup then the
outgoing deferred offer should be correct.

For v13 getting the desired behavior looks to be more difficult to know
when to use the configured
codecs rather than the previously negotiated codecs.

In v13 the same function could also be modified.  Unfortunately, I'm not
seeing a way to know when
to copy the session->endpoint->media.codecs configured capabilities to the
session->req_caps.  If
we knew when to do that the outgoing deferred offer should be correct.

Richard
-- 
_
-- 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

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
>>
>> 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
>> asterisk-users list.
>> On Wed, Sep 12, 2018 at 12:45 PM modou lo  wrote:
>> >
>> > 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 <
>> i...@magnussolution.com> a écrit :
>> >>
>> >> 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  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, i...@magnussolution.com (
>> i...@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 
>> 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 
>> 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
>> >>> On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com
>> >>>  wrote:
>> >>> >
>> >>> > 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 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
>> >>> > To UNSUBSCRIBE or update options visit:
>> >>> >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. 

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 services,
> you might find a better response on the asterisk-biz list or the
> asterisk-users list.
> On Wed, Sep 12, 2018 at 12:45 PM modou lo  wrote:
> >
> > 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 <
> i...@magnussolution.com> a écrit :
> >>
> >> 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  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, i...@magnussolution.com (
> i...@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 
> 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 
> 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
> >>> On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com
> >>>  wrote:
> >>> >
> >>> > 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 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
> >>> > To UNSUBSCRIBE or update options visit:
> >>> >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 

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
asterisk-users list.
On Wed, Sep 12, 2018 at 12:45 PM modou lo  wrote:
>
> 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 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  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, i...@magnussolution.com 
>> (i...@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  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  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
>>> On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com
>>>  wrote:
>>> >
>>> > 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 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
>>> > To UNSUBSCRIBE or update options visit:
>>> >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
>>>

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 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  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, i...@magnussolution.com (
> i...@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  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 
> 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
>> On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com
>>  wrote:
>> >
>> > 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 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
>> > To UNSUBSCRIBE or update options visit:
>> >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": "gaston.dra...@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!  

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.asterisk.org/wiki/pages/viewpage.action?pageId=5243139

On Wed, Sep 12, 2018 at 4:18 PM, i...@magnussolution.com <
i...@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  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 
> 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
>> On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com
>>  wrote:
>> >
>> > 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 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
>> > To UNSUBSCRIBE or update options visit:
>> >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": "gaston.dra...@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
>



-- 
{
  "fullName" : "Gaston Draque",
  "email": "gaston.dra...@gmail.com",
  "twitter"  : "@gdraque",
  "job"  : "VoIP Space Monkey",
  "tags" : ["uc communications","telecom integrator","software

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_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  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, i...@magnussolution.com 
> (i...@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 >> > 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 >> > 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
>>> On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com 
>>> 
>>> mailto:i...@magnussolution.com>> wrote:
>>> >
>>> > 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 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
>>> > To UNSUBSCRIBE or update options visit:
>>> >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: 
>>> 

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
Sent with Airmail

On September 12, 2018 at 3:22:33 PM, i...@magnussolution.com 
(i...@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  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  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
On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com
 wrote:
>
> 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 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
> To UNSUBSCRIBE or update options visit:
>    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"    : "gaston.dra...@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

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.

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  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  > 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
> On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com 
> 
> mailto:i...@magnussolution.com>> wrote:
> >
> > 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 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
> > To UNSUBSCRIBE or update options visit:
> >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": "gaston.dra...@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

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, 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 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 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 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
>> To UNSUBSCRIBE or update options visit:
>> 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



--  
_
-- 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

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
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  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
> On Wed, Sep 12, 2018 at 9:10 AM i...@magnussolution.com
>  wrote:
> >
> > 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 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
> > To UNSUBSCRIBE or update options visit:
> >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": "gaston.dra...@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

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 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 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 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
>> To UNSUBSCRIBE or update options visit:
>>   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



-- 
_
-- 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

[asterisk-dev] Asterisk 16.0.0-rc2 Now Available

2018-09-12 Thread Asterisk Development Team
The Asterisk Development Team would like to announce the second
release candidate of Asterisk 16.0.0.
This release candidate is available for immediate download at 
http://downloads.asterisk.org/pub/telephony/asterisk

The release of Asterisk 16.0.0-rc2 resolves several issues reported by the
community and would have not been possible without your participation.

Thank you!

The following issues are resolved in this release candidate:

Bugs fixed in this release:
---
 * ASTERISK-28033 - AMI event "NewExten" is set to the wrong
  class
  (Reported by lvl)
 * ASTERISK-27988 - alembic: PJSIP
  "mwi_subscribe_replaces_unsolicited" field is integer not
  boolean
  (Reported by Joshua Colp)
 * ASTERISK-28022 - res_pjsip realtime: uri column in
  ps_contacts table can be too short
  (Reported by Florian
  Floimair)

Improvements made in this release:
---
 * ASTERISK-27164 - [patch] Add IPv6 Support for DUNDi
 
  (Reported by Adam Secombe)

For a full list of changes in this release candidate, please see the ChangeLog:
http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-16.0.0-rc2

Thank you for your continued support of Asterisk!
-- 
_
-- 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

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 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 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
> To UNSUBSCRIBE or update options visit:
>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

[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 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
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev