Re: [SR-Users] sdp_remove_line_by_prefix

2016-05-09 Thread Alberto Sagredo
Hi Mikko

Thanks !

I will test and let you know

2016-05-09 9:21 GMT+02:00 Mikko Lehto :

> Alberto Sagredo :
>
> > 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/5db4cec2c9e8ab62c711738eae181afa69c1724d
>
> Best regards
>
> --
> Mikko Lehto
>
___
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


Re: [SR-Users] sdp_remove_line_by_prefix

2016-05-09 Thread Mikko Lehto
Alberto Sagredo :
 
> 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/5db4cec2c9e8ab62c711738eae181afa69c1724d

Best regards

-- 
Mikko Lehto

___
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


Re: [SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Alberto Sagredo
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 :

> 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
>
___
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


Re: [SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Daniel Tryba
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


Re: [SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Phil Lavin
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-boun...@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.la...@synety.com<mailto:phil.la...@synety.com>>:
Try replace_body() replacing “s=Asterisk” with “s=”


From: sr-users 
[mailto:sr-users-boun...@lists.sip-router.org<mailto:sr-users-boun...@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<mailto: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.sagr...@avanzada7.com<mailto:alberto.sagr...@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<mailto:sr-users@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@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Alberto Sagredo
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.la...@synety.com>:

> Try replace_body() replacing “s=Asterisk” with “s=”
>
>
>
>
>
> *From:* sr-users [mailto:sr-users-boun...@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.sagr...@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
>
>
___
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


Re: [SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Alberto Sagredo
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 :

> 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
>
___
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


Re: [SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Daniel Tryba
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


Re: [SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Phil Lavin
Try replace_body() replacing “s=Asterisk” with “s=”


From: sr-users [mailto:sr-users-boun...@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.sagr...@avanzada7.com<mailto:alberto.sagr...@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


Re: [SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Alberto Sagredo
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 :

> 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


[SR-Users] sdp_remove_line_by_prefix

2016-02-24 Thread Alberto Sagredo
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