[Freeswitch-users] How to check whether incoming call is authenticated
Sergey Safarov
s.safarov at gmail.com
Wed Jan 20 07:03:51 MSK 2016
Please check provided example on vanila config.
Example is correct.
On Tue, Jan 19, 2016, 20:24 Artur Mega <findmeinwland at gmail.com> wrote:
> We tried, but doesn't work. In the dialplan:
>
> <context name="public-external">
> <extension name="transfer_it">
> <condition field="${sip_authorized}" expression="true"
> break="never">
> <action application="log" data="TEEEEEST ${sip_authorized}"/>
> <anti-action application="log" data="NOT LOGINED
> ${sip_authorized}"></anti-action>
> </condition>
> </extension>
> </context>
>
> See two attachments. First - it is when in external.xml we set <param
> name="auth-calls" value="*false*"/>: (in anti-action it must print the
> value of ${sip_authorized}, but prints nothing)
> [image: Встроенное изображение 1]
> (${sip_authorized} is nothing, even not false)
>
>
> Next screen - it is when in external.xml we set <param name="auth-calls"
> value="*true*"/>: (we made call from phone not in our domain, and it
> behaviored like should - call is breaked)
> [image: Встроенное изображение 2]
>
>
>
>
>
>
> 2016-01-19 18:14 GMT+05:00 Brian West <brian at freeswitch.org>:
>
>> Did you try it? Because what was posted will work.
>>
>>
>> On Tuesday, January 19, 2016, Artur Mega <findmeinwland at gmail.com> wrote:
>>
>>> No, it doesnt work, becouse we set in external.xml
>>>
>>> <param name="auth-calls" value="false"/>
>>>
>>> documentation (
>>> https://wiki.freeswitch.org/wiki/Sofia.conf.xml#auth-calls) says that *"Value
>>> can be "false" to disable authentication on this profile, meaning that when
>>> calls come in the profile will not send an auth challenge to the caller."*
>>>
>>> We can receive calls, no problem, but for our needs we want to check who
>>> is calling - user is authorised or not.
>>>
>>
>>
>> --
>>
>> *Brian West*
>> brian at freeswitch.org
>>
>>
>> *Twitter: @FreeSWITCH , @briankwest*
>> http://www.freeswitchbook.com
>> http://www.freeswitchcookbook.com
>>
>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>
>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
>
> Arthur
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160120/0b72daef/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auth_true.png
Type: image/png
Size: 328078 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160120/0b72daef/attachment-0002.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auth_false.png
Type: image/png
Size: 300722 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160120/0b72daef/attachment-0003.png
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list