<div><div dir="auto">It won’t ;)</div></div><div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 16, 2018 at 2:03 PM Gregor Nanger <<a href="mailto:gregor@infomedia.si">gregor@infomedia.si</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">What if you create gateway with ip and without registration? Maybe FS will pair it and you can put variable. Just a thought. </div><br><div class="gmail_quote"><div dir="ltr">On Tue, 16 Oct 2018, 16:29 Mickael Hubert, <<a href="mailto:mickael@winlux.fr" target="_blank">mickael@winlux.fr</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>Hi Srigo,</div><div>for my case, I have gateway without REGISTER (it's IP peering)</div><div><br></div><div>In this case, when a incoming call arrives into FS, it does not find the good gateway and all variables into gateway conf are not populate</div><div><br></div><div>++<br></div></div><br><div class="gmail_quote"><div dir="ltr">Le lun. 15 oct. 2018 à 18:55, Srigo Kanapathipillai <<a href="mailto:ksrigo@gmail.com" rel="noreferrer" target="_blank">ksrigo@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Why you can't set the same variable in both gateways profile:<br><br></div>
<div dir="auto">In gw1:<br><br></div>
<div dir="auto"><variable name="incoming_gw" value="gw1"/>  <br><br><br></div>
<div dir="auto">In gw2:<br><br></div>
<div dir="auto"><variable name="incoming_gw" value="gw2"/><br><br><br></div>
<div dir="auto">And check in your dialplan if incoming_gw is set to gw1 OR gw2?<br><br><br></div>
<div dir="auto">Srigo Kana</div>
<div class="gmail_quote">On 14 Oct 2018, at 18:33, Mickael Hubert <<a href="mailto:mickael@winlux.fr" rel="noreferrer" target="_blank">mickael@winlux.fr</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="auto">Hi<div dir="auto">Thanks a lot !</div><div dir="auto"><br></div><div dir="auto">I think the best way (maybe only way) it's to match with from IP.</div><div dir="auto">It's sure when inbound call arrives from GW2, any variables in gateway configuration aren't populate.</div><div dir="auto"><br></div><div dir="auto">But how Can I do math with IP please ?</div><div dir="auto"><br></div><div dir="auto">++</div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">Le sam. 13 oct. 2018 18:26, Srigo Kanapathipillai <<a href="mailto:ksrigo@gmail.com" rel="noreferrer" target="_blank">ksrigo@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Hi Mickael,<br><br></div>
<div dir="auto"><gateway> <br></div>
<div dir="auto">..params...<br></div>
<div dir="auto"> <variables> <br></div>
<div dir="auto"><variable name="inbound_var_name" value="this is inbound" direction="inbound"/><br></div>
<div dir="auto"> <variable name="outbound_var_name" value="this is outbound" direction="outbound"/> <br></div>
<div dir="auto"><variable name="both_var_name" value="this on any direction"/> <br></div>
<div dir="auto"></variables> <br></div>
<div dir="auto"></gateway><br><br></div>
<div dir="auto">Did you try to set variables on your gateway and use it in your dialplan?<br><br></div>
<div dir="auto">Srigo Kana</div>
<div class="gmail_quote">On 13 Oct 2018, at 00:31, Mickael Hubert <<a href="mailto:mickael@winlux.fr" rel="noreferrer noreferrer" target="_blank">mickael@winlux.fr</a>> wrote:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi guys,</div><div>I want to identify source of inbounds calls. <br></div><div>In my external profile I have two gateways:</div><div><br></div><div>- One with REGISTER method</div><div>- One without REGISTER method (IP to IP), only iptables filtering<br></div><div><br></div><div><span style="font-family:monospace,monospace"><gateways><br>      <gateway name="GW1"><br>        <param name="from-domain" value="**********"/><br>        <param name="caller-id-in-from" value="true"/><br>        <param name="proxy" value="1.1.1.1"/><br>        <param name="register" value="true"/><br>        <param name="username" value="**************"/><br>        <param name="password" value="****************"/><br>        <param name="expire-seconds" value="3600"/><br>        <param name="retry-seconds" value="30"/><br>        <param name="ping" value="25"/><br>      </gateway><br>      <gateway name="GW2"><br>        <param name="from-domain" value="*********"/><br>        <param name="caller-id-in-from" value="true"/><br>        <param name="proxy" value="2.2.2.2"/><br>        <param name="register" value="false"/><br>        <param name="retry-seconds" value="30"/><br>        <param name="ping" value="25"/><br>      </gateway><br>    </gateways></span></div><div><br><span style="font-family:monospace,monospace"></span></div><div>In my dialplan I have this conf:</div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace"><condition field="${sip_gateway}"  expression="GW1" break="never"><br>   <action application="set" data="number_dest=${destination_number}" /><br>   <action application="execute_extension" data="to-private XML from-gw1"/><br></condition><br><condition field="${sip_gateway}"  expression="GW2" break="never"><br>   <action application="set" data="number_dest=${destination_number}" /><br>   <action application="execute_extension" data="to-<span style="font-family:monospace,monospace">private</span> XML from-gw2"/><br></condition><br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div>When a call arrives throught GW1 (REGISTERED), ${sip_gateway} is populate with "GW1" perfect !. But when another call arrives throught GW2 (not REGISTERED), ${sip_gateway} is empty.</div><div><br></div><div>Please, how can I identify the source gateway where calls arrive ? maybe it's not a good way to do that ?<br></div><div><br></div><div>thanks in advance<span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><span style="font-family:monospace,monospace"><br></span></span></span></span></div></div></div></div>
<pre class="m_6424296120035824574m_-592088013131048049m_-8774302068847422708m_5709163762653895343blue"><hr><br>Professional FreeSWITCH Services<br><a href="mailto:sales@freeswitch.com" rel="noreferrer noreferrer" target="_blank">sales@freeswitch.com</a><br><a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br><br>Official FreeSWITCH Sites<br><a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br><a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br><a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" rel="noreferrer noreferrer" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></pre></blockquote></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" rel="noreferrer noreferrer" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" rel="noreferrer noreferrer" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer noreferrer 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 noreferrer noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div></div>
<pre class="m_6424296120035824574m_-592088013131048049m_-8774302068847422708blue"><hr><br>Professional FreeSWITCH Services<br><a href="mailto:sales@freeswitch.com" rel="noreferrer" 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" rel="noreferrer" 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></pre></blockquote></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" rel="noreferrer" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" rel="noreferrer" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" rel="noreferrer" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" rel="noreferrer" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer 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 noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer 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></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><font color="#000000"><img src="https://hipchat.freeswitch.org/files/1/9111/w0eGOzyOVyZQdMg/email_logo.png" width="200" height="66"><br></font></div><div style="font-size:12.8px"><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Brian West | Co-founder and Developer</font></span></p><p style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a> </font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank">17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Email: </span><span style="color:rgb(17,85,204);font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:brian@freeswitch.com" target="_blank">brian@freeswitch.com</a></span></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Mobile: 918-424-9378</font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Website: </span><a href="https://www.freeswitch.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">https://www.FreeSWITCH.com</span></a></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-size:9pt;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://www.facebook.com/freeswitch" target="_blank"><img alt="https://www.facebook.com/signalwireinc?src=email " src="https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg" width="31" height="31" style="border:none"></a> </span><span style="background-color:transparent;font-size:9pt;font-family:Tahoma;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://twitter.com/freeswitch" target="_blank"><img alt="https://twitter.com/freeswitch" src="https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa" width="31" height="31" style="border:none"></a></span><br></p></div></div></div></div></div></div></div></div></div></div></div>