<div dir="auto">Have you tried just using “sip_h_[whatever]” to read from the A leg and setting it on the bridge as nolocal?</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 22 Jun 2021 at 17:25, Chris Wallace <<a href="mailto:c.wallace777@gmail.com">c.wallace777@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>We are working on implementing STIR/SHAKEN and have run into a snag when passing calls through our FreeSwitch LCR which sits between our call feature server and our SBC's. Our call feature server is passing parameters in the Contact for attestation-info and origination-id. It is intended that our SBC's will extract this data from the Contact and use it to generate an identity header before leaving our network. Ideally this information would be passed via X-Header(s) but unfortunately this is what we have to work with at the moment.</div><div><br></div><div>We have tried to use both the "sip_invite_contact_params" and "sip_contact_params" channel variables but neither of them seem to get any data from the Contact within the inbound INVITE. We had success testing with "sip_contact_user" and dumping that data to an X-Header but we can't seem to get FreeSwitch to recognize or dump the other parameters.</div><div><br></div><div>When debugging an active call and dumping the channel variable data for each leg of the call we don't see any of the additional parameters that are in the Contact listed in the channel variables that are dumped for either call leg's UUID.<br></div><div><pre style="box-sizing:inherit;margin:4px 0px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;border-radius:4px;color:rgb(29,28,29);font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><b>Contact in INVITE into FreeSwitch</b><br>Contact: <sip:15558675309@x.x.x.x:5060>;isup-oli=00;attestation-info=1;origination-id=1000;verstat=0<br></pre><pre style="box-sizing:inherit;margin:4px 0px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;border-radius:4px;color:rgb(29,28,29);font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><b>sip_contact_user Dump to X-Header:</b><br style="box-sizing:inherit">X-ContactUser: 15558675309</pre><pre style="box-sizing:inherit;margin:4px 0px;padding:8px;font-size:12px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;font-family:Monaco,Menlo,Consolas,"Courier New",monospace;border-radius:4px;color:rgb(29,28,29);font-style:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><b>FreeSwitch Logging:</b><br>EXECUTE [depth=0] sofia/core/15558675309@x.x.x.x:5060 export(sip_h_X-ContactUser=15558675309)<br style="box-sizing:inherit">2021-06-18 15:24:10.079576 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_h_X-ContactUser]=[15558675309]<br style="box-sizing:inherit">EXECUTE [depth=0] sofia/core/15558675309@x.x.x.x:5060 export(sip_h_X-ContactParam=)<br style="box-sizing:inherit">2021-06-18 15:24:10.079576 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [sip_h_X-ContactParam]=[UNDEF]</pre></div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>