Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Another fifo request

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mattdfong at gmail.com
Guest





PostPosted: Mon Mar 23, 2009 11:03 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt
Back to top
reply at matthewfong.com
Guest





PostPosted: Mon Mar 23, 2009 11:04 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt
Back to top
anthony.minessale at g...
Guest





PostPosted: Mon Mar 23, 2009 11:22 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:
Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
mattdfong at gmail.com
Guest





PostPosted: Thu Mar 26, 2009 4:48 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Hi Anthony,

So it's been 2 days since my last request, so I'm due for another one Wink


It would be nice if there was a way to execute a script (lua) on fifo bridge. I currently rely on the channel_bridge event, but I'm worried that as my system scales, it would be better to fire a custom event. In non-fifo mode, I can do this with bridge_pre_execute_bleg_app/data, but this doesn't work with a fifo bridge. It doesn't really matter which channel it fires on fifo out or fifo in channel, anything is better than having to listen for a specific channel_bridge on a high-use FS installation.


Is there anyway to get an api/script to fire on fifo bridge currently that I'm missing? Thanks!


--matt

2009/3/23 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Mar 26, 2009 10:19 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk

2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>
Quote:
Hi Anthony,

So it's been 2 days since my last request, so I'm due for another one Wink


It would be nice if there was a way to execute a script (lua) on fifo bridge. I currently rely on the channel_bridge event, but I'm worried that as my system scales, it would be better to fire a custom event. In non-fifo mode, I can do this with bridge_pre_execute_bleg_app/data, but this doesn't work with a fifo bridge. It doesn't really matter which channel it fires on fifo out or fifo in channel, anything is better than having to listen for a specific channel_bridge on a high-use FS installation.


Is there anyway to get an api/script to fire on fifo bridge currently that I'm missing? Thanks!


--matt

2009/3/23 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
mattdfong at gmail.com
Guest





PostPosted: Thu Mar 26, 2009 10:28 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Thanks of course!

But, is there any chance of firing an app? Firing an app on bridge gives the programmer more control, rather than just listening for fifo::info custom events. I find that lua running as a FS app can update my database like 10x faster than reading event_socket thru Rails/Telegraph...plus, I trust your coding much more than that of your Rail's development counterparts. Smile


with the custom event you are firing, you should be sure to import the variables first, then fire the event Smile


You rock Mr. Minessale


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk

2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>

Quote:
Hi Anthony,

So it's been 2 days since my last request, so I'm due for another one Wink


It would be nice if there was a way to execute a script (lua) on fifo bridge. I currently rely on the channel_bridge event, but I'm worried that as my system scales, it would be better to fire a custom event. In non-fifo mode, I can do this with bridge_pre_execute_bleg_app/data, but this doesn't work with a fifo bridge. It doesn't really matter which channel it fires on fifo out or fifo in channel, anything is better than having to listen for a specific channel_bridge on a high-use FS installation.


Is there anyway to get an api/script to fire on fifo bridge currently that I'm missing? Thanks!


--matt

2009/3/23 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
mattdfong at gmail.com
Guest





PostPosted: Thu Mar 26, 2009 10:34 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Oh, so the reason why the bridge_api_app execution is more useful, is with the custom fifo:info event, for my event_socket to read it, it has to subscribe to ALL fifo:info events, meaning I have to process fifo:info events even if they are not useful to me. With an app in lua, I can fire a custom event based on say my fifo name, this way my event_socket only has to read events for a specific fifo, rather than all fifos.

it's not to make more work for u Smile...although it's sort of amazing how efficient of a coder you are.


--matt

On Thu, Mar 26, 2009 at 10:20 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Thanks of course!

But, is there any chance of firing an app? Firing an app on bridge gives the programmer more control, rather than just listening for fifo::info custom events. I find that lua running as a FS app can update my database like 10x faster than reading event_socket thru Rails/Telegraph...plus, I trust your coding much more than that of your Rail's development counterparts. Smile


with the custom event you are firing, you should be sure to import the variables first, then fire the event Smile


You rock Mr. Minessale


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk

2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>

Quote:
Hi Anthony,

