Re: [OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1

2021-09-16 Thread Mark Allen
Just posting this to document the end result. The following line to
pass the transcoding parameters I wanted directly to the RTPEngine daemon
worked for me:


transcode-opus/48000/2/32000//stereo--0;useinbandfec--1;maxplaybackrate--16000;sprop-maxcapturerate--16000

NB - The '--' part means '=' and is there to avoid parsing errors in
RTPEngine



On Wed, 15 Sept 2021 at 10:58, Johan De Clercq  wrote:

> No worries
>
> On Wed, Sep 15, 2021, 11:43 Mark Allen  wrote:
>
>> Ah! Thanks Răzvan and Johan. I was thinking that the options described in
>> the OpenSIPS RTPEngine module documentation were the only ones
>> available, but I missed the key phrase...
>>
>> *When passing an option that OpenSIPS is not aware of, it will be
>> blindly sent to the rtpengine daemon to be processed.*
>>
>> ...I should be fine from here I think. Thanks for your help.
>>
>>
>> On Tue, 14 Sept 2021 at 14:29, Răzvan Crainea 
>> wrote:
>>
>>> I think the proper way to do it is
>>>
>>> `transcode-opus/48000/2/32000//maxplaybackrate--48000;stereo--0;useinbandfec--1;maxaveragebitrate--32000`
>>> Anyway, as Johan suggests, follow the rtpengine documentation, you will
>>> find more info there.
>>>
>>> Best regards,
>>>
>>> Răzvan Crainea
>>> OpenSIPS Core Developer
>>> http://www.opensips-solutions.com
>>>
>>> On 9/14/21 15:51, Mark Allen wrote:
>>> > Hi Răzvan
>>> >
>>> > OpenSIPS passes the commands to RTPengine as you supply them, so in
>>> > theory this should be supported. Did you try to set this up? Can
>>> you
>>> > provide any logs about this?
>>> >
>>> >
>>> > No. I'm not sure how I would specify this in the opensips.cfg
>>> > rtpengine_offer parameters. From the documentation for the
>>> > rptengine OpenSIPS module, it doesn't seem as if something like the
>>> > following is an option...
>>> >
>>> >
>>> >
>>> transcode-opus='opus/48000/2/32000//maxplaybackrate=48000;stereo=0;useinbandfec=1;maxaveragebitrate=32000'
>>>
>>> >
>>> >
>>> > ...however, if I have tried this in the code (with or without quotes)
>>> it
>>> > doesn't produce an error, either from OpenSIPS or rtpengine, but
>>> neither
>>> > does it do anything - Opus fmtp in the SDP is not changed. I guess I'm
>>> > looking for the correct OpenSIPS syntax to pass these parameters
>>> > successfully to rtpengine
>>> >
>>> >
>>> >
>>> > ___
>>> > Users mailing list
>>> > Users@lists.opensips.org
>>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>> >
>>>
>>> ___
>>> Users mailing list
>>> Users@lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1

2021-09-15 Thread Johan De Clercq
No worries

On Wed, Sep 15, 2021, 11:43 Mark Allen  wrote:

> Ah! Thanks Răzvan and Johan. I was thinking that the options described in
> the OpenSIPS RTPEngine module documentation were the only ones
> available, but I missed the key phrase...
>
> *When passing an option that OpenSIPS is not aware of, it will be
> blindly sent to the rtpengine daemon to be processed.*
>
> ...I should be fine from here I think. Thanks for your help.
>
>
> On Tue, 14 Sept 2021 at 14:29, Răzvan Crainea  wrote:
>
>> I think the proper way to do it is
>>
>> `transcode-opus/48000/2/32000//maxplaybackrate--48000;stereo--0;useinbandfec--1;maxaveragebitrate--32000`
>> Anyway, as Johan suggests, follow the rtpengine documentation, you will
>> find more info there.
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Core Developer
>> http://www.opensips-solutions.com
>>
>> On 9/14/21 15:51, Mark Allen wrote:
>> > Hi Răzvan
>> >
>> > OpenSIPS passes the commands to RTPengine as you supply them, so in
>> > theory this should be supported. Did you try to set this up? Can you
>> > provide any logs about this?
>> >
>> >
>> > No. I'm not sure how I would specify this in the opensips.cfg
>> > rtpengine_offer parameters. From the documentation for the
>> > rptengine OpenSIPS module, it doesn't seem as if something like the
>> > following is an option...
>> >
>> >
>> >
>> transcode-opus='opus/48000/2/32000//maxplaybackrate=48000;stereo=0;useinbandfec=1;maxaveragebitrate=32000'
>>
>> >
>> >
>> > ...however, if I have tried this in the code (with or without quotes)
>> it
>> > doesn't produce an error, either from OpenSIPS or rtpengine, but
>> neither
>> > does it do anything - Opus fmtp in the SDP is not changed. I guess I'm
>> > looking for the correct OpenSIPS syntax to pass these parameters
>> > successfully to rtpengine
>> >
>> >
>> >
>> > ___
>> > Users mailing list
>> > Users@lists.opensips.org
>> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> >
>>
>> ___
>> Users mailing list
>> Users@lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1

2021-09-15 Thread Mark Allen
Ah! Thanks Răzvan and Johan. I was thinking that the options described in
the OpenSIPS RTPEngine module documentation were the only ones
available, but I missed the key phrase...

*When passing an option that OpenSIPS is not aware of, it will be
blindly sent to the rtpengine daemon to be processed.*

...I should be fine from here I think. Thanks for your help.


On Tue, 14 Sept 2021 at 14:29, Răzvan Crainea  wrote:

> I think the proper way to do it is
>
> `transcode-opus/48000/2/32000//maxplaybackrate--48000;stereo--0;useinbandfec--1;maxaveragebitrate--32000`
> Anyway, as Johan suggests, follow the rtpengine documentation, you will
> find more info there.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
> On 9/14/21 15:51, Mark Allen wrote:
> > Hi Răzvan
> >
> > OpenSIPS passes the commands to RTPengine as you supply them, so in
> > theory this should be supported. Did you try to set this up? Can you
> > provide any logs about this?
> >
> >
> > No. I'm not sure how I would specify this in the opensips.cfg
> > rtpengine_offer parameters. From the documentation for the
> > rptengine OpenSIPS module, it doesn't seem as if something like the
> > following is an option...
> >
> >
> >
> transcode-opus='opus/48000/2/32000//maxplaybackrate=48000;stereo=0;useinbandfec=1;maxaveragebitrate=32000'
>
> >
> >
> > ...however, if I have tried this in the code (with or without quotes) it
> > doesn't produce an error, either from OpenSIPS or rtpengine, but neither
> > does it do anything - Opus fmtp in the SDP is not changed. I guess I'm
> > looking for the correct OpenSIPS syntax to pass these parameters
> > successfully to rtpengine
> >
> >
> >
> > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1

2021-09-14 Thread Răzvan Crainea
I think the proper way to do it is 
`transcode-opus/48000/2/32000//maxplaybackrate--48000;stereo--0;useinbandfec--1;maxaveragebitrate--32000`
Anyway, as Johan suggests, follow the rtpengine documentation, you will 
find more info there.


Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 9/14/21 15:51, Mark Allen wrote:

Hi Răzvan

OpenSIPS passes the commands to RTPengine as you supply them, so in
theory this should be supported. Did you try to set this up? Can you
provide any logs about this?


No. I'm not sure how I would specify this in the opensips.cfg 
rtpengine_offer parameters. From the documentation for the 
rptengine OpenSIPS module, it doesn't seem as if something like the 
following is an option...


 
transcode-opus='opus/48000/2/32000//maxplaybackrate=48000;stereo=0;useinbandfec=1;maxaveragebitrate=32000' 



...however, if I have tried this in the code (with or without quotes) it 
doesn't produce an error, either from OpenSIPS or rtpengine, but neither 
does it do anything - Opus fmtp in the SDP is not changed. I guess I'm 
looking for the correct OpenSIPS syntax to pass these parameters 
successfully to rtpengine




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1

2021-09-14 Thread Johan De Clercq
Follow the rtpengine documentation. The necessary flags are given there,
just pass them in an avp to rtpengine_offer or answer

On Tue, Sep 14, 2021, 14:55 Mark Allen  wrote:

> Hi Răzvan
>
> OpenSIPS passes the commands to RTPengine as you supply them, so in
>> theory this should be supported. Did you try to set this up? Can you
>> provide any logs about this?
>>
>>
> No. I'm not sure how I would specify this in the opensips.cfg
> rtpengine_offer parameters. From the documentation for the
> rptengine OpenSIPS module, it doesn't seem as if something like the
> following is an option...
>
>
> transcode-opus='opus/48000/2/32000//maxplaybackrate=48000;stereo=0;useinbandfec=1;maxaveragebitrate=32000
> '
>
> ...however, if I have tried this in the code (with or without quotes) it
> doesn't produce an error, either from OpenSIPS or rtpengine, but neither
> does it do anything - Opus fmtp in the SDP is not changed. I guess I'm
> looking for the correct OpenSIPS syntax to pass these parameters
> successfully to rtpengine
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1

2021-09-14 Thread Mark Allen
Hi Răzvan

OpenSIPS passes the commands to RTPengine as you supply them, so in
> theory this should be supported. Did you try to set this up? Can you
> provide any logs about this?
>
>
No. I'm not sure how I would specify this in the opensips.cfg
rtpengine_offer parameters. From the documentation for the
rptengine OpenSIPS module, it doesn't seem as if something like the
following is an option...


transcode-opus='opus/48000/2/32000//maxplaybackrate=48000;stereo=0;useinbandfec=1;maxaveragebitrate=32000
'

...however, if I have tried this in the code (with or without quotes) it
doesn't produce an error, either from OpenSIPS or rtpengine, but neither
does it do anything - Opus fmtp in the SDP is not changed. I guess I'm
looking for the correct OpenSIPS syntax to pass these parameters
successfully to rtpengine
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1

2021-09-14 Thread Răzvan Crainea

Hi, Mark!

OpenSIPS passes the commands to RTPengine as you supply them, so in 
theory this should be supported. Did you try to set this up? Can you 
provide any logs about this?


Best regards,

Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com

On 9/14/21 14:01, Mark Allen wrote:

Hi all,

I'm using RTPEngine for transcoding between Opus and PCMU. According to 
the RTPEngine documentation (https://github.com/sipwise/rtpengine 
), it can accept formatting 
parameters for CODECs that support them. For instance, Opus allows you 
to change the maxaveragebitrate. However, in the OpenSIPS documentation 
for the RTPEngine module, it only seems to show support for the default 
options when transcoding - e.g."transcode-opus". Is there a way in 
OpenSIPS to tell RTPEngine to use values other than the defaults?


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] RTPEngine - changing codec format parameters from default values when transcoding - OpenSIPS 3.1

2021-09-14 Thread Mark Allen
Hi all,

I'm using RTPEngine for transcoding between Opus and PCMU. According to the
RTPEngine documentation (https://github.com/sipwise/rtpengine), it can
accept formatting parameters for CODECs that support them. For instance,
Opus allows you to change the maxaveragebitrate. However, in the OpenSIPS
documentation for the RTPEngine module, it only seems to show support for
the default options when transcoding - e.g."transcode-opus". Is there a way
in OpenSIPS to tell RTPEngine to use values other than the defaults?
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users