Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-27 Thread Dennis
Yes, that worked Great, thanks a lot! Now I am able to control the inbound call from the outbound call :-D As far as I understand, this has something to do with changes you made to the myevents mode, right? I think that the myevents mode is better for us, because with events all there are

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-26 Thread Dennis
Anybody else, who has an idea, what I could do (till I find someone in the IRC)? ___ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-26 Thread Anthony Minessale
question what args do you pass to the socket app when you call it in your dialplan. are you using the full and async keywords? the full one is necessary to have the power to control other calls. Could this be your prob? On Sun, Oct 26, 2008 at 5:40 AM, Dennis [EMAIL PROTECTED] wrote:

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-26 Thread Dennis
This is what I have in my /dialplan/default.xml: extension name=test condition field=destination_number expression=^123$ action application=set data=hangup_after_bridge=false/ action application=set data=enable_heartbeat_events=10/

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-26 Thread Anthony Minessale
one suggestion i was trying to make was. instead of originating the next call to 123 to put it in it's own script. try replacing 123 with park() {origination_caller_id_number=1234567,inbound_uuid=.$event['Unique-ID'].}sofia/internal/[EMAIL PROTECTED] park() This will put the new call into park

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-26 Thread Dennis
I tried park several times and it does not work for me. The problem must be on my side and I will test it tomorrow morning again. I know that I get back the uuid of the originated call and the targeted phone is ringing, although it is not shown anywhere, that it is ringing somewhere. I get +OK

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-26 Thread Anthony Minessale
try latest trunk, i think i can fix you issue by allowing sendmsg to work on outside uuid even on myevents mode. On Sun, Oct 26, 2008 at 3:39 PM, Dennis [EMAIL PROTECTED] wrote: I tried park several times and it does not work for me. The problem must be on my side and I will test it tomorrow

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-24 Thread Dennis
2008/10/23 Michael Collins [EMAIL PROTECTED]: What is your IRC nick? Mine is mercutioviz. I'm interested in this issue because I've been dialing in some somewhat similar scenarios and I might be able to help, at least a little bit. My nick is Dennis93. Looking forward to it.

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-23 Thread Dennis
2008/10/22 Anthony Minessale [EMAIL PROTECTED]: event socket has the command sendmsg which lets you send a message to a specific channel. This can be any message but the one you are familiar with is the one that tells the session to execute an application. Think of it as you are sending an

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-23 Thread Anthony Minessale
On Thu, Oct 23, 2008 at 6:45 AM, Dennis [EMAIL PROTECTED] wrote: 2008/10/22 Anthony Minessale [EMAIL PROTECTED]: event socket has the command sendmsg which lets you send a message to a specific channel. This can be any message but the one you are familiar with is the one that tells the

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-23 Thread Dennis
2008/10/23 Anthony Minessale [EMAIL PROTECTED]: Please do not lose patience with me. I am absolutely new to the whole sip-/phone-/call-thing... What messages do you want to send? Be Specific. For example I want to send the message playfile from one process to another (the call_direction

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-23 Thread Anthony Minessale
What does 123 lead to? launching another script? you could make the 2nd originate lead to park() in place of 123 and you could control both legs from the same socket. please please join irc and let the whole group help you. On Thu, Oct 23, 2008 at 10:02 AM, Dennis [EMAIL PROTECTED] wrote:

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-23 Thread Dennis
2008/10/23 Anthony Minessale [EMAIL PROTECTED]: What does 123 lead to? launching another script? The 123 is the destination_number in the /dialplan/default.xml. extension name=test condition field=destination_number expression=^123$ action application=set

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-22 Thread Dennis
2008/10/21 Michael Collins [EMAIL PROTECTED]: So you need to create a second call leg that is somewhat independent of the first leg, so that you can play a file, and *then* bridge the new leg to the current leg? Yes, this is exactly what I want. A normal bridge is nice, because it seems, that

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-22 Thread Dennis
Ahh, help, I found something out about my question and would like to know, if I am really in trouble... The problem is, when one does not read every single word. Till now I always worked with socket outbound and a PHP script, which forks the different processes. Everything seemed to work great

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-22 Thread Dennis
Hi David, 2008/10/22 David Knell [EMAIL PROTECTED]: What you'll probably need to do is to get the two processes handling the two legs talking to each other, so that the one handling the outbound leg sends a message to the one handling the inbound leg, and that message causes the process

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-22 Thread Anthony Minessale
You may also be interested in a new feature added to r10110 (no we dont use binary version numbers) you can call inbound to event_socket and once authenticated you can issue the command myevents uuid where uuid is the uuid of some not-yet-controlled call. If all goes well you will get a positive

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-22 Thread Dennis
I know, that I am missing a lot of things regarding freeswitch and that I still have to learn a lot about it (it would be sad, if could lear all aspects within a week ;-). I will come back to your answer tomorrow, because I want to understand every single aspect of it and I want to make my own

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-22 Thread Dennis
imagine how many hours were spent trying to code it from scratch =D I don't think I want to know that. Do you ever sleep??? ;-) you did not waste any hours, you have convinced yourself you are doing it wrong when really you are just choosing the wrong commands. Hehe, that gives me hope and

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-21 Thread Anthony Minessale
once you are controlling both sessions individually use api to send the uuid_bridge command: api uuid_bridge uuid of leg a uuid of leg b On Tue, Oct 21, 2008 at 9:37 AM, Dennis [EMAIL PROTECTED] wrote: 2008/10/20 Anthony Minessale [EMAIL PROTECTED]: A more precise question about

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-21 Thread Dennis
I think I have problems to understand what is happening in detail. Just a short explaination, of what we are doing. We use socket outbound and have a PHP script, which is listening to myevents. If a new call is coming in, we fork the PHP script in a new process to handle this call. Now we have a

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-21 Thread Michael Collins
So you need to create a second call leg that is somewhat independent of the first leg, so that you can play a file, and *then* bridge the new leg to the current leg? I just want to make sure that I grok what you are trying to accomplish. Also, if you haven't put your dialplan and script in

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-21 Thread David Knell
Hi Dennis I think I have problems to understand what is happening in detail. Just a short explaination, of what we are doing. We use socket outbound and have a PHP script, which is listening to myevents. If a new call is coming in, we fork the PHP script in a new process to handle this

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-20 Thread Anthony Minessale
On Sat, Oct 18, 2008 at 3:50 AM, Dennis [EMAIL PROTECTED] wrote: When using socket outbound, freeswitch connects to the PHP-script, the PHP-script forks and is registered to myevents (events all seems to give me all events from all connections). One of the problems I have with outbound

[Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-17 Thread Dennis
Hi, I am new to freeswitch and found out quite a lot of things the past days. But there are still many questions left, which I can't figure out without some help. I want to use freeswitch for a project, where freeswitch should communicate with PHP-scripts and receive the messages to different

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-17 Thread Ivan C Myrvold
Den 17. okt.. 2008 kl. 14:45 skrev Dennis: One of the problems I have with outbound is, that I won't get all events. For example I do not get hangup, because the socket connection seems to die, before freeswitch sends the last command when hanging up. With ringing the problem seems to be the

Re: [Freeswitch-users] Socket inbound or outbound with PHP?

2008-10-17 Thread Anthony Minessale
On Fri, Oct 17, 2008 at 7:45 AM, Dennis [EMAIL PROTECTED] wrote: Hi, I am new to freeswitch and found out quite a lot of things the past days. But there are still many questions left, which I can't figure out without some help. I want to use freeswitch for a project, where freeswitch