So it's been 2 days since my last request, so I'm due for another one Wink


It would be nice if there was a way to execute a script (lua) on fifo bridge. I currently rely on the channel_bridge event, but I'm worried that as my system scales, it would be better to fire a custom event. In non-fifo mode, I can do this with bridge_pre_execute_bleg_app/data, but this doesn't work with a fifo bridge. It doesn't really matter which channel it fires on fifo out or fifo in channel, anything is better than having to listen for a specific channel_bridge on a high-use FS installation.


Is there anyway to get an api/script to fire on fifo bridge currently that I'm missing? Thanks!


--matt

2009/3/23 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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






Back to top
mike at jerris.com
Guest





PostPosted: Thu Mar 26, 2009 10:34 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

You can run a lua script (at startup or manually) that creates an event consumer to do exactly what you want.

Mike

On Mar 26, 2009, at 11:20 AM, Matthew Fong wrote:
Quote:
Thanks of course!

But, is there any chance of firing an app? Firing an app on bridge gives the programmer more control, rather than just listening for fifo::info custom events. I find that lua running as a FS app can update my database like 10x faster than reading event_socket thru Rails/Telegraph...plus, I trust your coding much more than that of your Rail's development counterparts. Smile


with the custom event you are firing, you should be sure to import the variables first, then fire the event Smile


You rock Mr. Minessale


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk





Back to top
matt at hellohunter.com
Guest





PostPosted: Thu Mar 26, 2009 10:36 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Ahhh....can you point me to a doc or wiki, I can experiment with?

--matt

2009/3/26 Michael Jerris <mike@jerris.com (mike@jerris.com)>
Quote:
You can run a lua script (at startup or manually) that creates an event consumer to do exactly what you want.

Mike

On Mar 26, 2009, at 11:20 AM, Matthew Fong wrote:

Quote:
Thanks of course!

But, is there any chance of firing an app? Firing an app on bridge gives the programmer more control, rather than just listening for fifo::info custom events. I find that lua running as a FS app can update my database like 10x faster than reading event_socket thru Rails/Telegraph...plus, I trust your coding much more than that of your Rail's development counterparts. Smile


with the custom event you are firing, you should be sure to import the variables first, then fire the event Smile


You rock Mr. Minessale


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk










_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Mar 26, 2009 10:52 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

this feature is already implemented system-wide not just in fifo

bridge_pre_execute_aleg_app
bridge_pre_execute_aleg_data

bridge_pre_execute_bleg_app
bridge_pre_execute_bleg_data

Set either pair of these vars (aleg is the consumer)

and the application of choice would be executed right when the bridge starts.


2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>
Quote:
Oh, so the reason why the bridge_api_app execution is more useful, is with the custom fifo:info event, for my event_socket to read it, it has to subscribe to ALL fifo:info events, meaning I have to process fifo:info events even if they are not useful to me. With an app in lua, I can fire a custom event based on say my fifo name, this way my event_socket only has to read events for a specific fifo, rather than all fifos.

it's not to make more work for u Smile...although it's sort of amazing how efficient of a coder you are.


--matt


On Thu, Mar 26, 2009 at 10:20 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Thanks of course!

But, is there any chance of firing an app? Firing an app on bridge gives the programmer more control, rather than just listening for fifo::info custom events. I find that lua running as a FS app can update my database like 10x faster than reading event_socket thru Rails/Telegraph...plus, I trust your coding much more than that of your Rail's development counterparts. Smile


with the custom event you are firing, you should be sure to import the variables first, then fire the event Smile


You rock Mr. Minessale


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk

2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>

Quote:
Hi Anthony,

So it's been 2 days since my last request, so I'm due for another one Wink


It would be nice if there was a way to execute a script (lua) on fifo bridge. I currently rely on the channel_bridge event, but I'm worried that as my system scales, it would be better to fire a custom event. In non-fifo mode, I can do this with bridge_pre_execute_bleg_app/data, but this doesn't work with a fifo bridge. It doesn't really matter which channel it fires on fifo out or fifo in channel, anything is better than having to listen for a specific channel_bridge on a high-use FS installation.


