I’ve set up a sip trunk between two freeswitches. On freeswitch A I’ve configured a gateway <gateway name="testgw2"> <param name="username" value="toni"/> <param name="password" value="toni456"/> <param name="proxy" value="192.168.1.135"/> <param name="register" value="true"/> <param name="caller-id-in-from" value="true"/> </gateway> on freeswitch B I’ve configured a user appropriate to the gateway <include> <user id="toni"> <params> <param name="password" value="toni456"/> <param name="vm-password" value="1000"/> </params> <variables> </variables> </user> </include> To call from freeswitch A to freeswitch B I've configured the following dialplan <extension name="test"> <condition field="destination_number" expression="^(12345)$"> <action application="bridge" data="user/toni"/> </condition> </extension> Now my question. However freeswitch A is registered to freeswitch B with the gateway user, I get a "Proxy Authentication Required" SIP message as response to an invite. This is because I have set the parameter „auth_calls" in the sip profile to true. Is there a way to configure the sip profile or gateway to accept calls only from this gateway? If I change the parameter „auth_calls“ to „false“, I do not get the "Proxy Authentication Required“ message, but then all calls received on this profile do not need authentication. Thanks Markus
add those IP’s to the domains ACL or create your own acl. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Mar 6, 2014, at 9:56 AM, mbo <mbodbg@gmx.net> wrote:
Now my question. However freeswitch A is registered to freeswitch B with the gateway user, I get a "Proxy Authentication Required" SIP message as response to an invite. This is because I have set the parameter „auth_calls" in the sip profile to true. Is there a way to configure the sip profile or gateway to accept calls only from this gateway? If I change the parameter „auth_calls“ to „false“, I do not get the "Proxy Authentication Required“ message, but then all calls received on this profile do not need authentication.
participants (2)
-
Brian West
-
mbo