<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello<br>
<br>
I'm not sure to understand why i should use a so strange trick.
Using "internal" profile for external trunk can't be a security leak
? If my provider change something about the 10.7.6.60 gateway, the
trunk will no longer work until i update my configuration ?<br>
<br>
Nevertheless i tried to apply your advice, so i moved by gateway in
internal profile and i created a new user<br>
<tt><br>
/usr/local/freeswitch/conf/dialplan/provider_inbound_calls/user.xml
<br>
<br>
<include><br>
<user id="provider_gw1" cidr="10.7.1.60/32" > <br>
<params><br>
<param name="password" value="xxxxxx"/><br>
</params><br>
</user><br>
<variables><br>
<variable name="user_context"
value="provider_inbound_calls"/><br>
</variables><br>
<br>
</include></tt><br>
<br>
Unfortunately it did not work, but i have the good DID number in
[<a class="moz-txt-link-abbreviated" href="mailto:0557590xxx@10.7.1.60">0557590xxx@10.7.1.60</a>]<br>
<tt><br>
2015-05-02 18:30:15.940354 [DEBUG] sofia.c:9015 IP 91.121.129.20
Rejected by acl "domains". Falling back to Digest auth.<br>
2015-05-02 18:30:15.940354 [WARNING] sofia_reg.c:2827 Can't find
user [<a class="moz-txt-link-abbreviated" href="mailto:anonymous@10.7.1.60">anonymous@10.7.1.60</a>] from 91.121.129.20<br>
You must define a domain called '10.7.1.60' in your directory and
add a user with the id="anonymous" attribute<br>
and you must configure your device to use the proper domain in
it's authentication credentials.<br>
2015-05-02 18:30:15.940354 [WARNING] sofia_reg.c:1687 SIP auth
failure (INVITE) on sofia profile 'internal' for <b>[<a class="moz-txt-link-abbreviated" href="mailto:0557590xxx@10.7.1.60">0557590xxx@10.7.1.60</a>]
</b>from ip 91.121.129.20<br>
2015-05-02 18:30:15.940354 [DEBUG] switch_core_session.c:1061 Send
signal <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/0967212xxx@sip.ovh.fr">sofia/internal/0967212xxx@sip.ovh.fr</a> [BREAK]<br>
2015-05-02 18:30:15.940354 [NOTICE] sofia.c:2063 Hangup
<a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/0967212xxx@sip.ovh.fr">sofia/internal/0967212xxx@sip.ovh.fr</a> [CS_NEW] [CALL_REJECTED]<br>
<br>
<br>
</tt><br>
Just for fun i created a user anonymous in domain 10.7.1.60 and
reloaded with reloadxml but i still have the same message.<br>
<br>
<tt>/usr/local/freeswitch/conf/dialplan/10.7.1.60/user.xml <br>
<br>
<include><br>
<user id="anonymous" cidr="10.7.1.60/32" > <br>
<params><br>
<param name="password" value="xxxxx"/><br>
</params><br>
</user><br>
<variables><br>
<variable name="user_context" value="10.7.1.60"/><br>
</variables><br>
</include></tt><br>
<br>
<br>
<br>
<br>
Thanks<br>
<br>
<br>
On 02/05/2015 08:17, Sergey Safarov wrote:
<blockquote
cite="mid:CAHtxdDfigUd681ECVwZJDOa0J9ZyjHvc0b+t1r4xdvXzj9+iCA@mail.gmail.com"
type="cite">
<div dir="ltr">Try
<div>1) link gateway to "internal" profile;</div>
<div>2) create dialplan with name "provider_inbound_calls" and
add required extensions;</div>
<div>3) create user "provider_gw1" in directory with
attribute cidr="<a moz-do-not-send="true"
href="http://10.7.1.60/32">10.7.1.60/32</a>" (value from you
example), with random value in param "password",
and "provider_inbound_calls" value
in variable "user_context" </div>
<div>After it you can make inbound call from.</div>
<div>If provider has several gateways, add user record in
directory for each gateway.</div>
<div><br>
</div>
<div>Sergey</div>
<div><br>
</div>
</div>
<br>
</blockquote>
<br>
</body>
</html>