<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello Sergey<br>
<br>
I am agree with you that my dial plan can be risky I used ACL but
this can be not sufficient. I want to be able to call any internal
sip extension, but i don't want that this piece dialplan to be
usable reach external numbers. <br>
<br>
I probably need to protect theses variables ( sip_to_user must be
only a locally registered sip extension ) or avoid using them (
maybe using multiple conditions field for each domain ? )<br>
<br>
I don't fully understand your initial example:<br>
<br>
<font face="Courier New, Courier, monospace"><action
application="bridge" data="{sip_invite_to_uri=<sip:${<a
href="mailto:destination_number%7D@mydomain.org">destination_number}@mydomain.org</a>>}user/<a
href="mailto:reg_user@mydomain.org">reg_user@mydomain.org</a>"/></font><br>
<br>
What is <b>reg_user</b> for freeswitch1 ? What should i use on
freeswitch2 dialplan to recognize the inbound call ?<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br>
<br>
On 18/09/2015 07:10, Sergey Safarov wrote:<br>
</div>
<blockquote
cite="mid:CAHtxdDcc17EQngB5cAV=Q6jteY8b+tEg8YEsStyrHhK75CmcsQ@mail.gmail.com"
type="cite">
<p dir="ltr">1) I recommend not use "domain" and dereviated
variables. This variables may be used in bridge and other
application.<br>
2) try send invite as in example provided early. </p>
<br>
<div class="gmail_quote">
<div dir="ltr">On Thu, Sep 17, 2015, 23:22 Tanguy <<a
moz-do-not-send="true" href="mailto:phenix@vfemail.net">phenix@vfemail.net</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>I am now able to call a extension from a remote server,
for those who are interested i used theses options on
freeswitch2 public dialplan<br>
<br>
<action application="set"
data="call_direction=inbound"/><br>
<action application="set"
data="domain_name=${sip_to_host}" ><br>
<action application="set"
data="domain=${sip_to_host}"/><br>
<action application="transfer" data="${sip_to_user} XML
${sip_to_host}" /></div>
</div>
<div bgcolor="#FFFFFF" text="#000000">
<div><br>
<br>
</div>
</div>
</blockquote>
</div>
</blockquote>
<br>
</body>
</html>