[Freeswitch-users] IVRD
Madovsky
infos at madovsky.org
Tue Jan 25 20:37:54 MSK 2011
ok I retry it , go:
2) make perlmod
----- Original Message -----
From: "Anthony Minessale" <anthony.minessale at gmail.com>
To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
Sent: Tuesday, January 25, 2011 11:19 AM
Subject: Re: [Freeswitch-users] IVRD
>I just tried it on my box and it works fine. I'll give you the steps
> I did just so you can compare. This is with unaltered FS git HEAD
> Make sure you have at least done "make sounds-install" from the main
> FS build root.
>
> 1) cd libs/esl
> 2) make perlmod
> 3) cd perl
> 4) open new file called test.pl and paste in the demo script from
> http://wiki.freeswitch.org/wiki/Ivrd
> 5) edit only one line:
>
> use lib '/usr/src/freeswitch/libs/esl/perl';
>
> If it is not already right, change this to match the absolute path to
> the perl folder you are currently in.
> 6) chmod a+rx test.pl
> 7) ../../../fs_ivrd -h 127.0.0.1 -p 8040
>
> 8) configure exten in DP: (make sure the path is also correct matching
> the line you hacked in the test.pl)
>
> <extension name="7002">
> <condition field="destination_number" expression="^7002$">
> <action application="set"
> data="ivr_path=/usr/src/freeswitch/libs/esl/perl/test.pl"/>
> <action application="socket" data="127.0.0.1:8040 async full"/>
> <action application="info"/>
> </condition>
> </extension>
>
> 9) start FS and call 7002
>
>
> On Mon, Jan 24, 2011 at 10:33 PM, Madovsky <infos at madovsky.org> wrote:
>> I tried also the ivrd-demo.php with fs_ivrd from this thread
>>
>> http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg14816.html
>>
>> and add a mail functio in the script to know if fs_ivrd call the php
>> script
>> but it doesn't.
>>
>> I really don't know what's happen.
>>
>> thanks
>>
>> ----- Original Message -----
>> From: "Anthony Minessale" <anthony.minessale at gmail.com>
>> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
>> Sent: Monday, January 24, 2011 7:02 PM
>> Subject: Re: [Freeswitch-users] IVRD
>>
>>
>>> you may want to go over everything again:
>>> We use that extensively so it's unlikely there is a problem.
>>>
>>> search your dir for any stale ESL.so or .pm files and recopy them all
>>> from your source tree so they match the version of FS you are on.
>>>
>>>
>>> Did you try the exact test example?
>>> I can test it on my end tomorrow if you are still stuck.
>>>
>>>
>>>
>>> On Mon, Jan 24, 2011 at 5:55 PM, Madovsky <infos at madovsky.org> wrote:
>>>> I compiled ESL from the last source tree of FS I have (git from about 5
>>>> days
>>>> ago)
>>>> and followed the instructions on wiki ESL Perl
>>>> ESL stuff are in
>>>>
>>>> /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi/ESL
>>>>
>>>>
>>>>
>>>> ----- Original Message -----
>>>> From: "Anthony Minessale" <anthony.minessale at gmail.com>
>>>> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
>>>> Sent: Monday, January 24, 2011 6:32 PM
>>>> Subject: Re: [Freeswitch-users] IVRD
>>>>
>>>>
>>>>> did you maybe update FS and not update all the ESL stuff?
>>>>> Do you have it in a nostandard location?
>>>>>
>>>>>
>>>>> On Mon, Jan 24, 2011 at 5:26 PM, Madovsky <infos at madovsky.org> wrote:
>>>>>> Apparently the script stalls at
>>>>>>
>>>>>> ## Create the connection object which is basically an IVR
>>>>>> my $con = new ESL::IVR;
>>>>>>
>>>>>> I'm looking into IVR.pm to know wha'ts happening
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: "Anthony Minessale" <anthony.minessale at gmail.com>
>>>>>> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
>>>>>> Sent: Monday, January 24, 2011 3:30 PM
>>>>>> Subject: Re: [Freeswitch-users] IVRD
>>>>>>
>>>>>>
>>>>>> did you run the fs_ivrd from a shell and look for output in stderr?
>>>>>> it has to be related to the script executing failing etc.
>>>>>>
>>>>>>
>>>>>> On Mon, Jan 24, 2011 at 11:57 AM, Madovsky <infos at madovsky.org>
>>>>>> wrote:
>>>>>>> Sorry I sent this email by mistake without to finish it.
>>>>>>> so in my dialplan I have :
>>>>>>> <extension name="gluglu">
>>>>>>> <condition field="destination_number"
>>>>>>> expression="^999$">
>>>>>>> <action application="set"
>>>>>>> data="ivr_path=/usr/local/freeswitch/scripts/perl/ivrd-hello_world.pl"/>
>>>>>>> <action application="socket" data="127.0.0.1:9090
>>>>>>> full"/>
>>>>>>> <action application="answer"/>
>>>>>>> <action application="voicemail" data="default
>>>>>>> ${domain_name} ${dialed_extension}"/>
>>>>>>> <condition>
>>>>>>> </extension>
>>>>>>>
>>>>>>> and when I call this extension in log level 7 I can see :
>>>>>>>
>>>>>>> Dialplan: sofia/internal/9999999999999 at default Action
>>>>>>> set(ivr_path=/usr/local/freeswitch/scripts/perl/ivrd-hello_world.pl)
>>>>>>> Dialplan: sofia/internal/9999999999999 at default Action
>>>>>>> socket(127.0.0.1:9090
>>>>>>> full)
>>>>>>> Starting ivrd-hello_world.pl...
>>>>>>>
>>>>>>> and no ivrd-hello_world.pl code is executed in the dialplan unless
>>>>>>> the
>>>>>>> print
>>>>>>> "Starting ivrd-hello_world.pl";
>>>>>>>
>>>>>>> the same if I replace fs_ivrd with server2.pl for example
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>> ----- Original Message -----
>>>>>>> From: "Madovsky" <infos at madovsky.org>
>>>>>>> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
>>>>>>> Sent: Monday, January 24, 2011 12:48 PM
>>>>>>> Subject: Re: [Freeswitch-users] IVRD
>>>>>>>
>>>>>>>
>>>>>>>> Concerning the use of fs_ivrd:
>>>>>>>>
>>>>>>>> path is ok
>>>>>>>> permission is root 755
>>>>>>>> perl -c gives ../scripts/perl/ivrd-hello_world.pl syntax OK
>>>>>>>>
>>>>>>>> in dialplan I have :
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ----- Original Message -----
>>>>>>>> From: "Anthony Minessale" <anthony.minessale at gmail.com>
>>>>>>>> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
>>>>>>>> Sent: Monday, January 24, 2011 11:20 AM
>>>>>>>> Subject: Re: [Freeswitch-users] IVRD
>>>>>>>>
>>>>>>>>
>>>>>>>> check for proper path and execute permissions on the file and
>>>>>>>> perl -c
>>>>>>>> to make sure it compiles.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Jan 24, 2011 at 12:13 AM, Madovsky <infos at madovsky.org>
>>>>>>>> wrote:
>>>>>>>>> I tried to use IVRD from wiki example
>>>>>>>>>
>>>>>>>>> http://wiki.freeswitch.org/wiki/Ivrd
>>>>>>>>>
>>>>>>>>> and server2.pl in ESL directory
>>>>>>>>> copy and paste in my dialplan ans settings
>>>>>>>>> so the daemon is running well, but if I attempt
>>>>>>>>> to call nothing happens unless hangup.
>>>>>>>>> on the log I can see only
>>>>>>>>>
>>>>>>>>> EXECUTE sofia/internal/9999999999999 at default socket(127.0.0.1:8084
>>>>>>>>> full)
>>>>>>>>>
>>>>>>>>> I tried the tests of troubleshooting without error
>>>>>>>>> I don't understand why the events are not received in the perl
>>>>>>>>> script
>>>>>>>>> _______________________________________________
>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Anthony Minessale II
>>>>>>>>
>>>>>>>> FreeSWITCH http://www.freeswitch.org/
>>>>>>>> ClueCon http://www.cluecon.com/
>>>>>>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>>>>>>
>>>>>>>> AIM: anthm
>>>>>>>> MSN:anthony_minessale at hotmail.com
>>>>>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>>>>>>> IRC: irc.freenode.net #freeswitch
>>>>>>>>
>>>>>>>> FreeSWITCH Developer Conference
>>>>>>>> sip:888 at conference.freeswitch.org
>>>>>>>> googletalk:conf+888 at conference.freeswitch.org
>>>>>>>> pstn:+19193869900
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Anthony Minessale II
>>>>>>
>>>>>> FreeSWITCH http://www.freeswitch.org/
>>>>>> ClueCon http://www.cluecon.com/
>>>>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>>>>
>>>>>> AIM: anthm
>>>>>> MSN:anthony_minessale at hotmail.com
>>>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>>>>> IRC: irc.freenode.net #freeswitch
>>>>>>
>>>>>> FreeSWITCH Developer Conference
>>>>>> sip:888 at conference.freeswitch.org
>>>>>> googletalk:conf+888 at conference.freeswitch.org
>>>>>> pstn:+19193869900
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Anthony Minessale II
>>>>>
>>>>> FreeSWITCH http://www.freeswitch.org/
>>>>> ClueCon http://www.cluecon.com/
>>>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>>>
>>>>> AIM: anthm
>>>>> MSN:anthony_minessale at hotmail.com
>>>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>>>> IRC: irc.freenode.net #freeswitch
>>>>>
>>>>> FreeSWITCH Developer Conference
>>>>> sip:888 at conference.freeswitch.org
>>>>> googletalk:conf+888 at conference.freeswitch.org
>>>>> pstn:+19193869900
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>>
>>>
>>> --
>>> Anthony Minessale II
>>>
>>> FreeSWITCH http://www.freeswitch.org/
>>> ClueCon http://www.cluecon.com/
>>> Twitter: http://twitter.com/FreeSWITCH_wire
>>>
>>> AIM: anthm
>>> MSN:anthony_minessale at hotmail.com
>>> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
>>> IRC: irc.freenode.net #freeswitch
>>>
>>> FreeSWITCH Developer Conference
>>> sip:888 at conference.freeswitch.org
>>> googletalk:conf+888 at conference.freeswitch.org
>>> pstn:+19193869900
>>>
>>> _______________________________________________
>>> 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
>>
>>
>> _______________________________________________
>> 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
>>
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
> IRC: irc.freenode.net #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org
> googletalk:conf+888 at conference.freeswitch.org
> pstn:+19193869900
>
> _______________________________________________
> 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
More information about the FreeSWITCH-users
mailing list