Custom variable and channel answer event (socket)
Hi, I am setting a custom var from a javascript code, I do see it in channel state events and others up to channel answer. In channel answer event it somehow disappears, and then comes back in channel destroy event. My problem is that I really need it in channel answer event. What can be wrong here? I did put verbose_event action everywhere I could think of. Help would be greatly appreciated. Thanks.
all the variables should be present in that event. Maybe rebuild to make sure you don't have skew from an upgrade. On Sun, May 31, 2009 at 7:52 PM, paul.degt@gmail.com <paul.degt@gmail.com>wrote:
Hi, I am setting a custom var from a javascript code, I do see it in channel state events and others up to channel answer. In channel answer event it somehow disappears, and then comes back in channel destroy event. My problem is that I really need it in channel answer event. What can be wrong here? I did put verbose_event action everywhere I could think of. Help would be greatly appreciated. Thanks.
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Can you pastebin a simple script that demonstrates the issue? Also, include any dialplan/configuration changes you use. Finally, please paste in a sample event with and without the variable in question. Once we have more information we will see what we can do to help. -MC On Sun, May 31, 2009 at 5:52 PM, paul.degt@gmail.com <paul.degt@gmail.com>wrote:
Hi, I am setting a custom var from a javascript code, I do see it in channel state events and others up to channel answer. In channel answer event it somehow disappears, and then comes back in channel destroy event. My problem is that I really need it in channel answer event. What can be wrong here? I did put verbose_event action everywhere I could think of. Help would be greatly appreciated. Thanks.
_______________________________________________ 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
I don't know how to paste to pastebin, I have registered with freeswitch.org, but it seems I need a different login for pastebin? Meanwhile here's what I do in javascript: *session.setVariable("test_var", pin);* *session.setVariable("hangup_after_bridge", "false"); session.execute("transfer",destnum);* Basically somebody calls into fs and then dials out via gateway. I see my *variable_test_var *in channel state events, and then in channel hangup and destroy, but nothing in answer event. I just tested that with the latest trunk. On Mon, Jun 1, 2009 at 12:59 PM, Michael Collins <msc@freeswitch.org> wrote:
Can you pastebin a simple script that demonstrates the issue? Also, include any dialplan/configuration changes you use. Finally, please paste in a sample event with and without the variable in question. Once we have more information we will see what we can do to help.
-MC
On Sun, May 31, 2009 at 5:52 PM, paul.degt@gmail.com <paul.degt@gmail.com>wrote:
Hi, I am setting a custom var from a javascript code, I do see it in channel state events and others up to channel answer. In channel answer event it somehow disappears, and then comes back in channel destroy event. My problem is that I really need it in channel answer event. What can be wrong here? I did put verbose_event action everywhere I could think of. Help would be greatly appreciated. Thanks.
_______________________________________________ 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
_______________________________________________ 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
On Jun 4, 2009, at 9:04 AM, srbrth rsttr wrote:
I don't know how to paste to pastebin, I have registered with freeswitch.org, but it seems I need a different login for pastebin?
Look closely to the pastebin login prompt box, you will immediately know how to login.
Meanwhile here's what I do in javascript:
session.setVariable("test_var", pin); session.setVariable("hangup_after_bridge", "false"); session.execute("transfer",destnum);
Basically somebody calls into fs and then dials out via gateway. I see my variable_test_var in channel state events, and then in channel hangup and destroy, but nothing in answer event. I just tested that with the latest trunk.
On Mon, Jun 1, 2009 at 12:59 PM, Michael Collins <msc@freeswitch.org> wrote: Can you pastebin a simple script that demonstrates the issue? Also, include any dialplan/configuration changes you use. Finally, please paste in a sample event with and without the variable in question. Once we have more information we will see what we can do to help.
-MC
On Sun, May 31, 2009 at 5:52 PM, paul.degt@gmail.com <paul.degt@gmail.com
wrote: Hi, I am setting a custom var from a javascript code, I do see it in channel state events and others up to channel answer. In channel answer event it somehow disappears, and then comes back in channel destroy event. My problem is that I really need it in channel answer event. What can be wrong here? I did put verbose_event action everywhere I could think of. Help would be greatly appreciated. Thanks.
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
did you answer before you set the var? I was going to drop in a hint about the pastebin but it's sort of a litmus test for how ppl pay attention..... On Wed, Jun 3, 2009 at 8:23 PM, dujinfang <dujinfang@gmail.com> wrote:
On Jun 4, 2009, at 9:04 AM, srbrth rsttr wrote:
I don't know how to paste to pastebin, I have registered with freeswitch.org, but it seems I need a different login for pastebin?
Look closely to the pastebin login prompt box, you will immediately know how to login.
Meanwhile here's what I do in javascript:
*session.setVariable("test_var", pin);* *session.setVariable("hangup_after_bridge", "false"); session.execute("transfer",destnum);*
Basically somebody calls into fs and then dials out via gateway. I see my *variable_test_var *in channel state events, and then in channel hangup and destroy, but nothing in answer event. I just tested that with the latest trunk.
On Mon, Jun 1, 2009 at 12:59 PM, Michael Collins <msc@freeswitch.org>wrote:
Can you pastebin a simple script that demonstrates the issue? Also, include any dialplan/configuration changes you use. Finally, please paste in a sample event with and without the variable in question. Once we have more information we will see what we can do to help.
-MC
On Sun, May 31, 2009 at 5:52 PM, paul.degt@gmail.com <paul.degt@gmail.com
wrote:
Hi, I am setting a custom var from a javascript code, I do see it in channel state events and others up to channel answer. In channel answer event it somehow disappears, and then comes back in channel destroy event. My problem is that I really need it in channel answer event. What can be wrong here? I did put verbose_event action everywhere I could think of. Help would be greatly appreciated. Thanks.
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
:-)). I guess I worked too much today. But I never really read what login windows say on the other hand. I pasted my java app trace logs showing state event and answer event. I set the var before answer, so it does appear when fs executes dial plan to dial via gateway. And as I said before I see it in hangup event too. I pasted traces under name "pauldegtgmailcom". Anthony Minessale wrote:
did you answer before you set the var? I was going to drop in a hint about the pastebin but it's sort of a litmus test for how ppl pay attention.....
On Wed, Jun 3, 2009 at 8:23 PM, dujinfang <dujinfang@gmail.com <mailto:dujinfang@gmail.com>> wrote:
On Jun 4, 2009, at 9:04 AM, srbrth rsttr wrote:
I don't know how to paste to pastebin, I have registered with freeswitch.org <http://freeswitch.org>, but it seems I need a different login for pastebin?
Look closely to the pastebin login prompt box, you will immediately know how to login.
Meanwhile here's what I do in javascript:
/session.setVariable("test_var", pin);/ /session.setVariable("hangup_after_bridge", "false"); session.execute("transfer",destnum);/
Basically somebody calls into fs and then dials out via gateway. I see my /variable_test_var /in channel state events, and then in channel hangup and destroy, but nothing in answer event. I just tested that with the latest trunk.
On Mon, Jun 1, 2009 at 12:59 PM, Michael Collins <msc@freeswitch.org <mailto:msc@freeswitch.org>> wrote:
Can you pastebin a simple script that demonstrates the issue? Also, include any dialplan/configuration changes you use. Finally, please paste in a sample event with and without the variable in question. Once we have more information we will see what we can do to help.
-MC
On Sun, May 31, 2009 at 5:52 PM, paul.degt@gmail.com <mailto:paul.degt@gmail.com> <paul.degt@gmail.com <mailto:paul.degt@gmail.com>> wrote:
Hi, I am setting a custom var from a javascript code, I do see it in channel state events and others up to channel answer. In channel answer event it somehow disappears, and then comes back in channel destroy event. My problem is that I really need it in channel answer event. What can be wrong here? I did put verbose_event action everywhere I could think of. Help would be greatly appreciated. Thanks.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 <http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400 ------------------------------------------------------------------------
_______________________________________________ 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
The variable name is access_var, not test_var, looked at wrong script. Anthony Minessale wrote:
did you answer before you set the var? I was going to drop in a hint about the pastebin but it's sort of a litmus test for how ppl pay attention.....
On Wed, Jun 3, 2009 at 8:23 PM, dujinfang <dujinfang@gmail.com <mailto:dujinfang@gmail.com>> wrote:
On Jun 4, 2009, at 9:04 AM, srbrth rsttr wrote:
I don't know how to paste to pastebin, I have registered with freeswitch.org <http://freeswitch.org>, but it seems I need a different login for pastebin?
Look closely to the pastebin login prompt box, you will immediately know how to login.
Meanwhile here's what I do in javascript:
/session.setVariable("test_var", pin);/ /session.setVariable("hangup_after_bridge", "false"); session.execute("transfer",destnum);/
Basically somebody calls into fs and then dials out via gateway. I see my /variable_test_var /in channel state events, and then in channel hangup and destroy, but nothing in answer event. I just tested that with the latest trunk.
On Mon, Jun 1, 2009 at 12:59 PM, Michael Collins <msc@freeswitch.org <mailto:msc@freeswitch.org>> wrote:
Can you pastebin a simple script that demonstrates the issue? Also, include any dialplan/configuration changes you use. Finally, please paste in a sample event with and without the variable in question. Once we have more information we will see what we can do to help.
-MC
On Sun, May 31, 2009 at 5:52 PM, paul.degt@gmail.com <mailto:paul.degt@gmail.com> <paul.degt@gmail.com <mailto:paul.degt@gmail.com>> wrote:
Hi, I am setting a custom var from a javascript code, I do see it in channel state events and others up to channel answer. In channel answer event it somehow disappears, and then comes back in channel destroy event. My problem is that I really need it in channel answer event. What can be wrong here? I did put verbose_event action everywhere I could think of. Help would be greatly appreciated. Thanks.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 <http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400 ------------------------------------------------------------------------
_______________________________________________ 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
participants (5)
-
Anthony Minessale
-
dujinfang
-
Michael Collins
-
paul.degt@gmail.com
-
srbrth rsttr