[SR-Users] sdpops command not working

Reda Aouad reda.aouad at gmail.com
Tue May 15 14:31:22 CEST 2012


Can't help anymore on this.

But if you're short on time and need a dirty solution, try the following
functions from textops module:
replace_body_all    OR    subst_body

Match the line "m=type..." using a grep expression and replace it with and
empty string.

I do that to remove lines from SDP body. I ran into some problems to do it
neatly, so if you have some text messed up while doing it, try to include
\r\n characters in your grep expression.

And finally, why don't you install the dev version?

Reda



On Tue, May 15, 2012 at 2:22 PM, Grégoire Vandendeurpel <
g.vandendeurpel at gmail.com> wrote:

> Hello, I already compiled sdpops in 3.2. I tried an other command like
> sdp_remove_codecs_by_id and this one is working well on the 3.2 version of
> kamailio!
>
> I think, the problem is specifically from the remove media command.
>
> Any suggestion?
>
> Best regards
>
> 2012/5/15 Reda Aouad <reda.aouad at gmail.com>
>
>> Hi,
>>
>> You can MAY BE copy take the sdpops module from dev version and compile
>> it with 3.2. Not sure it would work though.
>> However, it should be easy to install the entire dev version, just as you
>> did with 3.2.3.
>>
>> Reda
>>
>>
>>
>> On Tue, May 15, 2012 at 1:15 PM, Grégoire Vandendeurpel <
>> g.vandendeurpel at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> Thanks for your answer, is there an other way to use it with the 3.2.3
>>> version of Kamailio? Cause I'm doing my final project of my bachloor, and I
>>> really need to use it for.
>>>
>>> Is it possible to change something in the code or.. to make it working
>>> well with my version?
>>>
>>> Best regards
>>>
>>>
>>> 2012/5/15 Reda Aouad <reda.aouad at gmail.com>
>>>
>>>> Hi,
>>>>
>>>> This function is available in Kamailio 3.3 (currently in dev stage) and
>>>> not 3.2.
>>>>
>>>> Reda
>>>>
>>>>
>>>>
>>>> On Tue, May 15, 2012 at 11:49 AM, Grégoire Vandendeurpel <
>>>> g.vandendeurpel at gmail.com> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I use Kamailio 3.2.3 and I used the command from the sdpops module "
>>>>> sdp_remove_media("video");"
>>>>>
>>>>> But when i restarted kamailio, this error appeared:
>>>>>
>>>>> 0(2623) ERROR: <core> [cfg.y:3393]: cfg. parser: failed to find
>>>>> command sdp_remove_media
>>>>> 0(2623) : <core> [cfg.y:3532]: parse error in config file
>>>>> /etc/kamailio/kamailio.cfg, line 721, column 27: unknown command, missing
>>>>> loadmodule?
>>>>>
>>>>> Do You know why ?
>>>>>
>>>>> Cause I loeded the sdpops module.
>>>>>
>>>>> Thanks in advance for your help
>>>>> --
>>>>> *Grégoire Vandendeurpel, *
>>>>> *
>>>>> *
>>>>> *IT Sector*
>>>>>
>>>>> _______________________________________________
>>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>>> sr-users at lists.sip-router.org
>>>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>>> sr-users at lists.sip-router.org
>>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>>
>>>
>>>
>>> --
>>> *Grégoire Vandendeurpel, *
>>> *
>>> *
>>> *IT Sector*
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users at lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
>
> --
> *Grégoire Vandendeurpel, *
> *
> *
> *IT Sector*
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120515/7847efad/attachment.htm>


More information about the sr-users mailing list