# Select Legato Packages

**URL:** <https://forum.legato.io/t/select-legato-packages/2625>\
**Category:** Uncategorized\
**Created:** [August 24, 2017, 1:10pm UTC](https://forum.legato.io/t/select-legato-packages/2625 "2017-08-24T13:10:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allyson](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Allyson](https://forum.legato.io/u/Allyson)\
**Post date:** [August 24, 2017, 1:10pm UTC](https://forum.legato.io/t/select-legato-packages/2625/1 "2017-08-24T13:10:07Z")

</div>

Hello Guys,  
I’m new here. I have issue about how to select packages from legato.  
For example: In legato-17.07.1 has a 3rdParty pjsiip. How build it in my legato system?

Regards,  
Allyson

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [August 25, 2017, 3:41am UTC](https://forum.legato.io/t/select-legato-packages/2625/2 "2017-08-25T03:41:48Z")

</div>

Hi @Allyson,

the pjsip is not yet used by any Legato app, but we should have a sample app that uses it soon.

---

<div class="post-metadata">

**Author:** ![Allyson](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Allyson](https://forum.legato.io/u/Allyson)\
**Post date:** [August 25, 2017, 11:36am UTC](https://forum.legato.io/t/select-legato-packages/2625/3 "2017-08-25T11:36:38Z")

</div>

Hi @CoRfr  
Ok, But how build this lib?

And I have other problem.  
I was re-write module WP8548 and now the system run kernel but get error when initilize filesystem.

How I go to bootloader again to re-write rootfs?

Regards,  
Allyson

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [August 26, 2017, 2:05am UTC](https://forum.legato.io/t/select-legato-packages/2625/4 "2017-08-26T02:05:38Z")

</div>

Hi @Allyson,

for the pjsip lib, you can use externalBuild: [Component Definition .cdef - Legato Docs](http://legato.io/legato-docs/latest/defFilesCdef.html#defFilesCdef_externalBuild)

Here is a sample Component.cdef for pjsip:

```auto
bundles:
{
    file:
    {
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjlib-util.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjlib-util.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjmedia-audiodev.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjmedia-audiodev.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjmedia-codec.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjmedia-codec.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjmedia.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjmedia.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjmedia-videodev.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjmedia-videodev.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjnath.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjnath.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsip-simple.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsip-simple.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsip.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsip.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsip-ua.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsip-ua.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpj.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpj.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsua2.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsua2.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsua.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libpjsua.so.2 /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libsrtp.so /usr/lib/
        ${LEGATO_BUILD}/3rdParty/pjsip/lib/libsrtp.so.2 /usr/lib/
    }
}

externalBuild:
{
    "mkdir -p $${LEGATO_BUILD}/3rdParty/pjsip"
    "cp -rf $${LEGATO_ROOT}/3rdParty/pjsip/* $${LEGATO_BUILD}/3rdParty/pjsip"
    "cd $${LEGATO_BUILD}/3rdParty/pjsip && LD= && ./configure --host=$$($$CC -dumpmachine) --prefix=$${LEGATO_BUILD}/3rdParty/pjsip --disable-libwebrtc --disable-sound --disable-resample --disable-oss --disable-video --disable-small-filter --disable-large-filter --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-sdl --disable-ffmpeg --disable-v4l2 --disable-openh264 --disable-opencore-amr --disable-silk --disable-opus --disable-libyuv --enable-shared && make dep && make clean && make && make install"
}

```

As for the bricked WP85, if you are using a mangOH Green, you should be able to put it back into recovery mode through TP1\_BOOT on switch 7 @ SW401, cf [http://mangoh.io/uploaded-documents/Reference/mangOH%20Green/Discover/Hardware%20User%20Guide/mangOH%20Dev%20Kit%20User%20Guide%20-%20HTML5-Responsive%20HTML5/#t=mangOH\_Dev\_Kit\_User\_Guide\_-\_HTML5%2FHardware%2FHardware.htm&rhsearch=switch&rhhlterm=switch&rhsyns=%20#XREF\_26954\_SW401\_Module](http://mangoh.io/uploaded-documents/Reference/mangOH%20Green/Discover/Hardware%20User%20Guide/mangOH%20Dev%20Kit%20User%20Guide%20-%20HTML5-Responsive%20HTML5/#t=mangOH_Dev_Kit_User_Guide_-_HTML5%2FHardware%2FHardware.htm&rhsearch=switch&rhhlterm=switch&rhsyns=%20#XREF_26954_SW401_Module)

Upon reboot it should be in some kind of ‘recovery mode’ which should allow you to use fdt or swiflash ([https://source.sierrawireless.com/resources/airprime/software/swiflash/](https://source.sierrawireless.com/resources/airprime/software/swiflash/)) to flash a .cwe or .spk that overrides the faulty rootfs.

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [September 22, 2017, 7:12pm UTC](https://forum.legato.io/t/select-legato-packages/2625/5 "2017-09-22T19:12:38Z")

</div>

BTW if you want to have a look at the associated sample app: [[Audio] Add RTP API as a sample application · legatoproject/legato-af@f9d266f · GitHub](https://github.com/legatoproject/legato-af/commit/f9d266fb1b24e55c1482d259464a8ec67be56a9b)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 20, 2018, 10:35am UTC](https://forum.legato.io/t/select-legato-packages/2625/6 "2018-06-20T10:35:34Z")

</div>

I can run the application with the following commands on WP76:  
app restart streamMedia  
app runProc streamMediaTest --exe=rtpTest – AUDIO\_PEER 192.168.2.3

After that I install PJSIP 2.7.2 on Ubuntu, and I can hear the microphone from module to transfer to Ubuntu PC via application ./pjsip-apps/bin/samples/x86\_64-unknown-linux-gnu/streamutil.  
But the sound quality is not good and not clear.

Has anyone tried on WP module with Ubuntu PC for PJSIP audio streaming before?

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [June 20, 2018, 2:53pm UTC](https://forum.legato.io/t/select-legato-packages/2625/7 "2018-06-20T14:53:48Z")

</div>

If I remember correctly, a significant delay is expected given that the whole audio path is quite long and not optimized, even in the app itself.

But as for the audio quality, I can’t remember that being an issue. Do you mean the sound is not well define (bit rate issue?) or does it ‘cut’ from time to time?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [April 8, 2025, 1:17pm UTC](https://forum.legato.io/t/select-legato-packages/2625/8 "2025-04-08T13:17:09Z")

</div>

For those who want to test streamMedia application with ubuntu PC, you can see this document:

> [@Example of VOIP by using streamMedia application](https://forum.legato.io/t/example-of-voip-by-using-streammedia-application/6903):
>
> Example of VOIP by using StreamMedia application:
