one suggestion i was trying to make was.<br>instead of originating the next call to 123 to put it in it's own script.<br>try replacing 123 with &park()<br><br>{origination_caller_id_number=1234567,inbound_uuid=".$event['Unique-ID']."}sofia/internal/1001@... &park()<br>
<br>This will put the new call into park where it will be waiting happily for commands you can send from the original script<br>so you would not need 2, the reply from that originate will give you the uuid of the new call if it's successful and you can<br>
then send it messages just like the other one.<br><br>you can have a one to many relationship with event socket to channels it can control with 1 socket.<br><br><br><div class="gmail_quote">On Sun, Oct 26, 2008 at 1:37 PM, Dennis <span dir="ltr"><<a href="mailto:odermann@googlemail.com">odermann@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">This is what I have in my "/dialplan/default.xml":<br>
<div class="Ih2E3d"><br>
<extension name="test"><br>
<condition field="destination_number" expression="^123$"><br>
<action application="set" data="hangup_after_bridge=false"/><br>
<action application="set" data="enable_heartbeat_events=10"/><br>
<action application="socket" data="<a href="http://192.168.1.5:8022" target="_blank">192.168.1.5:8022</a><br>
async full"/><br>
</condition><br>
</extension><br>
<br>
</div>At the "<a href="http://192.168.1.5:8022" target="_blank">192.168.1.5:8022</a>" the PHP script is listening. The scripts<br>
forks every new call over the socket.<br>
So if I have one caller and then call the command "api originate<br>
{origination_caller_id_number=1234567,inbound_uuid=".$event['Unique-ID']."}sofia/internal/1001@...<br>
123 " a new PHP process is startet.<br>
But this should be no problem, if it would be possible to control the<br>
inbound call in the first process from the outbound call in the second<br>
process (when using event_socket outbound). "api uuid_bridge" works<br>
for example very good, if i call it from the outbound call process.<br>
But "api uuid_playfile" does not exist and "sendmsg playfile<br>
<uuid_of_the_inbound_call> /path/file.wav" does not work, because it<br>
only seems to be available when using mod_event_socket in inbound<br>
mode. For me it is not only "playfile" which I am missing, it is also<br>
"hangup" and other commands, which seem to work in mod_socket_event in<br>
inbound mode.<br>
<br>
You said, you wanted to lift these restrictions, but they do not work<br>
for me (at least I do not know how to use it). Are there any settings<br>
I have to configure to make it work the way I need it?<br>
<br>
Be sure I will be on IRC tomorrow. Perhaps this helps to avoid<br>
missunderstandings ;-)<br>
<br>
Thanks<br>
Dennis<br>
<br>
<br>
2008/10/26 Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>>:<br>
<div class="Ih2E3d">> question.... what args do you pass to the socket app when you call it in<br>
> your dialplan.<br>
><br>
> are you using the "full and async" keywords? the full one is necessary to<br>
> have the power to control<br>
> other calls. Could this be your prob?<br>
<br>
</div><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>