[asterisk-dev] Adding a new module to Asterisk

Nir Simionovich nir.simionovich at gmail.com
Mon Oct 16 04:45:50 CDT 2017


Ok, that helped - looks like I'm linking correctly now.

Different question, I remember their used to be a "safe string copy"
function that I'm supposed to use,
instead of using strcpy. Mainly, I want to parse my configuration file
correctly, but I can't find any
specific methodology for doing this in a uniform asteriskish manner.



On Wed, Oct 11, 2017 at 10:37 AM Alexander Traud <pabstraud at compuserve.com>
wrote:

> > The new [module] relies on a library that I need to introduce to the
> > linker, however, I've tried to figure out how the autotools work in
> > there
>
> Took me a while to understand as well. Have a look at audio-codec modules
> like the one for Codec 2: <http://github.com/traud/asterisk-codec2>.
>
> The required patches for the autotools are in "build_codec2.patch". Then,
> in your actual module, you add a MODULEINFO at the start, like shown in
> "codecs/codec_codec2.c". At the end, you have to call "./bootstrap.sh" once
> before you start "./configure". Then, make should be happy.
>
> If that did not help either, please, explain in more detail, for example
> the error message you are facing or which library you try to link. Are you
> able to compile against its header files already? Furthermore, in which
> directory of the Asterisk project are your added source files?
>
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>
-- 

Kind Regards,

  Nir Simionovich

  GreenfieldTech

  (schedule) http://nirsimionovich.appointy.com/

  (w) http://www.greenfieldtech.net

  (p) +972-73-2557799        (MSN): nirs at greenfieldtech.net

  (m) +972-54-6982826      (GTALK): nir.simionovich at gmail.com

  (f) +972-73-2557202      (SKYPE): greenfieldtech.nir


----------------------------------------------------------

               Zero Your Inbox <https://mailstrom.co/referral/ARZJE> | Cloud
Servers <https://www.digitalocean.com/?refcode=97eeea09917a>

----------------------------------------------------------

*Disclaimer:*

This e-mail is intended solely for the person to whom it is addressed and
may contain confidential or legally privileged information. Access to this
e-mail by anyone else is unauthorized. If an addressing or transmission
error has misdirected this e-mail, please notify the author by replying to
this e-mail and destroy this e-mail and any attachments.
E-mail may be susceptible to data corruption, interception, unauthorized
amendment, viruses and delays or the consequences thereof. If you are not
the intended recipient, be advised that you have received this email in
error and that any use, dissemination, forwarding, printing or copying of
this email is strictly prohibited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20171016/cdc405e2/attachment.html>


More information about the asterisk-dev mailing list