<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">On 5/8/20 4:21 PM, Denys Pozniak wrote:<br>
</div>
<blockquote type="cite" cite="mid:CA+x3Axo1w1cO35GoFsgKnbaT3uYKNDOG41W9iWbunz0+zuUnZg@mail.gmail.com">
<div dir="ltr">Try this one:
<div>$(hdr(Reason){param.value,cause})<br>
<div><br>
</div>
</div>
</div>
</blockquote>
<p>Wonderful!!</p>
<p>Thanks a lot,</p>
<p>Luis<br>
<br>
</p>
<blockquote type="cite" cite="mid:CA+x3Axo1w1cO35GoFsgKnbaT3uYKNDOG41W9iWbunz0+zuUnZg@mail.gmail.com">
<div dir="ltr">
<div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">пт, 8 мая 2020 г. в 21:57,
Luis Rojas G. <<a href="mailto:luis.rojas@sixbell.com" target="_blank" moz-do-not-send="true">luis.rojas@sixbell.com</a>>:<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>
<div>Hello,<br>
<br>
That is one of the parts I read, but to transform
something first I would need something to transform. <br>
</div>
<div><br>
</div>
<div>I don't know how to get the cause from the header.
I was reading this :<br>
<br>
<a href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkamailio.org%2Fdocs%2Fmodules%2F5.3.x%2Fmodules%2Ftextopsx.html%23textopsx.sel.hf_value&data=02%7C01%7C%7C41a6de06d98740013e8b08d7f38d66cf%7Cab4a33c2b5614f798601bc921698ad08%7C0%7C0%7C637245660962672571&sdata=75sVlNzFQPs888UkJmMFevIpKsiadfLlM7ciOHq9Rp0%3D&reserved=0" originalsrc="https://kamailio.org/docs/modules/5.3.x/modules/textopsx.html#textopsx.sel.hf_value" shash="CkNqegyK1EGJTJYJiutwTGNoHkn9KKOh0i6PgWAFrGr9u5D31/GhO42fIxxO59LuuLwb5FPqc2F3FSUZdJVVWLEkZUsYHfals8nDzijpY1PbDFhQ7XZ+4Y/f1UkVe3z25E504X/rRUvbIuY3bw0By4oAPXq/+Y188Ks96WD8ksA=" target="_blank" moz-do-not-send="true">https://kamailio.org/docs/modules/5.3.x/modules/textopsx.html#textopsx.sel.hf_value</a><br>
<br>
It gives some nice examples, like :</div>
<div><br>
</div>
<div>$b = @hf_value.p_associated_uri;</div>
<div>$rr = @hf_value.route.uri;<br>
</div>
<div>$prt =
@hf_value2.authorization.integrity_protected;<br>
</div>
<div> </div>
<div>What about @hf_value.reason.cause or
@hf_value2.reason.cause ? They don't even compile.<br>
<br>
<tt> 0(3848) ERROR: <core> [core/select.c:299]:
resolve_select(): Unable to resolve select 'cause'
at level 2</tt><tt><br>
</tt><tt> 0(3848) ERROR: <core>
[core/rvalue.c:2893]: fix_rval(): Unable to resolve
select in cfg at line: 209 col: 42</tt><tt><br>
</tt><tt> 0(3848) ERROR: <core>
[core/select.c:434]: log_select(): select( 0(3848)
ERROR: <core> [core/select.c:439]:
log_select(): hf_value2, 0(3848) ERROR: <core>
[core/select.c:439]: log_select(): </tt><tt><br>
</tt><tt> , 0(3848) ERROR:
<core> [core/select.c:439]: log_select():
cause, 0(3848) ERROR: <core>
[core/select.c:442]: log_select(): )</tt><br>
</div>
<div><br>
Luis<br>
<br>
<br>
On 5/8/20 2:42 PM, Denys Pozniak wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello!
<div><br>
</div>
<div>Did you try Parameters List Transformations?</div>
<div><a href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamailio.org%2Fwiki%2Fcookbooks%2Fdevel%2Ftransformations%23parameters_list_transformations&data=02%7C01%7C%7C41a6de06d98740013e8b08d7f38d66cf%7Cab4a33c2b5614f798601bc921698ad08%7C0%7C0%7C637245660962682566&sdata=q5qkLPKpaNSKN9kfmkYV9GgUfpFV84Qv0SDkXdxqT90%3D&reserved=0" originalsrc="https://www.kamailio.org/wiki/cookbooks/devel/transformations#parameters_list_transformations" shash="IV3HrDVc88n+P+5GyfRMKeUcC2J+uQXxKEMb2cilZq0KYbFvYLKWC18NdbAFaQ4PDNmCAQwNizi5E0hUMvpvLWnk/e4jpfpU/TIaFUUAeKGrWnSbUUvrPPeWKsAgR3Cz9ERifwwsKTuPPK3IVvwEu54G6N+G+hRsKOk/ZajqK+Q=" target="_blank" moz-do-not-send="true">https://www.kamailio.org/wiki/cookbooks/devel/transformations#parameters_list_transformations</a> <br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">пт, 8 мая 2020 г.
в 19:32, Luis Rojas G. <<a href="mailto:luis.rojas@sixbell.com" target="_blank" moz-do-not-send="true">luis.rojas@sixbell.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px
0px 0px 0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I am sure that this is very easy to do, but I have
been googling and I <br>
can't find a way.<br>
<br>
Having a Reason header, for instance :<br>
<br>
Reason: SIP;cause=Some_Cause;text="Some_text"<br>
<br>
How can I get the value of "Some_Cause"? I need to
compare it to some <br>
specific numeric values...<br>
<br>
Thanks in advance,<br>
<br>
Luis<br>
<br>
-- <br>
Luis Rojas<br>
Software Architect<br>
Sixbell<br>
Los Leones 1200<br>
Providencia<br>
Santiago, Chile<br>
Phone: (+56-2) 22001288<br>
mailto:<a href="mailto:luis.rojas@sixbell.com" target="_blank" moz-do-not-send="true">luis.rojas@sixbell.com</a><br>
<a href="https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.sixbell.com%2F&data=02%7C01%7C%7C41a6de06d98740013e8b08d7f38d66cf%7Cab4a33c2b5614f798601bc921698ad08%7C0%7C0%7C637245660962692559&sdata=nS0PdNyxQ2qXDLm4S7PKH62dR1sVqZrFgAoJTFMy8J4%3D&reserved=0" originalsrc="http://www.sixbell.com/" shash="R2DBJb1AZKD6Ac2zHNT8Tim/7hZvfIl9YBLKyUXFAmZaePs7hfyQx9DEVWAPJohgmRO6aCPhi54nLSsAm7vBY2/shloi537ViXAqxAH0JoBCfsh0U94PBRc1HjvwPhbOd0M1vW+p0RXbD/K6IBtdgKgT7L+hyRKVh8HrOP4Ba0g=" rel="noreferrer" target="_blank" moz-do-not-send="true">http://www.sixbell.com</a><br>
<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a href="https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kamailio.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fsr-users&data=02%7C01%7C%7C41a6de06d98740013e8b08d7f38d66cf%7Cab4a33c2b5614f798601bc921698ad08%7C0%7C0%7C637245660962692559&sdata=%2F4yahCz4hPIc5KTTntOi%2FOZ0ZFAWshRdtuUDz5z70t8%3D&reserved=0" originalsrc="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" shash="WHPFLuc7lSTtk4ZmipfI6mKbS9a1NjUaJB3jlTDkxafU0BPx2/ndwBB7XGvIEEwIUMWmRhLVJgT6PR8QHwh43drbP2rf0BhjBt2tYwFUccxCsoT6hzsDkPoelSGxVdZJhMTQcOS5Y3ReuXZ7j6kRwWyZGIQPp39UZnIfokI3/qo=" rel="noreferrer" target="_blank" moz-do-not-send="true">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"><br>
<div>
<div>BR,</div>
<div>Denys Pozniak<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<p><br>
</p>
<pre cols="72">--
Luis Rojas
Software Architect
Sixbell
Los Leones 1200
Providencia
Santiago, Chile
Phone: (+56-2) 22001288
<a href="mailto:luis.rojas@sixbell.com" target="_blank" moz-do-not-send="true">mailto:luis.rojas@sixbell.com</a>
<a href="https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.sixbell.com%2F&data=02%7C01%7C%7C41a6de06d98740013e8b08d7f38d66cf%7Cab4a33c2b5614f798601bc921698ad08%7C0%7C0%7C637245660962702553&sdata=O6eOmYSw5RnpQmGKUfnjEHJsSk7u3DPRnuogok1VH7I%3D&reserved=0" originalsrc="http://www.sixbell.com/" shash="I8bgjIFGOHPgCPfud8jY8uzROwqPczlevILsHnw1hUjlKY6NE85KEUaaUXwkz+/WI+BBqZiyghs2N2rgs6Dl1HkT8l2MWAR3OzDGcZ/Hbrt8EYybqRzPXtSyf3s2DUpw/XBnFuu1E6Jo7aUBWYHeXGoFqxU2511GngBnal6C0gY=" target="_blank" moz-do-not-send="true">http://www.sixbell.com</a></pre>
</div>
</blockquote>
</div>
</div>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr"><br>
<div>
<div>BR,</div>
<div>Denys Pozniak<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Luis Rojas
Software Architect
Sixbell
Los Leones 1200
Providencia
Santiago, Chile
Phone: (+56-2) 22001288
<a class="moz-txt-link-freetext" href="mailto:luis.rojas@sixbell.com">mailto:luis.rojas@sixbell.com</a>
<a class="moz-txt-link-freetext" href="http://www.sixbell.com">http://www.sixbell.com</a></pre>
</body>
</html>