Is there anyway to get an api/script to fire on fifo bridge currently that I'm missing? Thanks!


--matt

2009/3/23 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Mar 26, 2009 11:02 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

http://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.EventConsumer

On Mar 26, 2009, at 10:30 AM, Matt Hunter wrote:

Quote:
Ahhh....can you point me to a doc or wiki, I can experiment with?



_______________________________________________
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
Back to top
mattdfong at gmail.com
Guest





PostPosted: Thu Mar 26, 2009 11:07 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Hi Brian,

Thanks for the link...I saw that, but i'm a newbie to lua (only use it cause of FS), and I'm a little confused how the example works.


It consumes all events? Then subscribes to a session? and then, every second checks to see if an event has been fired for that session?


Would it be possible to get an idea of how to subscribe to all events, and have a function execute for each time an event is fired? Can lua "wait" until an event is fired, or must it loop and sleep every second? Thanks for the help.


--matt


---
the example...
con = freeswitch.EventConsumer("all");                                                                                                                          
session = freeswitch.Session("sofia/default/dest@host.com (dest@host.com)");
while session:ready() do                                                                                                                        
   session:execute("sleep", "1000");                                                                                                            
   for e in (function() return con:pop() end) do                                                                                                
      print("event\n" .. e:serialize("xml"));                                                                                                  
   end                                                                                                                                          
end

2009/3/26 Brian West <brian@freeswitch.org (brian@freeswitch.org)>
Quote:
http://wiki.freeswitch.org/wiki/Mod_lua#freeswitch.EventConsumer

On Mar 26, 2009, at 10:30 AM, Matt Hunter wrote:

Quote:
Ahhh....can you point me to a doc or wiki, I can experiment with?





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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


Back to top
mattdfong at gmail.com
Guest





PostPosted: Thu Mar 26, 2009 11:09 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Woops, my double identity of my marketing alias isn't subscribed correctly...-------------

Ooooo, then this is an error because bridge_pre_execute_aleg is not firing on fifo bridge. I'm using 

FreeSWITCH Version 1.0.trunk (12701M)


and setting 


        <action application="set" data="bridge_pre_execute_aleg_app=lua"/>
        <action application="set" data="bridge_pre_execute_aleg_app=aleg.lua"/>
        <action application="set" data="bridge_pre_execute_bleg_app=lua"/>
        <action application="set" data="bridge_pre_execute_bleg_app=bleg.lua"/>


on both the fifo in and fifo out channels, but aleg.lua/bleg.lua never get executed on fifo bridge. Do you need a trace or anything?



--matt



On Thu, Mar 26, 2009 at 10:52 PM, Matt Hunter <matt@hellohunter.com (matt@hellohunter.com)> wrote:
Quote:


2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
this feature is already implemented system-wide not just in fifo

bridge_pre_execute_aleg_app
bridge_pre_execute_aleg_data

bridge_pre_execute_bleg_app

bridge_pre_execute_bleg_data

Set either pair of these vars (aleg is the consumer)

and the application of choice would be executed right when the bridge starts.



2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>
Quote:
Oh, so the reason why the bridge_api_app execution is more useful, is with the custom fifo:info event, for my event_socket to read it, it has to subscribe to ALL fifo:info events, meaning I have to process fifo:info events even if they are not useful to me. With an app in lua, I can fire a custom event based on say my fifo name, this way my event_socket only has to read events for a specific fifo, rather than all fifos.

it's not to make more work for u Smile...although it's sort of amazing how efficient of a coder you are.


--matt


On Thu, Mar 26, 2009 at 10:20 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Thanks of course!

But, is there any chance of firing an app? Firing an app on bridge gives the programmer more control, rather than just listening for fifo::info custom events. I find that lua running as a FS app can update my database like 10x faster than reading event_socket thru Rails/Telegraph...plus, I trust your coding much more than that of your Rail's development counterparts. Smile


with the custom event you are firing, you should be sure to import the variables first, then fire the event Smile


You rock Mr. Minessale


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk

2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>

Quote:
Hi Anthony,

So it's been 2 days since my last request, so I'm due for another one Wink


