[Freeswitch-dev] Set variable/identifier for channel
solko at gcdf.pl
Fri Mar 20 07:54:08 PDT 2009
Brian West pisze:
> On Mar 20, 2009, at 9:06 AM, Szymon Olko wrote:
>> 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
>> Then I await for CHANNEL_CREATED and CHANNEL_OUTGOING events. I use
>> those fields from event
> 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:
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'
'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 at lists.freeswitch.org
More information about the Freeswitch-dev