<div dir="ltr">That's my point though, anyone can put any value there they like (not in FS without a code change but you could in a SIP proxy or custom UA). The only way to limit it to a specific server securely would be via some kind of authentication or encryption.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, 8 Oct 2018 at 15:51, 薛光宏 <<a href="mailto:albert.hsueh@cloudigit.com">albert.hsueh@cloudigit.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">Hi <div><br></div><div>Thanks for reply.</div><div>The app is for school. We think the developer wish this mobile app only connect to specific sip server so they do this kind of check. </div><div><br></div><div>Sincerley</div><div>Albert</div></div><br><div class="gmail_quote"><div dir="ltr">Steven Ayre <<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>> 於 2018年10月6日 週六 上午3:33寫道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Any specific reason the app needs to check that header? It couldn't be considered secure since anyone could insert that header.<div><br></div><div>It's similar to the user-agent which is set in the sofia profile, if implemented it'd likely be implemented in the same way which'd mean a small change to the mod_sofia code. I'd file a Jira.</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 4 Oct 2018 at 17:28, 薛光宏 <<a href="mailto:albert.hsueh@cloudigit.com" target="_blank">albert.hsueh@cloudigit.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 dir="ltr"><div dir="ltr">Hi All,<div><br></div><div>We run a mobile app to <b>register</b> FreeSWITCH 1.6.20 via sip. This app will check value of server field in message header but the packet sent from FreeSWITCH doesn't have this field. </div><div>We would like to know is it possible to add filed "Server" to message header by adjusting FreeSWITCH configuration?</div><div><br></div><div>We tried this by adjusting dialplan (<a href="https://freeswitch.org/confluence/display/FREESWITCH/Sofia+SIP+Stack" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Sofia+SIP+Stack</a>)</div><div><div>        <action application="set"><![CDATA[sip_h_Server=xxxxxx]]></action></div><div><br></div><div>it works in invite stage, but can not work in register stage. The app checks the filed "Server" in register stage.</div><div><br></div><div>Thanks in advance.</div><div><br></div>-- <br><div dir="ltr" class="m_-155993495693156672m_-8963912772167235698m_-3701935233158071305gmail_signature"><div dir="ltr">Sincerely<div><br></div><div>Albert Hsueh</div><div>System Engineer</div><div>Cloudpe Corporation</div><div>02-8712 5955 ext. 831</div><div><a href="http://www.cloudpe.com" target="_blank">www.cloudpe.com</a></div></div></div></div></div></div></div>
_________________________________________________________________________<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>
_________________________________________________________________________<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><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-155993495693156672gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Sincerely<div><br></div><div>Albert Hsueh</div><div>System Engineer</div><div>Cloudpe Corporation</div><div>02-8712 5955 ext. 831</div><div><a href="http://www.cloudpe.com" target="_blank">www.cloudpe.com</a></div></div></div>
_________________________________________________________________________<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>