It would be nice if there was a way to execute a script (lua) on fifo bridge. I currently rely on the channel_bridge event, but I'm worried that as my system scales, it would be better to fire a custom event. In non-fifo mode, I can do this with bridge_pre_execute_bleg_app/data, but this doesn't work with a fifo bridge. It doesn't really matter which channel it fires on fifo out or fifo in channel, anything is better than having to listen for a specific channel_bridge on a high-use FS installation.


Is there anyway to get an api/script to fire on fifo bridge currently that I'm missing? Thanks!


--matt

2009/3/23 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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






Back to top
matt at hellohunter.com
Guest





PostPosted: Thu Mar 26, 2009 11:10 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

Ooooo, then this is an error. I'm using 

FreeSWITCH Version 1.0.trunk (12701M)


and setting 


        <action application="set" data="bridge_pre_execute_aleg_app=lua"/>
        <action application="set" data="bridge_pre_execute_aleg_app=aleg.lua"/>
        <action application="set" data="bridge_pre_execute_bleg_app=lua"/>
        <action application="set" data="bridge_pre_execute_bleg_app=bleg.lua"/>


on both the fifo in and fifo out channels, but aleg.lua/bleg.lua never get executed on fifo bridge. Do you need a trace or anything?


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
this feature is already implemented system-wide not just in fifo

bridge_pre_execute_aleg_app
bridge_pre_execute_aleg_data

bridge_pre_execute_bleg_app

bridge_pre_execute_bleg_data

Set either pair of these vars (aleg is the consumer)

and the application of choice would be executed right when the bridge starts.



2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>
Quote:
Oh, so the reason why the bridge_api_app execution is more useful, is with the custom fifo:info event, for my event_socket to read it, it has to subscribe to ALL fifo:info events, meaning I have to process fifo:info events even if they are not useful to me. With an app in lua, I can fire a custom event based on say my fifo name, this way my event_socket only has to read events for a specific fifo, rather than all fifos.

it's not to make more work for u Smile...although it's sort of amazing how efficient of a coder you are.


--matt


On Thu, Mar 26, 2009 at 10:20 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Thanks of course!

But, is there any chance of firing an app? Firing an app on bridge gives the programmer more control, rather than just listening for fifo::info custom events. I find that lua running as a FS app can update my database like 10x faster than reading event_socket thru Rails/Telegraph...plus, I trust your coding much more than that of your Rail's development counterparts. Smile


with the custom event you are firing, you should be sure to import the variables first, then fire the event Smile


You rock Mr. Minessale


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk

2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>

Quote:
Hi Anthony,

So it's been 2 days since my last request, so I'm due for another one Wink


It would be nice if there was a way to execute a script (lua) on fifo bridge. I currently rely on the channel_bridge event, but I'm worried that as my system scales, it would be better to fire a custom event. In non-fifo mode, I can do this with bridge_pre_execute_bleg_app/data, but this doesn't work with a fifo bridge. It doesn't really matter which channel it fires on fifo out or fifo in channel, anything is better than having to listen for a specific channel_bridge on a high-use FS installation.


Is there anyway to get an api/script to fire on fifo bridge currently that I'm missing? Thanks!


--matt

2009/3/23 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Mar 26, 2009 11:10 am    Post subject: [Freeswitch-users] Another fifo request Reply with quote

see below

2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>
Quote:
Woops, my double identity of my marketing alias isn't subscribed correctly...-------------

Ooooo, then this is an error because bridge_pre_execute_aleg is not firing on fifo bridge. I'm using 

FreeSWITCH Version 1.0.trunk (12701M)


and setting 


        <action application="set" data="bridge_pre_execute_aleg_app=lua"/>






     <action application="set" data="bridge_pre_execute_aleg_app=aleg.lua"/>  <-- aleg_data not aleg_app again......

        <action application="set" data="bridge_pre_execute_bleg_app=lua"/>
        <action application="set" data="bridge_pre_execute_bleg_app=bleg.lua"/>  <-- bleg_data not bleg_app again



on both the fifo in and fifo out channels, but aleg.lua/bleg.lua never get executed on fifo bridge. Do you need a trace or anything?



--matt





