Hello, I'm using conference module for agent/queues system. My system is build based on event_socket. To originate call I use commands like this. 'bgapi conference test dial sofia/internal/1001%192.168.77.248 123 test' Then I await for CHANNEL_CREATED and CHANNEL_OUTGOING events. I use those fields from event "Caller-Caller-ID-Name=test Caller-Caller-ID-Number=123" to connect my command with channel creation. Temporally I use asterisk as a pass-through pbx, it changes caller id to what it should be, I don't want to set it to the one above. Is it possible to add to conference dial command one extra parameter which will be set in channel and visible in all events. I searched for it but could not find something like that. Second minor thing. There is 'conference bgdial' command which raises CUSTOM event which I could use, but this command can be only set for conference that exists, have at least one member. It would be good for it to work also on empty (not existing) conferences. Is it possible? Szymon Olko
On Mar 20, 2009, at 9:06 AM, Szymon Olko wrote:
Hello,
I'm using conference module for agent/queues system. My system is build based on event_socket.
To originate call I use commands like this. 'bgapi conference test dial sofia/internal/1001%192.168.77.248 123 test'
Then I await for CHANNEL_CREATED and CHANNEL_OUTGOING events. I use those fields from event "Caller-Caller-ID-Name=test Caller-Caller-ID-Number=123"
Are you using the latest SVN trunk? Also the first call into the conference can be done via "originate".
to connect my command with channel creation. Temporally I use asterisk as a pass-through pbx, it changes caller id to what it should be, I don't want to set it to the one above.
Is it possible to add to conference dial command one extra parameter which will be set in channel and visible in all events. I searched for it but could not find something like that.
Second minor thing. There is 'conference bgdial' command which raises CUSTOM event which I could use, but this command can be only set for conference that exists, have at least one member. It would be good for it to work also on empty (not existing) conferences. Is it possible?
see Above!
Szymon Olko
Brian West pisze:
On Mar 20, 2009, at 9:06 AM, Szymon Olko wrote:
Hello,
I'm using conference module for agent/queues system. My system is build based on event_socket.
To originate call I use commands like this. 'bgapi conference test dial sofia/internal/1001%192.168.77.248 123 test'
Then I await for CHANNEL_CREATED and CHANNEL_OUTGOING events. I use those fields from event "Caller-Caller-ID-Name=test Caller-Caller-ID-Number=123"
Are you using the latest SVN trunk? Also the first call into the conference can be done via "originate".
I'm using lates SVN trunk. I tried originate command and it works. But still I don't know how to connect created channel with my command. This is a list of events I get in order: API CHANNEL_CREATE CHANNEL_OUTGOING CHANNEL_ORIGINATE CHANNEL_STATE PRESENCE_IN CHANNEL_STATE PRESENCE_IN CHANNEL_STATE CHANNEL_PROGRESS PRESENCE_IN CHANNEL_HANGUP API BACKGROUND_JOB PRESENCE_IN CHANNEL_DESTROY As you see I getn 'CHANNEL_CREATE' just after sending command. In my system I can match it to my command just through special values in callerid, which is not for that purpose. I don't see difference for me between those commands. 'bgapi conference test dial sofia/internal/1001%192.168.77.248 123' and 'bgapi originate sofia/internal/1000%192.168.77.248 &conference(test#1) XML default test 123'
to connect my command with channel creation. Temporally I use asterisk as a pass-through pbx, it changes caller id to what it should be, I don't want to set it to the one above.
Is it possible to add to conference dial command one extra parameter which will be set in channel and visible in all events. I searched for it but could not find something like that.
Second minor thing. There is 'conference bgdial' command which raises CUSTOM event which I could use, but this command can be only set for conference that exists, have at least one member. It would be good for it to work also on empty (not existing) conferences. Is it possible?
see Above!
Szymon Olko
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
Brian West pisze:
On Mar 20, 2009, at 9:06 AM, Szymon Olko wrote:
Hello,
I'm using conference module for agent/queues system. My system is build based on event_socket.
To originate call I use commands like this. 'bgapi conference test dial sofia/internal/1001%192.168.77.248 123 test'
Then I await for CHANNEL_CREATED and CHANNEL_OUTGOING events. I use those fields from event "Caller-Caller-ID-Name=test Caller-Caller-ID-Number=123"
Are you using the latest SVN trunk? Also the first call into the conference can be done via "originate".
to connect my command with channel creation. Temporally I use asterisk as a pass-through pbx, it changes caller id to what it should be, I don't want to set it to the one above.
Is it possible to add to conference dial command one extra parameter which will be set in channel and visible in all events. I searched for it but could not find something like that. I found solution for this looking into sources of mod_conference and switch_ivr_originate. Channel variables can be set in originate and dial commands, Following syntax must can be used:
'bgapi conference test dial {variable_name=value}sofia/internal/1001%192.168.77.248 123 test' or 'bgapi originate {variable_name=value}sofia/internal/1000%192.168.77.248 &conference(test#1) XML default test 123' Multiple variables can be set, every variable must be put in it's own curly brackets. Do anybody knows is there are problems with some special characters in variable value?? This feature works now because there is no checking of 'bridgeto' values in code. Is this good way to use it, or should I make a patch for mod_conference and add another argument to 'conference dial' command?
On Mar 23, 2009, at 3:51 AM, Szymon Olko wrote:
I found solution for this looking into sources of mod_conference and switch_ivr_originate. Channel variables can be set in originate and dial commands, Following syntax must can be used:
'bgapi conference test dial {variable_name=value}sofia/internal/ 1001%192.168.77.248 123 test'
or
'bgapi originate {variable_name=value}sofia/internal/ 1000%192.168.77.248 &conference(test#1) XML default test 123'
Multiple variables can be set, every variable must be put in it's own curly brackets.
NO, You do {var=val,foo=bar,blah=blah}sofia/blah/blah Its the same syntax system wide.
Do anybody knows is there are problems with some special characters in variable value??
Like what?
This feature works now because there is no checking of 'bridgeto' values in code. Is this good way to use it, or should I make a patch for mod_conference and add another argument to 'conference dial' command?
What do you mean patch? /b
Brian West pisze:
On Mar 23, 2009, at 3:51 AM, Szymon Olko wrote:
I found solution for this looking into sources of mod_conference and switch_ivr_originate. Channel variables can be set in originate and dial commands, Following syntax must can be used:
'bgapi conference test dial {variable_name=value}sofia/internal/ 1001%192.168.77.248 123 test'
or
'bgapi originate {variable_name=value}sofia/internal/ 1000%192.168.77.248 &conference(test#1) XML default test 123'
Multiple variables can be set, every variable must be put in it's own curly brackets.
NO, You do {var=val,foo=bar,blah=blah}sofia/blah/blah Its the same syntax system wide.
Do anybody knows is there are problems with some special characters in variable value??
Like what?
For example how to put space in variable value? Maybe other like %,@,/ are forbiden?
This feature works now because there is no checking of 'bridgeto' values in code. Is this good way to use it, or should I make a patch for mod_conference and add another argument to 'conference dial' command?
What do you mean patch?
I could change mod_conference so it accepts one more parameter in command, then I could post patch to you. I need that feature to set variable. Current solution works great, but I'm asking is this the right way? Best regards Szymon Olko
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
yes the intention is for you to specify the variables in {} in the dial string, no need for another parameter. the {} is part of the "originate syntax" which is used in the bridge application and everywhere else. You can escape special characters in the vars by using well placed "quotation marks" or escape chars with \ and special \s and \t for space and tab. On Mon, Mar 23, 2009 at 7:59 AM, Szymon Olko <solko@gcdf.pl> wrote:
Brian West pisze:
On Mar 23, 2009, at 3:51 AM, Szymon Olko wrote:
I found solution for this looking into sources of mod_conference and switch_ivr_originate. Channel variables can be set in originate and dial commands, Following syntax must can be used:
'bgapi conference test dial {variable_name=value}sofia/internal/ 1001%192.168.77.248 123 test'
or
'bgapi originate {variable_name=value}sofia/internal/ 1000%192.168.77.248 &conference(test#1) XML default test 123'
Multiple variables can be set, every variable must be put in it's own curly brackets.
NO, You do {var=val,foo=bar,blah=blah}sofia/blah/blah Its the same syntax system wide.
Do anybody knows is there are problems with some special characters in variable value??
Like what?
For example how to put space in variable value? Maybe other like %,@,/ are forbiden?
This feature works now because there is no checking of 'bridgeto' values in code. Is this good way to use it, or should I make a patch for mod_conference and add another argument to 'conference dial' command?
What do you mean patch?
I could change mod_conference so it accepts one more parameter in command, then I could post patch to you. I need that feature to set variable. Current solution works great, but I'm asking is this the right way?
Best regards Szymon Olko
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
_______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev 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
participants (3)
-
Anthony Minessale
-
Brian West
-
Szymon Olko