Authenticating a user through ESL script
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@12.0.0.104 &park()"); Thanks for your help. Regards,
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@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@12.0.0.104 &park()");
Thanks for your help.
Regards,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you it's working ! But I really couldn't get the difference ? 2014-08-19 19:15 GMT+02:00 Michael Collins <msc@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@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@12.0.0.104 &park()");
Thanks for your help.
Regards,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@12.0.0.104 &park()");
Thanks for your help.
Regards,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@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
participants (3)
-
Brian West
-
Michael Collins
-
sami sakly