<div dir="ltr"><div>Thanks for all replies.<br><br>FS would be used as SBC.<br><br>I would like my customers&#39; IPBX (Asterisk, Alcatel, ..)  register against FS, as a SIP trunk and then i would like routing several DID (not only s) on incoming call to FS  to customers IPBX with bridge action.<br><br></div><div>I prefer IPBX login/pass auth against FS rather than IPBX IP auth only, because of security.<br></div><div><br></div><div>But registring user in FS seems to expect SIP phone only as user to register, not IPBX as user :<br><br></div><div>Here my asterisk Register :<br><br>REGISTER sip:1.2.3.4 SIP/2.0<br>Via: SIP/2.0/UDP 5.6.7.8:5060;branch=z9hG4bK45872adf;rport<br>From: &lt;<a href="mailto:sip%3Atestipbx2@1.2.3.4">sip:testipbx2@1.2.3.4</a>&gt;;tag=as47a2d14b<br>To: &lt;<a href="mailto:sip%3Atestipbx2@1.2.3.4">sip:testipbx2@1.2.3.4</a>&gt;<br>Call-ID: <a href="mailto:6896d4fe6ab4904b7830df881a25e4cf@127.0.1.1">6896d4fe6ab4904b7830df881a25e4cf@127.0.1.1</a><br>CSeq: 103 REGISTER<br>User-Agent: Asterisk<br>Max-Forwards: 70<br>Authorization: Digest username=&quot;testipbx2&quot;, realm=&quot;1.2.3.4&quot;, algorithm=MD5, uri=&quot;sip:1.2.3.4&quot;, nonce=&quot;618f279c-c9ea-11e5-9551-4749c6ba93f1&quot;, response=&quot;332db701f8c8404f4f1624b9f6c68f2c&quot;, qop=auth, cnonce=&quot;751ce1f8&quot;, nc=00000001<br>Expires: 120<br>Contact: &lt;<a href="mailto:sip%3As@5.6.7.8">sip:s@5.6.7.8</a>&gt;<br>Event: registration<br>Content-Length: 0<br><br></div><div>Here FS-&gt;Asterisk invite on incoming call<br><br>INVITE <a href="mailto:sip%3As@5.6.7.8">sip:s@5.6.7.8</a> SIP/2.0<br>Via: SIP/2.0/UDP 1.2.3.4;rport;branch=z9hG4bKgaUt932FD952c<br>Max-Forwards: 69<br>From: &quot;45678776&quot; &lt;<a href="mailto:sip%3A45678776@1.2.3.4">sip:45678776@1.2.3.4</a>&gt;;tag=4v1S65HQ930mF<br>To: &lt;<a href="mailto:sip%3As@5.6.7.8">sip:s@5.6.7.8</a>&gt;<br>Call-ID: 971c11f4-c9ea-11e5-956b-4749c6ba93f1<br>CSeq: 86886190 INVITE<br>Contact: &lt;<a href="http://sip:mod_sofia@1.2.3.4:5060">sip:mod_sofia@1.2.3.4:5060</a>&gt;<br>User-Agent: FS/1.6<br>..<br></div><div>Thanks<br></div><div><br></div><div><br></div><div><br></div><div> <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-02 21:29 GMT+01:00 Oz Mortimer <span dir="ltr">&lt;<a href="mailto:omortimer@gmail.com" target="_blank">omortimer@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>I think you need to explain what you are trying to achieve.. </div><div>What you are doing currently is registering a user against freeswitch - not dissimilar to logging in to Skype. </div><div>In your bridge statement you are calling the registered user - again like you would in Skype.</div><div>Is there a reason you want asterisk to register against freeswitch? The only thing I can think of is that it&#39;s on a private LAN and that your asterisk box does something &quot;special&quot;..</div><div><div class="h5"><div><br></div><div><br>On 2 Feb 2016, at 19:28, Marc S &lt;<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">It seems that &quot;freeswitch gateway username&quot; return all results about setup username and password on FS to register against external SIP gateway, am i wrong ?<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-02 20:23 GMT+01:00 Oz Mortimer <span dir="ltr">&lt;<a href="mailto:omortimer@gmail.com" target="_blank">omortimer@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>Setup username / password authentication on asterisk and set the corresponding user &amp; pass in your freeswitch gateway. </div><div>I&#39;m sure a google for &quot;asterisk username authentication&quot; and &quot;freeswitch gateway username&quot; will give you plenty of examples - you will want freeswitch to bridge to gateway - again Google &quot;freeswitch bridge gateway&quot;.</div><div>Google is your friend.. </div><div><div><div><br></div><div><br>On 2 Feb 2016, at 19:03, Marc S &lt;<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@gmail.com</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">I want to use mod xml curl to generate dynamic dialplan xml like this :<br><div><br> &lt;extension name=&quot;inbound_12345678&quot;&gt;<br>        &lt;condition field=&quot;destination_number&quot; expression=&quot;^(12345678)$&quot;&gt;<br>           &lt;action application=&quot;bridge&quot; data=&quot;user/myuserid&quot;/&gt;<br></div><div>        &lt;/condition&gt;<br></div><div>&lt;/extension&gt;<br><br></div><div>Thanks<br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-02 19:16 GMT+01:00 Sergey Safarov <span dir="ltr">&lt;<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">What is way you planing to use for link DID with user?<div><br></div><div>Sergey</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Tue, Feb 2, 2016 at 8:20 PM, Marc S <span dir="ltr">&lt;<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div><div>Hello,<br></div>sorry for asking again :<br><br></div>I hav an asterisk that register on Freeswitch (as a user). <br><br></div>When a call is incoming to FS, FS send it to asterisk : In asterisk, it is the s extension.<br><br></div>Here my bridge tests<span><br><br>&lt;action application=&quot;bridge&quot; data=&quot;user/myuserid&quot;/&gt; <br><br></span></div>=&gt; s extension in asterisk instead of extension<br><div><br>&lt;action application=&quot;bridge&quot; data=&quot;sofia/mycontext/myextension@&lt;ASTERISK_IP&gt;&quot;/&gt;<br><br></div><div>=&gt; Not authenticated in asterisk (because no IP authentication in asterisk)<br><br></div><div>Have you an idea how to send real extension instead of s extension  ?<br></div><div>Thanks<br></div><div><br><br></div><div><br><br><div><br><br></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-03 10:45 GMT+01:00 Marc S <span dir="ltr">&lt;<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@gmail.com</a>&gt;</span>:<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><div><div><div><div><div>Hello,<br><br></div>i&#39;m discovering FS. I hav read a lot about users and gateways.<br><br></div>I would like to  FS act as registrar for authenticated SIP trunking.<br><br></div>- Customers IPBX would register with login/password to Freeswitch. <br>- Incoming call would be routed to these SIP trunks in dialplan XML.<br><br></div>directory/users does not seem to be the solution because in dialplan, destination DID can&#39;t be defined, only user id :<br><br>&lt;action application=&quot;bridge&quot; data=&quot;user/myuserid&quot;/&gt;<br><br></div>gateway seems to be designed for SIP trunking to remote SIP gateway, not for FS to act as registrar.<br><br></div>Is it possible to FS to act as authenticated SIP trunking registrar ?<br><br></div>Thanks a lot,<br></div>Marc<br><div><div><div><div><br><br></div></div></div></div></div>
</blockquote></div><br></div>
</div></div><br></div></div>_________________________________________________________________________<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>
<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></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></div></blockquote></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></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></div></blockquote></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>