<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Klaus,<br>
<br>
There's two differences that I can see between what you're doing and
what we do:-<br>
1. We're using the socket in async mode (shouldn't make any difference)<br>
2. You don't need to send the UUID in after the sendmsg - FS already
knows which call you're controlling.<br>
<br>
Cheers --<br>
<br>
Dave<br>
<blockquote cite="mid:20081203144802.281260@gmx.net" type="cite">
<pre wrap="">Hi All,
Thanks for your feedback. I must be doing something fundamentally wrong. Inbound socket is working without problems. But the exact things that i do on inbound socket, i'm not able to replcate them on outbound socket.
The global picture: I have on Xlite registered at extension 1002 and another one at extension 1003. Then i have an extension 8998 in the default context. Here is the extension definition:
<extension name="outbound-test">
<condition field="destination_number" expression="^8998$" >
<action application="socket" data="192.168.50.56:10000 full" />
</condition>                
</extension>
I use Xlite-1003 to call this extension (8998) and the call is properly notified to the remote Java server.
Then on the Java side, after receiving the event, i send a CONNECT command: "Connect\n\n"
The answer from Freeswitch is the state of the channel ( a set of variable, value pair).
Up to this point everything seems normal to me. But then, i try to send an answer command:
sendmsg b30a2d2e-c146-11dd-9b99-07347b46e4ea
call-command: execute
execute-app-name: answer
execute-app-arg:
Freswitch replies with:
Content-Type: command/reply
Reply-Text: +OK
But the call is still not answered. Nothing happens on the freeswitch console (Log level DEBUG) and the dialing XLite is still in calling modus.
Then i try bridging the call to 1002:
sendmsg b30a2d2e-c146-11dd-9b99-07347b46e4ea
call-command: execute
execute-app-name: bridge
execute-app-arg: sofia/internal/1002%192.168.50.94
Again Freeswitch does answer with:
Content-Type: command/reply
Reply-Text: +OK
And yet again, nothing is really happening.
What am i missing here?
Thanks,
Klaus.
-------- Original-Nachricht --------
</pre>
<blockquote type="cite">
<pre wrap="">Datum: Wed, 03 Dec 2008 11:15:57 +0000
Von: David Knell <a class="moz-txt-link-rfc2396E" href="mailto:dave@3c.co.uk"><dave@3c.co.uk></a>
An: <a class="moz-txt-link-abbreviated" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>
Betreff: Re: [Freeswitch-users] Bridging from Event Socket API
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">Hi Klaus,
Some Perl code snippets - we use:
call_command("bridge", "sofia/gateway/bt/$ntd");
which, in turn, is:
sub call_command($$) {
my $cmd = shift;
my $arg = shift;
print $sock "sendmsg\ncall-command: execute\nexecute-app-name:
$cmd\nexecute-app-arg: $arg\n\n";
}
Cheers --
Dave
</pre>
<blockquote type="cite">
<pre wrap="">Hi Folks,
so far i could understand how to bridge calls with Javascript. I'm
</pre>
</blockquote>
<pre wrap="">trying to do the same with Java via the Socket Interface. My first trials
weren't successful. maybe you can help me understand what is goin on.
</pre>
<blockquote type="cite">
<pre wrap="">What i want to do is to bridge an existing leg (Unique-ID is known) to a
</pre>
</blockquote>
<pre wrap="">party that wasn't yet dialed (Unique-ID unknown). With javascript it is
something like:
</pre>
<blockquote type="cite">
<pre wrap="">session.bridge("sofia/internal/1002");
How do i do this using the event socket interface? what
</pre>
</blockquote>
<pre wrap="">application/command would i use with which arguments?
</pre>
<blockquote type="cite">
<pre wrap="">
One way i tried to do this is to orginate a call to
</pre>
</blockquote>
<pre wrap="">'sofia/internal/1002' and bridge the two existing legs using uuid_bridge. Unfortunately, it
wasn't successful. The only message i had on the FS console is:
</pre>
<blockquote type="cite">
<pre wrap="">2008-12-02 16:57:34 [DEBUG] switch_core_session.c:693
</pre>
</blockquote>
<pre wrap="">switch_core_session_queue_private_event() Send signal <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/1001@192.168.1.121">sofia/internal/1001@192.168.1.121</a>
[BREAK]
</pre>
<blockquote type="cite">
<pre wrap="">Any idea what i'm missing?
Thanks,
Klaus.
</pre>
</blockquote>
<pre wrap="">
--
David Knell, Director, 3C Limited
T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031
<a class="moz-txt-link-freetext" href="http://www.3c.co.uk">http://www.3c.co.uk</a>
_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
David Knell, Director, 3C Limited
T: 020 8114 8901 F: 020 3002 7257 M: 001 415 630 3031
<a class="moz-txt-link-freetext" href="http://www.3c.co.uk">http://www.3c.co.uk</a> </pre>
</body>
</html>