<div dir="ltr">You seem like you're trying to fly before you can crawl with FreeSWITCH. You have some base level technological understanding to acquire prior to getting to the end results. You probably didn't read what I wrote in my previous email. Your device is registering as <a href="mailto:sip%3As@5.6.7.8" target="_blank" style="font-size:12.8px">sip:s@5.6.7.8</a>, so we're gonna follow the rules and call you back at <a href="mailto:sip%3As@5.6.7.8" target="_blank" style="font-size:12.8px">sip:s@5.6.7.8</a><div><br></div><div>You can however in FreeSWITCH force the auth user to match the user and there by having exactly one DID per sip account, or you could change the RURI (which an example of how to do this is in the vanilla config we ship)</div><div><br></div><div>Here it is:</div><div><br></div><div>
<p class=""><span class=""> </span><span class=""><!-- </span></p>
<p class=""><span class=""> This is an example of how to override the </span><span class="">RURI</span><span class=""> on an outgoing invite to a registered contact. </span></p>
<p class=""><span class=""> --></span></p>
<p class=""><span class=""> </span></p>
<p class=""><span class=""> <extension name="</span><span class="">ruri</span><span class="">"> </span></p>
<p class=""><span class=""> <condition field="destination_number" expression="^</span><span class="">ruri</span><span class="">$"> </span></p>
<p class=""><span class=""> <action application="bridge" data="sofia/${</span><span class="">ruri</span><span class="">_profile}/${</span><span class="">ruri</span><span class="">_user}${regex(${sofia_contact(${</span><span class="">ruri</span><span class="">_contact})}|^[^\@]+(.*)|%1)}"/> </span></p>
<p class=""><span class=""> </condition> </span></p>
<p class=""><span class=""> </extension> </span></p>
<p class=""><span class=""> </span></p>
<p class=""><span class=""> <extension name="7004"> </span></p>
<p class=""><span class=""> <condition field="destination_number" expression="^7004$"> </span></p>
<p class=""><span class=""> <action application="set" data="</span><span class="">ruri</span><span class="">_profile=default"/> </span></p>
<p class=""><span class=""> <action application="set" data="</span><span class="">ruri</span><span class="">_user=2000"/> </span></p>
<p class=""><span class=""> <action application="set" data="</span><span class="">ruri</span><span class="">_contact=1001@${domain_name}"/> </span></p>
<p class=""><span class=""> <action application="execute_extension" data="</span><span class="">ruri</span><span class="">"/> </span></p>
<p class=""><span class=""> </condition> </span></p>
<p class=""><span class=""> </extension> </span></p></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 2, 2016 at 2:42 PM, Marc S <span dir="ltr"><<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@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>Thanks for all replies.<br><br>FS would be used as SBC.<br><br>I would like my customers' 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: <<a href="mailto:sip%3Atestipbx2@1.2.3.4" target="_blank">sip:testipbx2@1.2.3.4</a>>;tag=as47a2d14b<br>To: <<a href="mailto:sip%3Atestipbx2@1.2.3.4" target="_blank">sip:testipbx2@1.2.3.4</a>><br>Call-ID: <a href="mailto:6896d4fe6ab4904b7830df881a25e4cf@127.0.1.1" target="_blank">6896d4fe6ab4904b7830df881a25e4cf@127.0.1.1</a><br>CSeq: 103 REGISTER<br>User-Agent: Asterisk<br>Max-Forwards: 70<br>Authorization: Digest username="testipbx2", realm="1.2.3.4", algorithm=MD5, uri="sip:1.2.3.4", nonce="618f279c-c9ea-11e5-9551-4749c6ba93f1", response="332db701f8c8404f4f1624b9f6c68f2c", qop=auth, cnonce="751ce1f8", nc=00000001<br>Expires: 120<br>Contact: <<a href="mailto:sip%3As@5.6.7.8" target="_blank">sip:s@5.6.7.8</a>><br>Event: registration<br>Content-Length: 0<br><br></div><div>Here FS->Asterisk invite on incoming call<br><br>INVITE <a href="mailto:sip%3As@5.6.7.8" target="_blank">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: "45678776" <<a href="mailto:sip%3A45678776@1.2.3.4" target="_blank">sip:45678776@1.2.3.4</a>>;tag=4v1S65HQ930mF<br>To: <<a href="mailto:sip%3As@5.6.7.8" target="_blank">sip:s@5.6.7.8</a>><br>Call-ID: 971c11f4-c9ea-11e5-956b-4749c6ba93f1<br>CSeq: 86886190 INVITE<br>Contact: <<a href="http://sip:mod_sofia@1.2.3.4:5060" target="_blank">sip:mod_sofia@1.2.3.4:5060</a>><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="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-02-02 21:29 GMT+01:00 Oz Mortimer <span dir="ltr"><<a href="mailto:omortimer@gmail.com" target="_blank">omortimer@gmail.com</a>></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's on a private LAN and that your asterisk box does something "special"..</div><div><div><div><br></div><div><br>On 2 Feb 2016, at 19:28, Marc S <<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">It seems that "freeswitch gateway username" 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"><<a href="mailto:omortimer@gmail.com" target="_blank">omortimer@gmail.com</a>></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 & pass in your freeswitch gateway. </div><div>I'm sure a google for "asterisk username authentication" and "freeswitch gateway username" will give you plenty of examples - you will want freeswitch to bridge to gateway - again Google "freeswitch bridge gateway".</div><div>Google is your friend.. </div><div><div><div><br></div><div><br>On 2 Feb 2016, at 19:03, Marc S <<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@gmail.com</a>> 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> <extension name="inbound_12345678"><br> <condition field="destination_number" expression="^(12345678)$"><br> <action application="bridge" data="user/myuserid"/><br></div><div> </condition><br></div><div></extension><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"><<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>></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"><<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@gmail.com</a>></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><action application="bridge" data="user/myuserid"/> <br><br></span></div>=> s extension in asterisk instead of extension<br><div><br><action application="bridge" data="sofia/mycontext/myextension@<ASTERISK_IP>"/><br><br></div><div>=> 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"><<a href="mailto:therebel22@gmail.com" target="_blank">therebel22@gmail.com</a>></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'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't be defined, only user id :<br><br><action application="bridge" data="user/myuserid"/><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" 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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><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 href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><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 size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <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>