On Thu, Mar 26, 2009 at 10:52 PM, Matt Hunter <matt@hellohunter.com (matt@hellohunter.com)> wrote:
Quote:


2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>
Quote:
this feature is already implemented system-wide not just in fifo

bridge_pre_execute_aleg_app
bridge_pre_execute_aleg_data

bridge_pre_execute_bleg_app

bridge_pre_execute_bleg_data

Set either pair of these vars (aleg is the consumer)

and the application of choice would be executed right when the bridge starts.



2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>
Quote:
Oh, so the reason why the bridge_api_app execution is more useful, is with the custom fifo:info event, for my event_socket to read it, it has to subscribe to ALL fifo:info events, meaning I have to process fifo:info events even if they are not useful to me. With an app in lua, I can fire a custom event based on say my fifo name, this way my event_socket only has to read events for a specific fifo, rather than all fifos.

it's not to make more work for u Smile...although it's sort of amazing how efficient of a coder you are.


--matt


On Thu, Mar 26, 2009 at 10:20 PM, Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)> wrote:
Quote:
Thanks of course!

But, is there any chance of firing an app? Firing an app on bridge gives the programmer more control, rather than just listening for fifo::info custom events. I find that lua running as a FS app can update my database like 10x faster than reading event_socket thru Rails/Telegraph...plus, I trust your coding much more than that of your Rail's development counterparts. Smile


with the custom event you are firing, you should be sure to import the variables first, then fire the event Smile


You rock Mr. Minessale


--matt

2009/3/26 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
I'll fire 2 custom events when the call is bridged one for the consumer and one for the caller

events plain custom fifo::info

pull out FIFO-Name header and find the desired fifo
pull out FIFO-Action header and look for bridge-consumer or bridge-caller depending on what you want to see data from.

in latest trunk

2009/3/26 Matthew Fong <mattdfong@gmail.com (mattdfong@gmail.com)>

Quote:
Hi Anthony,

So it's been 2 days since my last request, so I'm due for another one Wink


It would be nice if there was a way to execute a script (lua) on fifo bridge. I currently rely on the channel_bridge event, but I'm worried that as my system scales, it would be better to fire a custom event. In non-fifo mode, I can do this with bridge_pre_execute_bleg_app/data, but this doesn't work with a fifo bridge. It doesn't really matter which channel it fires on fifo out or fifo in channel, anything is better than having to listen for a specific channel_bridge on a high-use FS installation.


Is there anyway to get an api/script to fire on fifo bridge currently that I'm missing? Thanks!


--matt

2009/3/23 Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)>

Quote:
ok,
maybe after this i can have a day off Wink

2 variables added to latest trunk:

"fifo_caller_consumer_import"
"fifo_consumer_caller_import"

both work like the regular import but one is a list of vars to copy from caller to consumer and one is a list to copy from consumer to caller.


2009/3/23 Matthew Fong <reply@matthewfong.com (reply@matthewfong.com)>
Quote:

Thanks Anthony, for creating the transfer_after_bridge feature for me. Your rapid actions, are the reason I'm positive I made the right decision switch to to FS.

I got another challenge to throw your way. In the current fifo implementation, there's no way to identify which fifo consumer, consumes a caller--besides using other_leg_unique_id on bridge (ie, there's no way to pass data between channels when a fifo bridge is created). I want to be able to transfer some caller information to the consumer channel on bridge, to populate an agent's screen.


Under normal (non-fifo) circumstances, when a call is bridged, I've used the 'import' channel variable, so that onBridge, the aleg automatically gets populated with the bleg's 'import' field. However when fifo bridges, it does not recognize import. In other applications, I've gotten around this by using bridge_pre_execute_bleg_app/data to throw a custom event but with fifo, bridge_pre_execute also does not work. I've been looking at the fifo::info event, but again, there's no fifo_action that directly links caller variables and consumer variables together.


For now at least, I can get around this by storing uuid information in my separate database, and looking up the other channel's information based on other_leg_unique_id, but it would be nice if I could directly see it when the channel is bridged. Anyway, great program, and I hope you consider implementing these features to make FS even better. Thanks.


--matt







_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services