I wonder if it's a race condition of sorts where you're executing some apps before the others have finished.<div><br></div><div>In the dialplan it wouldn't execute the next until the previous had finished, but I'm not sure whether sendmsg queues apps in the same way or tries executing them straight away.<div>
<br></div><div>Have you tried waiting for the CHANNEL_EXECUTE_COMPLETE event before sending the next sendmsg?</div><div><br></div><div>-Steve</div><div><br></div><div><br></div><div><br></div><div><div class="gmail_quote">
On 5 August 2011 21:31, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Shouldn't be, they're applications so executed one at a time.<br>
<br>
Steve on iPhone<br>
<div><div></div><div class="h5"><br>
On 5 Aug 2011, at 20:47, Michael Ricordeau <<a href="mailto:michael.ricordeau@gmail.com">michael.ricordeau@gmail.com</a>> wrote:<br>
<br>
> Well so why bridge in outbound eventsocket is clearing BDA and not in dialplan ?<br>
> (just for my knowledge)<br>
><br>
> Is it because dialplan is "preprocessed" before executing commands ?<br>
><br>
><br>
><br>
><br>
><br>
> Le Fri, 5 Aug 2011 21:31:05 +0200,<br>
> Michael Ricordeau <<a href="mailto:michael.ricordeau@gmail.com">michael.ricordeau@gmail.com</a>> a écrit :<br>
><br>
>> Hi Michael,<br>
>><br>
>> it works with the BDA set after bridge !<br>
>><br>
>> Thanks for the quick and perfect answer =)<br>
>><br>
>> See you at Cluecon next week !<br>
>><br>
>><br>
>> Michael<br>
>><br>
>><br>
>><br>
>> Le Fri, 5 Aug 2011 11:31:03 -0700,<br>
>> Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>> a écrit :<br>
>><br>
>>> Michael,<br>
>>><br>
>>> I think the bridge app is clearing things out. I got it to work by bridging<br>
>>> first and then doing the BDA stuff:<br>
>>><br>
>>> connect<br>
>>><br>
>>> sendmsg<br>
>>> call-command: execute<br>
>>> execute-app-name: answer<br>
>>><br>
>>> sendmsg<br>
>>> call-command: execute<br>
>>> execute-app-name: bridge<br>
>>> execute-app-arg: user/1007<br>
>>><br>
>>> sendmsg<br>
>>> call-command: execute<br>
>>> execute-app-name: bind_digit_action<br>
>>> execute-app-arg: test,*0,exec:log,NOTICE TEST<br>
>>><br>
>>> sendmsg<br>
>>> call-command: execute<br>
>>> execute-app-name: digit_action_set_realm<br>
>>> execute-app-arg: test<br>
>>><br>
>>><br>
>>> Let me know if that works for you.<br>
>>> -MC<br>
>>><br>
>>> On Thu, Aug 4, 2011 at 12:24 PM, Michael Ricordeau <<br>
>>> <a href="mailto:michael.ricordeau@gmail.com">michael.ricordeau@gmail.com</a>> wrote:<br>
>>><br>
>>>> Hi,<br>
>>>><br>
>>>> I think I'm doing something wrong but I don't find a way to fix my problem<br>
>>>> :<br>
>>>><br>
>>>> when executing bind_digit_action in an outbound socket and doing a bridge,<br>
>>>> digit action binding is not executed (no log in Freeswitch)<br>
>>>><br>
>>>> when doing same thing in XML dialplan it works (I found log in Freeswitch).<br>
>>>><br>
>>>> I have checked logs and in both cases, digit realm is set :<br>
>>>> Digit parser DPTOOLS: binding 00/test/0 callback: 0xb6ba1b00 data:<br>
>>>> 0x82eafe8<br>
>>>><br>
>>>><br>
>>>><br>
>>>> For outbound socket, here what I'm doing with netcat :<br>
>>>><br>
>>>><br>
>>>> nc -l -v 8084<br>
>>>><br>
>>>><br>
>>>> and the commands I passed to outbound socket :<br>
>>>><br>
>>>><br>
>>>> connect<br>
>>>><br>
>>>> divert_events on<br>
>>>><br>
>>>> sendmsg<br>
>>>> call-command: execute<br>
>>>> execute-app-name: answer<br>
>>>><br>
>>>> sendmsg<br>
>>>> call-command: execute<br>
>>>> execute-app-name: bind_digit_action<br>
>>>> execute-app-arg: test,00,exec:log,NOTICE TEST<br>
>>>><br>
>>>> sendmsg<br>
>>>> call-command: execute<br>
>>>> execute-app-name: bridge<br>
>>>> execute-app-arg: user/1000<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> With XML Dialplan below, same binding/bridge works !!!!! :<br>
>>>><br>
>>>> <extension name="test"><br>
>>>> <condition field="destination_number" expression="^0000$"><br>
>>>> <action application="answer"/><br>
>>>> <action application="bind_digit_action"<br>
>>>> data="test,00,exec:log,NOTICE TEST"/><br>
>>>> <action application="bridge" data="user/1000"/><br>
>>>> </condition><br>
>>>> </extension><br>
>>>><br>
>>>><br>
>>>><br>
>>>> Expected result is when A leg presses "00", a log notice "TEST" is printed<br>
>>>> in the logger but only works with XML dialplan.<br>
>>>> In outbound socket mode, I can hear the digits pressed on B leg but binding<br>
>>>> is not executed (no log notice "TEST")<br>
>>>><br>
>>>><br>
>>>> Thanks<br>
>>>><br>
>>>><br>
>>>> Michaël<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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></div></div>