[Freeswitch-users] Read app ignores custom variable when called via socket interface
Anthony Minessale
anthony.minessale at gmail.com
Mon Dec 8 09:18:01 PST 2008
i added a patch to index the variables on the
SWITCH_EVENT_CHANNEL_EXECUTE_COMPLETE
if you want to update
otherwise you can use uuid_getvar to retrieve the variable
On Mon, Dec 8, 2008 at 4:48 AM, Jan Kubr <jan.kubr at gmail.com> wrote:
> OK my bad. The variable is set (I can see it in the Freeswitch console
> when I use the info app), but they are only not send to me via the
> socket interface. I get the "variable_*" variables only in the
> beginning (after calling connect), but not in the events. How do I
> enable this?
> Thanks,
> Jan
>
> On Sun, Dec 7, 2008 at 8:44 PM, Anthony Minessale
> <anthony.minessale at gmail.com> wrote:
> > That seems unlikely.
> > You sure about that?
> >
> > The var param is in the middle of the data which is passed as 1 giant
> string
> > to the same exact app execution code.
> > I don't see how it could differentiate
> >
> > did you try executing the info app right after to see all the vars.
> >
> > I'm not saying i don't believe you but it seems fishy.
> >
> >
> >
> > On Sun, Dec 7, 2008 at 5:31 AM, Jan Kubr <jan.kubr at gmail.com> wrote:
> >>
> >> Hi,
> >> I checked out the current trunk (rev 10641) and found out that the
> >> read app ignores the varname parameter, it always puts the result in
> >> the DTMF-Digit variable. I'm calling it via the socket interface:
> >>
> >> sendmsg
> >> call-command: execute
> >> execute-app-name: read
> >> execute-app-arg: 1 1 en/us/callie/conference/8000/conf-pin.wav res 10000
> #
> >> event-lock:true
> >>
> >>
> >> In the XML dialplan it works fine:
> >>
> >> <action application="read" data="1 1
> >> sounds/en/us/callie/conference/8000/conf-pin.wav res 10000 #"/>
> >> <action application="phrase" data="spell,${res}"/>
> >>
> >>
> >> I have been using the socket call above successfully in the 1.0.1
> release.
> >>
> >> Any ideas? Thanks,
> >>
> >> Jan Kubr
> >>
> >> _______________________________________________
> >> 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/
> >
> > AIM: anthm
> > MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
> > GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
> > IRC: irc.freenode.net #freeswitch
> >
> > FreeSWITCH Developer Conference
> > sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
> > iax:guest at conference.freeswitch.org/888
> > googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
> > pstn:213-799-1400
> >
> > _______________________________________________
> > 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/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081208/8dc215e1/attachment-0002.html
More information about the FreeSWITCH-users
mailing list