<html><head></head><body lang="en-US" style="background-color: rgb(255, 255, 255); line-height: initial;">                                                                                      <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">‎What I usually do is include ”info” app in the dialplan and run the call in question while cli is in “info” log level. So you dump all chan variables and if your value is in some of them you are golden and you see exact variable name.  if it's not anywhere means it's not parsed.</div>                                                                                                                                     <div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br style="display:initial"></div>                                                                                                                                                                                                   <div style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif, sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);"><br></div>                                                                                                                                                                                  <table width="100%" style="background-color:white;border-spacing:0px;"> <tbody><tr><td colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">                           <div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">  <div><b>From: </b>Mickael Hubert</div><div><b>Sent: </b>Monday, September 21, 2020 11:41</div><div><b>To: </b>FreeSWITCH Users Help</div><div><b>Reply To: </b>FreeSWITCH Users Help</div><div><b>Subject: </b>[Freeswitch-users] Is it possible to parse Accept-Contact ?</div></div></td></tr></tbody></table><div style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);"></div><br><div id="_originalContent" style=""><div dir="ltr"><div>Hi all,</div><div>I want to be able to parse Accept-Contact header.</div><div><br></div><div><u>I have this configuration just to log header:</u></div><div><span style="font-family:monospace"><condition field="${sip_h_Accept-Contact}"  expression="(.+)" break="never"><br>      <action application="log" data="INFO LOG: parse accept: ${sip_h_Accept-Contact}" /><br>    </condition></span></div><div><br></div><div><u>my logs:</u></div><div><span style="font-family:monospace">Dialplan: sofia/INTERNAL/<a href="mailto:427842085@10.88.83.7">427842085@10.88.83.7</a> Regex (PASS) [variables] ${sip_h_Accept-Contact}() =~ /(.*)/ break=never<br>Dialplan: sofia/INTERNAL/<a href="mailto:427842085@10.88.83.7">427842085@10.88.83.7</a> Action log(parse accept: ${sip_h_Accept-Contact}) <br>2020-09-21 17:34:09.726180 [NOTICE] switch_core_session.c:3017 Execute [depth=2] log(parse accept: ${sip_h_Accept-Contact})<br>EXECUTE [depth=2] sofia/INTERNAL/<a href="mailto:427842085@10.88.83.7">427842085@10.88.83.7</a> log(parse accept: )</span></div><div><br></div><div>sip_h_Accept_Contact variable is empty.</div><div><br></div><div><u>header received:</u></div><div><span style="font-family:monospace">Accept-Contact: *;generic.test_id="test"</span></div><div><br></div><div>is it possible to parse this header ? <br></div><div>Do you have an idea about that ?</div><div><br></div><div>thanks in advance <br></div></div>
<br><!--end of _originalContent --></div></body></html>