[Freeswitch-users] mod_php needed

Christian Löschenkohl christian.loeschenkohl at xpirio.com
Mon Jun 15 12:08:39 PDT 2009


hi

could you provide me a simple example?

- connect with esl
- get uuid
- set a variable (e.g. codec_string=PCMA)
- answer the channel
- playback a file

the script ist called from ivrd, if i get it right
in the dialplan it's

<action application="set" data="ivr_path=/opt/freeswitch/scripts/test.php"/>
<action application="socket" data="127.0.0.1:9999 full"/>

with ivrd started as ./ivrd -h 127.0.0.1 -p 9999

--------------------
in my setup $esl->api("help") works and also $esl->sendRecv("api help")
but $esl->execute() does nothing

i use version 1.0.4pre8 if it is helpfull

br


On 2009-06-15 17:12, William Suffill wrote:
> Any suggestions of what would be a good example in PHP using ESL to
> document? I'll take a stab at writing something up this week but it
> would help to have some idea what would be useful. I've used it and got
> it working but rather document a generic real life example versus my
> unique use cases.
>
> -- W
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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

-- 
Ing. Christian Löschenkohl
Technische Leitung, Forschung & Entwicklung VoIP

xpirio
Telekommunikation & Service GmbH
Lakeside B04
9020 Klagenfurt
Austria

T  +43 (0) 5 77 11 - 1000
F  +43 (0) 5 77 11 - 1002
E  christian.loeschenkohl at xpirio.com




More information about the FreeSWITCH-users mailing list