[Freeswitch-users] Cannot connect to ESL via perl

Peter Steinbach lists at telefaks.de
Mon Nov 13 11:13:07 UTC 2017


Maybe a wireshark dump could help to figure out, what's going wrong there?


On 11/13/17 04:21, 王聡 wrote:
> Hey all,
>
> I had made an ivr system based on perl and esl connectivity, which looks like below:
>
> while(1){
>   if(!$self->{esl}->connected()){
>     $self->{esl} = new ESL::ESLconnection("127.0.0.1", "8021", "ClueCon");
>       print "connecting...\n";
>       next;
>       sleep(1);
>     }
>     ...
>     ...
>     my $t_from = $self->{esl}->api("uuid_getvar $row[0] sip_from_user")->getBody();
>     if(funca($t_from)){
>       $self->{esl}->api("uuid_kill $row[0]");
>     }
>     ....
>     ....
>   sleep(1);
> }
>
> Most of the time it works well, but sometimes the esl connection returns unconnected and the whole ivr system got freeze.
>
>  [ !$self->{esl}->connected() ] returned false.
>
> I had checked console and no error found. Actually it will recover by itself after about 1 hour, but it makes me annoying for the random call failure. Is there any solution about this connection failure?
>
> FreeSWITCH version : FreeSWITCH Version 1.4.26+git~20160205T175853Z~ca9207aa32~64bit (git ca9207a 2016-02-05 17:58:53Z 64bit)
>
> 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


-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
mailto:lists (att) telefaks.de
Internet: www.telefaks.de




More information about the FreeSWITCH-users mailing list