<div dir="ltr"><div>Hi Michael,</div><div><br></div>If you are using Twilio Elastic SIP trunking you configure what we called <b>Origination URI </b>where you <span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px">configure the IP address (or FQDN) of the network element entry point into your communications infrastructure (e.g. IP-PBX, SBC). </span><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px">Meaning you dial: </span></font><span style="line-height:18px;color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif">+4432445867 and we will ring the URI you define.</span></div><div><div><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;font-size:13px;line-height:18px">Example:</span></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px"><br></span></font></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px">sip:1.1.1.1</span></font></div><div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px"><a href="mailto:sip%3A%2B4432445867@1.1.1.1">sip:+4432445867@1.1.1.1</a></span></font></div></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px"><a href="mailto:sip%3A1000@1.1.1.1">sip:1000@1.1.1.1</a></span></font></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px"><a href="http://sip:1000@mysb.com?X-myheader=foo">sip:1000@mysb.com?X-myheader=foo</a></span></font></div><div><br></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px">Information here:</span></font></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px"><a href="https://www.twilio.com/docs/sip-trunking/getting-started#origination">https://www.twilio.com/docs/sip-trunking/getting-started#origination</a></span></font><br></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px"><br></span></font></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px">When I looked at your pastebin, I see that you most likely configured something like first example (</span></font><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;line-height:18px">sip:1.1.1.1) </span><span style="line-height:18px;color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif">as we are routing the call to </span><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;line-height:18px">+4432445867.</span></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;line-height:18px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;line-height:18px">Per my understanding, calls received by Freeswitch will be directed to the context of the associated port and IP that a call comes in.</span></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;line-height:18px">For example calls received on port 5060 may be directed to the default context. In our sample guide we are using the US datacenter. In some scenarios this inbound Gateway is not used, for example in my Lab I'm handling calls in public context and this inbound gateway is just ignored.</span></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;line-height:18px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;line-height:18px">Since your number is in UK most likely you will get a call from the following IP Addresses:</span></div><div><div style=""><ul><li><span style="line-height:18px;color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif">54.171.127.192</span><br></li><li><span style="line-height:18px;color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif">54.171.127.193</span><br></li><li><span style="line-height:18px;color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif">54.171.127.194</span></li></ul></div></div><div>
<p class=""><span class="">Maybe you can try setting it: <a href="http://business.pstn.ie1.twilio.com">business.pstn.ie1.twilio.com</a> to match the European Zone IPs and see what happens?</span></p><p class=""><span class="">HTH</span></p><p class=""><span class="">-Gonzalo</span></p><p class=""><span class=""><br></span></p></div><div><span style="color:rgb(51,51,51);font-family:Helvetica,Helvetica,Arial,sans-serif;line-height:18px"><br></span></div><div><font color="#333333" face="Helvetica, Helvetica, Arial, sans-serif"><span style="line-height:18px"><br></span></font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 2:05 AM, Michael Nielsen <span dir="ltr"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I just did - change to 5080 - and nothing else happens.<br></div>It still gets routed directly to the public context - without getting "catched" by the gateway-config.<br><br></div>I've tried to use the extension parameter in the gateway and route calls from Twilio directly to <a href="http://1000@my-domain.com:5080" target="_blank">1000@my-domain.com:5080</a>, still nothing else happens.<br><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 9:59 AM, Stanislav Sinyagin <span dir="ltr"><<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well, if your URL points to 5060, then yes, you need to change it to 5080 :-))<br><br><br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 9:47 AM, Michael Nielsen <span dir="ltr"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I can only give Twilio an url. But I am able to change the default Twilio uses, as an example to 5080. Would that trigger the external gateway perhaps?<div><div><br><br>On Tuesday, October 6, 2015, Stanislav Sinyagin <<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">but what exactly is configured on twilio side? I guess it should be configurable where it should send calls<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 9:27 AM, Michael Nielsen <span dir="ltr"><<a>mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If I disable registration on my twilio-inbound, it does not fail - however - incoming calls are still not "catched" by my twilio-inbound gateway profile. It still lands in the public context without any variables set.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 5:57 AM, Sergey Safarov <span dir="ltr"><<a>s.safarov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">If disable registration on inbound gateway, then is possible receive inbound call?</p><div><div>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 5, 2015, 22:45 Michael Nielsen <<a>mic.niel84@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Twilio is just taking a sip address as termination address. In this case my domain which FS runs on. <div>Apparently, Twilio is sending calls to the standard 5060 port - which then lands in my public context. </div><div><br>On Monday, October 5, 2015, Stanislav Sinyagin <<a>ssinyagin@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>in your pastebin, you seem to receive the call on your internal profile (port 5060):<br>11:18:58.277709 [DEBUG] sofia.c:9229 sofia/internal/+<a>4432445867@sip.ie1.twilio.com</a> receiving invite from <a href="http://54.171.127.192:5060" target="_blank">54.171.127.192:5060</a><br><br><br></div><div>so, what exactly is configured on both sides? The external profile is usually on the port 5080. <br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 6:26 PM, Michael Nielsen <span dir="ltr"><<a>mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Here's as log from an incoming call from Twilio: <a href="http://pastebin.com/n0de7jhv" target="_blank">http://pastebin.com/n0de7jhv</a><div><br></div><div>My guess is the problem is with line 33: "<span style="color:rgb(0,0,0);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:21px">Processing +4432445867 <+4432445867>->+44213395867 in context public</span>"</div><div>and it fails on line 40: "<span style="color:rgb(0,0,0);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono',monospace,serif;font-size:12px;line-height:21px">Regex (FAIL) [gateway_inbound] ${target_context}() =~ /^[a-z]/ break=on-false</span>"</div><div>due to the fact that there aren't set any ${target_context} variable.</div><div><br></div><div>I've added the Twilio inbound gateway as described in the Twilio guide, but adding it, removing it etc. doesn't change anything at all.</div><div>To the Twilio-Inbound gateway I've added the variable ${target_context} according to this guide: <a href="https://github.com/voxserv/freeswitch_conf_minimal/blob/master/docs/tutorial_01_simple_pbx.md" target="_blank">https://github.com/voxserv/freeswitch_conf_minimal/blob/master/docs/tutorial_01_simple_pbx.md</a></div><div><br></div><div>So my guess is that the Twilio-Inbound gateway aren't being used - however - calls are routed to my FS.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 4, 2015 at 10:15 PM, Michael Nielsen <span dir="ltr"><<a>mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'll create some logs tomorrow. <div><br></div><div>Just to clarify:</div><div>- Calls are routes from Twilio to my FS</div><div>- My FS is a clean installation, 1.6.2</div><div>- I've used Twilio's guide for setting up gateways, inbound and outbound</div><div>- Outbound calls are routed correctly</div><div>- Inbound calls are as mentioned routes to my FS, but my Twilio-inbound doesn't seem to have anything to do with it, therefor, I'm not able to set any variables in incoming calls from Twilio so I can detect them in my public context and transfer them to my default context. </div><div><br></div><div>I don't want to route all calls in my public context to my default context, this would open a security issue. Only Twilio calls should be handled in such a manner. </div><div>That's my challenge. <div><div><br><br>On Sunday, October 4, 2015, Sergey Safarov <<a>s.safarov@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Inbound call can be received<div>1) if twillio guys configure gateway to route incomes calls to you</div><div>2) or if FS provide information how to route call for you</div><div><br></div><div>After reading gateway config files, I has found that used second case "FS provides information how to route calls via registration mechanism".</div><div><br></div><div>Please:</div><div>- configure clean FS host as described in twilio manuals;</div><div>- enable siptrace;</div><div>- enable debug log;</div><div>- make incoming call;</div><div>- attach debug log in respond to this message.</div><div><br></div><div>I try help you</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 4, 2015 at 2:37 PM, Michael Nielsen <span dir="ltr"><<a>mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Still no luck. <div>Any other ideas on how to "catch" the calls from the public context in FS?</div><div>My goal is to transfer all calls from Twilio to my default context. <div><div><br><br>On Saturday, October 3, 2015, Michael Nielsen <<a>mic.niel84@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Looking at their guide for secure setup: <a href="https://www.twilio.com/resources/images/docs/Twilio-Freeswitch.pdf" target="_blank">https://www.twilio.com/resources/images/docs/Twilio-Freeswitch.pdf</a><div>they've added <span style="font-family:Monaco;font-size:10px;background-color:rgb(0,0,0);color:rgb(245,245,245)"> </span><span style="font-family:Monaco;font-size:10px;background-color:rgb(0,0,0);color:rgb(52,187,199)"><param</span><span style="color:rgb(52,189,38);font-family:Monaco;font-size:10px;background-color:rgb(0,0,0)"> name="register" value="false"/</span><span style="font-family:Monaco;font-size:10px;background-color:rgb(0,0,0);color:rgb(52,187,199)">></span></div><div>When I do this, registering doesn't fail (obviously), but inbound calls are still not registered as coming from twilio... They still land directly in the public context without the variables set correctly.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 3, 2015 at 11:58 AM, Michael Nielsen <span dir="ltr"><<a>mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When adding the extension, I get the following - even though my username and password etc. are correct as they work for the outbound gateway...:<div><p style="margin:0px;font-size:10px;font-family:Monaco;color:rgb(213,59,211);background-color:rgb(0,0,0)">twilio-inbound Failed Registration [908]</p></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 3, 2015 at 11:57 AM, Michael Nielsen <span dir="ltr"><<a>mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I see.<div>Does it matter that I don't have an extension called 1000 in my FS, nor in my Twilio account?</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 2, 2015 at 11:34 PM, Ahmed Habiba <span dir="ltr"><<a>ahabiba@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>if you have a deep look at inbound gateway it is for receiving calls from Twilio as you can see below, this line informing freeswitch where to route inkling call.</div><div><br></div><div><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important"><</code><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;font-weight:bold!important;min-height:inherit!important;color:rgb(6,40,115)!important">param</code><span style="color:rgb(35,31,32);font-family:Consolas,Monaco,monospace;font-size:14px;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;background-color:rgb(238,238,238)"> </span><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important;color:gray!important">name</code><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">=</code><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important;color:rgb(64,112,160)!important">"extension"</code><span style="color:rgb(35,31,32);font-family:Consolas,Monaco,monospace;font-size:14px;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;background-color:rgb(238,238,238)"> </span><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important;color:gray!important">value</code><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">=</code><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important;color:rgb(64,112,160)!important">"1000"</code><code style="font-family:Consolas,Monaco,monospace;display:inline-block;letter-spacing:-0.1599999964237213px;white-space:pre-wrap;font-size:1em!important;border-top-left-radius:0px!important;border-top-right-radius:0px!important;border-bottom-right-radius:0px!important;border-bottom-left-radius:0px!important;background-image:none!important;border:0px!important;float:none!important;min-height:auto!important;line-height:1.1em!important;margin:0px!important;outline:0px!important;overflow:visible!important;padding:0px!important;vertical-align:baseline!important;width:auto!important;min-height:inherit!important">/></code></div><div><br><blockquote type="cite"><div><br><br><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(127,127,127,1.0)"><b>From: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">Michael Nielsen <<a>mic.niel84@gmail.com</a>><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(127,127,127,1.0)"><b>Date: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">October 2, 2015 at 11:24:51 PM GMT+3<br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(127,127,127,1.0)"><b>To: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif">FreeSWITCH Users Help <<a>freeswitch-users@lists.freeswitch.org</a>><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif;color:rgba(127,127,127,1.0)"><b>Subject: </b></span><span style="font-family:-webkit-system-font,Helvetica Neue,Helvetica,sans-serif"><b>Re: [Freeswitch-users] Freeswitch and twilio</b><br></span></div><div><div><br><br>Outbound works fine.<div><br><div>Without having the inbound gateway calls are still routed to my FS to my public context from Twilio.</div><div>Adding the twilio-inbound doesn't seem to change anything...?</div><div><br></div><div><br><br>On Friday, October 2, 2015, Brian West <<a>brian@freeswitch.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Well you'd send outbound calls out the outbound and the inbound one is just to register with twilio so they know where to send your inbound calls. Nothing more.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 2, 2015 at 1:46 PM, Michael Nielsen <span dir="ltr"><<a>mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm trying to setup twilio as gateway following this guide:<div><a href="https://www.twilio.com/docs/sip-trunking/sample-configuration#freeswitch" target="_blank">https://www.twilio.com/docs/sip-trunking/sample-configuration#freeswitch</a><br></div><div><br></div><div>In their example of twiliotrunk.xml they have twilio-inbound and twilio-outbound.</div><div><br></div><div>What is the difference between the two gateways? I know their names indicate inbound and outbound calling, but how can Freeswitch tell the difference between them. Especially how can Freeswitch now to use twilio-inbound for incoming calls from twilio and not just twilit-outbound as the only difference is register-proxy and expire-seconds between the two?</div><div><br></div><div>Make sense?</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com/" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org/" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com/" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>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="http://www.freeswitch.org/" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a>brian@freeswitch.org</a></span></font></p><p><font face="courier new, monospace" size="1"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="monospace, monospace" size="2"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com/" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com/" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p><p><font face="monospace, monospace" size="2"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div>
</div>
</blockquote></div></div>
<br><br></div></div>_______________________________________________<span><br>FreeSWITCH-users mailing list<br><a>FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></span></div></blockquote></div><br></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</blockquote></div></div></div>
</blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</blockquote></div>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a>consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a>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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</blockquote>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>