Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-11 Thread Anthony Minessale
yes hop on irc i'll be there in 30 min On Tue, Nov 11, 2008 at 8:11 AM, Dennis <[EMAIL PROTECTED]> wrote: > we read every single reply and we make socket_read with the legth > returned by Content-Length. > > what we can do with fs, socket outbound and our php-script: > > 1.) we can answer the in

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-11 Thread Dennis
we read every single reply and we make socket_read with the legth returned by Content-Length. what we can do with fs, socket outbound and our php-script: 1.) we can answer the inbound, make a bridge to another phone and both lines are connected and can talk to each other. 2.) we can make an inbo

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-10 Thread Anthony Minessale
you must read the reply to the commands when you send them or you will block the tcp socket. On Mon, Nov 10, 2008 at 9:48 AM, Dennis <[EMAIL PROTECTED]> wrote: > you are right, the shown script is very simple. we shortened it a lot > just to show the problem. > > in these tests we do not need an

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-10 Thread Dennis
you are right, the shown script is very simple. we shortened it a lot just to show the problem. in these tests we do not need any events, because we just answer and originate - for these actions we do not need any events, filters and so on. the rest we do in the cli. in the cli we do show channels

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-10 Thread Anthony Minessale
The way your script is parsing appears too simple. The event socket has a specific protocol. Every command has a reply and you must read it and take into account the content len etc. all replies, events etc have a content-type and content-len. On Sun, Nov 9, 2008 at 7:44 AM, Dennis <[EMAIL PR

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-09 Thread Dennis
sorry for my late answer, i had to fly to a different place... we are quite sure, that we have a problem with our php script. we stripped down the code to the absolute minimum, to remove most possible error sources, but it still does not work. the code can be found under http://pastebin.freeswitch

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-07 Thread Anthony Minessale
Can you capture the whole log from the instant you get the inbound call until you give up on the uuid bridge? I don't see any of the log about your outbound call. are you doing api originate sofia/internal/[EMAIL PROTECTED] &park() For the outbound call like the cli example? The socket applicat

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-07 Thread Dennis
an addition: if we make a call to our socket (inbound), we get the following error in our log: 2008-11-07 16:58:57 [ERR] switch_ivr.c:498 switch_ivr_park() Cannot park channels that are under control already. if an inbound comes in, we send a connect, then a park and then an answer - nothing els

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-07 Thread Dennis
anthony, brian, you are right. it really works the way anthony described over the cli. under http://pastebin.freeswitch.org/6038 you can find the debug log of the working uuid_bridge and of another not working uuid_bridge over the socket and our script. in our second test we made the inbound ove

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-07 Thread Anthony Minessale
Notice the one that works is the one you are typing from the cli. maybe your event socket client code is not coded right? Are you adding 2 to the end of every event? Are you reading in the appropriate bytes from the Content-Length header? The example of uuid_bridge from your program looks like a

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-07 Thread Brian West
On Nov 7, 2008, at 4:30 AM, Dennis wrote: > ok, now i understand to way intercept should work (i was always > wonderung, why there only was one uuid). > > BUT, it still does not work. Could you please be so kind and have a > look at http://pastebin.freeswitch.org/6033. there you can see the > res

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-07 Thread Dennis
ok, now i understand to way intercept should work (i was always wonderung, why there only was one uuid). BUT, it still does not work. Could you please be so kind and have a look at http://pastebin.freeswitch.org/6033. there you can see the results of our latest tests. 1.) intercept with inbound-

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-06 Thread Anthony Minessale
you are missing execute-app-arg sendmsg call-command: execute execute-app-name: intercept execute-app-arg: On Thu, Nov 6, 2008 at 11:18 AM, Dennis <[EMAIL PROTECTED]> wrote: > but what could be the cause, that there is no uuid in the intercept? > we are sending the uuid of the outbound with t

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-06 Thread Dennis
but what could be the cause, that there is no uuid in the intercept? we are sending the uuid of the outbound with the intercept. as you can see under http://pastebin.freeswitch.org/6019 in the "test intercept" part, we send the message with the uuid and get the answer below (with intercept, outbo

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-06 Thread Anthony Minessale
in your intercept example there is no uuid (note the empty () where the uuid should be and the syntax error) 1. 2008-11-06 16:17:26 [DEBUG] switch_ivr.c:391 switch_ivr_parse_event()sofia/internal/ [EMAIL PROTECTED] Command Execute intercept() 2. 2008-11-06 16:17:26 [ERR] mod_dptools.c:

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-06 Thread Dennis
hi anthony, i just pasted the results of 3 unsuccessful tests into the pastebin: http://pastebin.freeswitch.org/6018 perhaps you could be so nice and have a look at it... in the first test i made an uuid-bridge over our socket script. in the second test i made an originate and then an intercept

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-06 Thread Anthony Minessale
If that doesn't work one of your uuids are wrong or contains a superfluous space or some other character You have to understand that the inbound call that uses "socket" is the same thing as &park() They are both in a park state at that point and there is no functional difference. once both channel

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-06 Thread Birgit Arkesteijn
Hi Dennis, No, sorry, my knowledge of FreeSWITCH is still rather limited. Hopefully someone else on the list will know. Cheers, Birgit On 06/11/08 09:14, Dennis wrote: > hi birgit, > > thanks for your reply! > > some days ago anthony told me about "intercept" in the irc, but i seem > not to b

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-06 Thread Dennis
hi birgit, thanks for your reply! some days ago anthony told me about "intercept" in the irc, but i seem not to be able to use it, at least not for connecting two channels with each other. we need to first originate, because we want to have complete control over all channels and chose, what to d

Re: [Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-05 Thread Birgit Arkesteijn
Hi Dennis, I had a similar problem, but we're using javascript, not sockets. Is there any reason why your first original and then bridge instead of bridging your inbound call immediately to the (what will be your) outbound call? If that doesn't work, I had to take a channel out of a conference

[Freeswitch-users] Socket outbound: How to bridge two calls?

2008-11-05 Thread Dennis
hi, i am using socket outbound and want to bridge two calls with each other. i do the following: a call comes in and it gets answered (inbound call). after i send the answer to the inbound, i do an originate to &park (outbound). after i answered the outbound, i want both sides to be able to talk