[Freeswitch-users] Authenticating a user through ESL script

Brian West brian at freeswitch.org
Wed Aug 20 19:44:38 MSD 2014


Look at dial-string in the default directory configs user/ is just a pseudo
endpoint that uses the dial-string to resolve the users technology so that
user/ is technology agnostic ;)


On Wed, Aug 20, 2014 at 4:13 AM, sami sakly <it.samisakly at gmail.com> wrote:

> Thank you it's working !
> But I really couldn't get the difference ?
>
>
>
> 2014-08-19 19:15 GMT+02:00 Michael Collins <msc at freeswitch.org>:
>
> Is 1000 a locally registered user? That is, can you do this instead?
>>
>> $ec1 = $sock->bgapi("originate","{origination_uuid=$uuid1}user/1000
>> &park()");
>>
>> -MC
>>
>>
>> On Tue, Aug 19, 2014 at 1:50 AM, sami sakly <it.samisakly at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>>
>>> I'm looking to issue calls from the CLI (using originate command ) the
>>> same way it's done through any Dialer like SIPml5.
>>> I think I need to do something about the dialplan because once I'm
>>> calling using SIPml5 I'm passing "through" default dialplan and when I'm
>>> only using originate from external script I'm passing "through" Public
>>> dialplan. May be something about authenticated user ?
>>>
>>> 2014-08-18 18:20:37.712649 [INFO] mod_dialplan_xml.c:558 Processing
>>> <0000000000>->1000 in context public
>>>
>>> for the originate command I'm using esl.php :
>>> $ec1 = $sock->bgapi("originate","{origination_uuid=$uuid1}sofia/internal/
>>> 1000 at 12.0.0.104 &park()");
>>>
>>>
>>> Thanks for your help.
>>>
>>> Regards,
>>>
>>> _________________________________________________________________________
>>> 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
>>>
>>
>>
>> _________________________________________________________________________
>> 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
>>
>
>
> _________________________________________________________________________
> 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
>



-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140820/125ca1b5/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list