Hi
Im trying to remove my Asterisk s= line on SDP but when doing:
sdp_remove_line_by_prefix("s=Asterisk");
Nothing happens.
Loaded sdpops.so module as well.
Is there any additional needed?
BR
s= MUST exist but thought remove.. will force to "s= "
Any idea to remove "Asterisk" traces from SDP?
2016-02-24 14:49 GMT+01:00 Alberto Sagredo alberto.sagredo@avanzada7.com:
Hi
Im trying to remove my Asterisk s= line on SDP but when doing:
sdp_remove_line_by_prefix("s=Asterisk");
Nothing happens.
Loaded sdpops.so module as well.
Is there any additional needed?
BR
Try replace_body() replacing “s=Asterisk” with “s=”
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alberto Sagredo Sent: 24 February 2016 14:03 To: Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org Subject: Re: [SR-Users] sdp_remove_line_by_prefix
s= MUST exist but thought remove.. will force to "s= "
Any idea to remove "Asterisk" traces from SDP?
2016-02-24 14:49 GMT+01:00 Alberto Sagredo <alberto.sagredo@avanzada7.commailto:alberto.sagredo@avanzada7.com>: Hi
Im trying to remove my Asterisk s= line on SDP but when doing:
sdp_remove_line_by_prefix("s=Asterisk");
Nothing happens.
Loaded sdpops.so module as well.
Is there any additional needed?
BR
It seems does not work. Just add at the end s= and s=Asterisk PBX is still there :)
Thanks anyway for the tip
2016-02-24 15:05 GMT+01:00 Phil Lavin phil.lavin@synety.com:
Try replace_body() replacing “s=Asterisk” with “s=”
*From:* sr-users [mailto:sr-users-bounces@lists.sip-router.org] *On Behalf Of *Alberto Sagredo *Sent:* 24 February 2016 14:03 *To:* Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org *Subject:* Re: [SR-Users] sdp_remove_line_by_prefix
s= MUST exist but thought remove.. will force to "s= "
Any idea to remove "Asterisk" traces from SDP?
2016-02-24 14:49 GMT+01:00 Alberto Sagredo <alberto.sagredo@avanzada7.com
:
Hi
Im trying to remove my Asterisk s= line on SDP but when doing:
sdp_remove_line_by_prefix("s=Asterisk");
Nothing happens.
Loaded sdpops.so module as well.
Is there any additional needed?
BR
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
You’ll have to send a pcap of the message you’re trying to modify, if you need some more help.
Cheers
From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alberto Sagredo Sent: 24 February 2016 14:35 To: Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org Subject: Re: [SR-Users] sdp_remove_line_by_prefix
It seems does not work. Just add at the end s= and s=Asterisk PBX is still there :)
Thanks anyway for the tip
2016-02-24 15:05 GMT+01:00 Phil Lavin <phil.lavin@synety.commailto:phil.lavin@synety.com>: Try replace_body() replacing “s=Asterisk” with “s=”
From: sr-users [mailto:sr-users-bounces@lists.sip-router.orgmailto:sr-users-bounces@lists.sip-router.org] On Behalf Of Alberto Sagredo Sent: 24 February 2016 14:03 To: Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org> Subject: Re: [SR-Users] sdp_remove_line_by_prefix
s= MUST exist but thought remove.. will force to "s= "
Any idea to remove "Asterisk" traces from SDP?
2016-02-24 14:49 GMT+01:00 Alberto Sagredo <alberto.sagredo@avanzada7.commailto:alberto.sagredo@avanzada7.com>: Hi
Im trying to remove my Asterisk s= line on SDP but when doing:
sdp_remove_line_by_prefix("s=Asterisk");
Nothing happens.
Loaded sdpops.so module as well.
Is there any additional needed?
BR
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.orgmailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Wed, Feb 24, 2016 at 03:02:32PM +0100, Alberto Sagredo wrote:
s= MUST exist but thought remove.. will force to "s= "
Any idea to remove "Asterisk" traces from SDP?
Edit /etc/asterisk/sip.conf :)
;sdpsession=Asterisk PBX ; Allows you to change the SDP session name string, (s=) ; Like the useragent parameter, the default user agent string ; also contains the Asterisk version. ;sdpowner=root ; Allows you to change the username field in the SDP owner string, (o=) ; This field MUST NOT contain spaces
BTW the term asterisk is used in many many other places in headers. Why would you want to hide such stuff....
Thanks Daniel
I know where to change in Asterisk, but i plan to hide in Kamailio :) If you have an Asterisk farm it would be easy to change at one point.
Just to play.. Changed User Agent.. and thought to change also s= traces on SDP..
Its not a must, but if you do not show Asterisk to providers, sometimes help you more :P
2016-02-24 15:11 GMT+01:00 Daniel Tryba d.tryba@pocos.nl:
On Wed, Feb 24, 2016 at 03:02:32PM +0100, Alberto Sagredo wrote:
s= MUST exist but thought remove.. will force to "s= "
Any idea to remove "Asterisk" traces from SDP?
Edit /etc/asterisk/sip.conf :)
;sdpsession=Asterisk PBX ; Allows you to change the SDP session name string, (s=) ; Like the useragent parameter, the default user agent string ; also contains the Asterisk version. ;sdpowner=root ; Allows you to change the username field in the SDP owner string, (o=) ; This field MUST NOT contain spaces
BTW the term asterisk is used in many many other places in headers. Why would you want to hide such stuff....
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Wed, Feb 24, 2016 at 03:22:46PM +0100, Alberto Sagredo wrote:
I know where to change in Asterisk, but i plan to hide in Kamailio :) If you have an Asterisk farm it would be easy to change at one point.
Just to play.. Changed User Agent.. and thought to change also s= traces on SDP..
Ofcourse I'm kind of trolling with my response, I have some asterisk commercial implementations in my network that try to hide they are using asterisk, but you can spot them easily in most cases. You'll need to look further than SDP body to filter asterisk from responses (see the to/from headers, the s@ in URI etc.).
Its not a must, but if you do not show Asterisk to providers, sometimes help you more :P
This is not experience, I'm open about the fact we use asterisk (and kamailio ofcourse) and never had that backfire in any way.
No problem Daniel. Im proud of using Asterisk, and having being done for years.. Thats not the fact.
Just when you want to hide your topology inside to attackers or so, maybe that would be useful. Off course there is other ways to check and look for.
Some providers i found... see Asterisk and relax their configuration problems to your side.. Somes not, and SIP traces talks most of the times..
I just wonder if its possible, but seems with s= inside body not. Just being curious while playing..
2016-02-24 15:52 GMT+01:00 Daniel Tryba d.tryba@pocos.nl:
On Wed, Feb 24, 2016 at 03:22:46PM +0100, Alberto Sagredo wrote:
I know where to change in Asterisk, but i plan to hide in Kamailio :) If you have an Asterisk farm it would be easy to change at one point.
Just to play.. Changed User Agent.. and thought to change also s= traces
on
SDP..
Ofcourse I'm kind of trolling with my response, I have some asterisk commercial implementations in my network that try to hide they are using asterisk, but you can spot them easily in most cases. You'll need to look further than SDP body to filter asterisk from responses (see the to/from headers, the s@ in URI etc.).
Its not a must, but if you do not show Asterisk to providers, sometimes help you more :P
This is not experience, I'm open about the fact we use asterisk (and kamailio ofcourse) and never had that backfire in any way.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Alberto Sagredo alberto.sagredo@avanzada7.com:
Im trying to remove my Asterisk s= line on SDP but when doing:
sdp_remove_line_by_prefix("s=Asterisk");
Nothing happens.
Hi Alberto
Did you try with 4.4 yet? I made some changes to sdpops and I think your example should now work as well as some other short comings: https://github.com/kamailio/kamailio/commit/5db4cec2c9e8ab62c711738eae181afa...
Best regards
Hi Mikko
Thanks !
I will test and let you know
2016-05-09 9:21 GMT+02:00 Mikko Lehto mslehto@iki.fi:
Alberto Sagredo alberto.sagredo@avanzada7.com:
Im trying to remove my Asterisk s= line on SDP but when doing:
sdp_remove_line_by_prefix("s=Asterisk");
Nothing happens.
Hi Alberto
Did you try with 4.4 yet? I made some changes to sdpops and I think your example should now work as well as some other short comings:
https://github.com/kamailio/kamailio/commit/5db4cec2c9e8ab62c711738eae181afa...
Best regards
-- Mikko Lehto