job-uuid can be used to match the BACKGROUND_JOB event which will<br>have the output of the originate command in the body.<br><br>since you are using bgapi it goes asyncronous and must deliver the reply to you via the event interface.<br>
<br><br><div class="gmail_quote">On Fri, Dec 5, 2008 at 11:50 AM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</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;">
Peter,<br>
<br>
thanks, I will ruminate on this and get back with you as soon as I can.<br>
<font color="#888888">-MC<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Fri, Dec 5, 2008 at 9:08 AM, Peter P GMX <<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>> wrote:<br>
> I am a step further, When I set the cid-name then I can access the data<br>
> dring<br>
> channel_outgoing<br>
> channel_originate<br>
> channel_progress<br>
> channel_answer<br>
><br>
> However setting the caller_caller_id_number might be better.<br>
><br>
> This is the originate request:<br>
> <?xml version="1.0" ?><br>
> <methodCall><br>
> <methodName>freeswitch.api</methodName><br>
> <params><br>
> <param><value><string>bgapi</string></value></param><br>
> <param><value><string>originate<br>
> {other_unique_id=ed525a3a-c2e8-11dd-85f2-75efbd1bca02,origination_caller_id_name=ed525a3a-c2e8-11dd-85f2-75efbd1bca02,origination_caller_id_number=000,ignore_early_media=true}user/<a href="mailto:1001@siplocal.safecomm.ch">1001@siplocal.safecomm.ch</a><br>
> &amp;transfer(5002)</string></value></param><br>
> </params><br>
> </methodCall><br>
><br>
> Answer:<br>
> <?xml version="1.0" encoding="UTF-8"?>.<br>
> <methodResponse>.<br>
> <params>.<br>
> <param><value><string>+OK Job-UUID: 0856d3ec-c2e9-11dd-85f2-75efbd1bca02<br>
> </string></value></param>.<br>
> </params>.<br>
> </methodResponse>.<br>
><br>
> By the way: The Job-UUID is different from the channel uuid, so it<br>
> cannot be used for my issue.<br>
><br>
> Best regards<br>
> Peter<br>
><br>
> Michael S Collins schrieb:<br>
>> What is your originate string?<br>
>> -MC<br>
>><br>
>><br>
>> On Dec 5, 2008, at 3:54 AM, Peter P GMX <<a href="mailto:Prometheus001@gmx.net">Prometheus001@gmx.net</a>> wrote:<br>
>><br>
>><br>
>>> I am building an IVR application where an incoming call is<br>
>>> initiating an<br>
>>> outgoing call. When I pass a "variable_other_uuid" (the uuid of the<br>
>>> incoming channel) at originate time, I am able to reference to the<br>
>>> incomig call, once the outgoing call is set up. So the outgoing call<br>
>>> can<br>
>>> see the uuid of the incoming call who has originated the outgoing<br>
>>> call.<br>
>>> This is needed for bridging the 2 calls together.<br>
>>><br>
>>> However I want to control also the call setup process (see, if the<br>
>>> outgoing call is ringing etc.). At call setup time, when I parse the<br>
>>> channel_originate ,channel_outgoing and channel_progress events, I<br>
>>> cannot see any reference to the incoming call (variable_other_uuid is<br>
>>> not set). I suspect that variables are only passed once the outgoing<br>
>>> channel is set up.<br>
>>><br>
>>> Has anybody an idea, how I may get the uuid of the originating uuid in<br>
>>> the outgoing call at call setup?<br>
>>><br>
>>> Best regards<br>
>>> Peter<br>
>>><br>
>>> _______________________________________________<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>
>>><br>
>><br>
>> _______________________________________________<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>
>><br>
>><br>
><br>
> _______________________________________________<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>
><br>
<br>
_______________________________________________<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>