[prev in list] [next in list] [prev in thread] [next in thread]
List: serusers
Subject: Re: [SR-Users] Active Profile for sipreply in SEMS
From: Mojtaba <mespio () gmail ! com>
Date: 2021-07-17 20:27:49
Message-ID: CABVi_Ew0gjSDRcA4NhueS_0y4gS+vh5+D24Z0-vVs3uUrhBVqw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Of course, It could be added in different profiles based on different
active_profile methods, But it does not work for 200 ok reply messages. In
those cases, i added SBC to whitelist header filter, like this:
header_filter=whitelist
header_list=Diversion,P-Asserted-Identity,Privacy,Allow,Event,Expires,Accept,User-Agent,Subscription-State,P-Access-Network-Info,P-Route,C-Params,Feature-Caps,SBC
Actually I solved it by changing the header name to P-Route, because the
P_Route header is in the whitelist header by default in sipreply messages.
But what about custom header name? What should i do?
Thanks With Regards.
Mojtaba
On Sat, Jul 17, 2021 at 3:21 PM Arsen Semenov <arsperger@gmail.com> wrote:
> Hi Mojatba,
>
> basically you should be able to set whitelist in your sbc profile like
> this:
>
> header_filter=whitelist
> header_list=SBC
>
> Not sure how it will work for replies however..
> you also can try "transparent" - no filtering mode
>
>
> Regards,
>
>
> On Sat, Jul 17, 2021 at 2:50 PM Mojtaba <mespio@gmail.com> wrote:
>
> > Hello,
> > Does anybody know how i could change white filter in siprelpy in sems?
> > In Kamailio, I got "200 OK" from UE, then add a new header (SBC:
> > mt-reply) and send it to sems server. The sems server remove it:
> > [#7f410fbfb700/4560] [inplaceHeaderFilter, HeaderFilter.cpp:226] DEBUG:
> > erasing header 'sbc' by whitelist
> >
> > I really don't want to remove it.
> > Actually if I knew how i active profile for sip replying in sems, I would
> > be able to solve this.
> >
> > Thanks with regards.
> > --
> > --Mojtaba Esfandiari.S
> > __________________________________________________________
> > Kamailio - Users Mailing List - Non Commercial Discussions
> > * sr-users@lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> > the sender!
> > Edit mailing list options or unsubscribe:
> > * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> >
>
>
> --
> Arsen Semenov
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
--
--Mojtaba Esfandiari.S
[Attachment #5 (text/html)]
<div dir="ltr"><div>Of course, It could be added in different profiles based on \
different active_profile methods, But it does not work for 200 ok reply messages. In \
those cases, i added SBC to whitelist header filter, like \
this:<br></div><div>header_filter=whitelist<br>header_list=Diversion,P-Asserted-Identi \
ty,Privacy,Allow,Event,Expires,Accept,User-Agent,Subscription-State,P-Access-Network-Info,P-Route,C-Params,Feature-Caps,SBC<br></div><div>Actually \
I solved it by changing the header name to P-Route, because the P_Route header is in \
the whitelist header by default in sipreply messages.</div><div>But what about custom \
header name? What should i do?</div><div>Thanks With \
Regards.</div><div>Mojtaba<br></div><div><br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 17, 2021 at 3:21 PM \
Arsen Semenov <<a href="mailto:arsperger@gmail.com">arsperger@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi \
Mojatba,<div><br></div><div>basically you should be able to set whitelist in your sbc \
profile like this:<br></div><div><br></div><div>header_filter=whitelist<br></div><div>header_list=SBC<br></div><div><br></div><div>Not \
sure how it will work for replies however.. </div><div>you also can try \
"transparent" - no filtering \
mode</div><div><br></div><div><br></div><div>Regards,</div><div><br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jul 17, 2021 at 2:50 PM \
Mojtaba <<a href="mailto:mespio@gmail.com" \
target="_blank">mespio@gmail.com</a>> wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div>Does anybody \
know how i could change white filter in siprelpy in sems?</div><div>In Kamailio, I \
got "200 OK" from UE, then add a new header (SBC: mt-reply) and send it to \
sems server. The sems server remove it:</div><div> [#7f410fbfb700/4560] \
[inplaceHeaderFilter, HeaderFilter.cpp:226] DEBUG: erasing header 'sbc' by \
whitelist</div><div><br></div><div>I really don't want to remove it. \
<br></div><div>Actually if I knew how i active profile for sip replying in sems, I \
would be able to solve this.</div><div><br></div><div>Thanks with regards.<br>-- \
<br><div dir="ltr">--Mojtaba Esfandiari.S</div></div></div> \
__________________________________________________________<br> Kamailio - Users \
Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" \
target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the \
sender!<br> Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" \
rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div \
dir="ltr"><div>Arsen Semenov<br></div><div><br></div></div></div> \
__________________________________________________________<br> Kamailio - Users \
Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" \
target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the \
sender!<br> Edit mailing list options or unsubscribe:<br>
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" \
rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" \
class="gmail_signature">--Mojtaba Esfandiari.S</div>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic