[Freeswitch-users] Cancell Bridge

Ian McMaster ian.mcmaster at gmail.com
Tue May 6 06:32:51 MSD 2014


Hi Luiz,

After you accept the connection on port 8084 do you send a connect command,
and receive the CHANNEL_DATA event?
In that event you get the channel uuid "Unique-ID".  You need this to use
sendmsg.

Then the syntax is:

sendmsg <uuid>
call-command: execute
execute-app-name: (export, set, bridge, etc)
execute-app-arg: (appropriate arguments)
[optional event-lock: true]
\n
\n

Does this get you any further?
Ian.



On Mon, May 5, 2014 at 8:19 PM, Luiz Fernando Softov <fernando at softov.com.br
> wrote:

> Hi everyone.
>
>
> I have this problem making outbound call. Maybe someone can help me with
> this.
>
> I'm have a service in C (TCP Server),  where i receive all calls.
>
> <extension name="outcalls">
>     <condition>
>         <action application="socket" data="127.0.0.1:8084 async full"/>
>         <action application="hangup"/>
>     </condition>
> </extension>
>
> In this service I do all the work of billing and control of active calls.
>
> This is my commands, where i receive a connection to make a call to 1001
>
> sendmsg execute\n
> call-command: set\n
> execute-app-name: dialed_extension=1001\n\n
>
> sendmsg execute\n
> call-command: export\n
> execute-app-name: dialed_extension=1001
>
> sendmsg execute\n
> call-command: set\n
> execute-app-name: bypass_media=true\n\n
>
> sendmsg execute\n
> call-command: set\n
> execute-app-name: call_timeout=30\n\n
>
> sendmsg execute\n
> call-command: set\n
> execute-app-name: hangup_after_bridge=true\n\n
>
> sendmsg execute\n
> call-command: set\n
> execute-app-name: continue_on_fail=true\n\n
>
> sendmsg execute\n
> call-command: bridge\n
> execute-app-name: user/${dialed_extension}@${domain_name}\n\n
>
>
> But now I stopped because I can not cancel the bridge and do something
> with the call.
>
> I tried, but all commands i have sended like
>
> sendmsg execute\n
> call-command: hangup\n
> execute-app-name: CHANNEL_UNACCEPTABLE\n\n
>
> or
>
> sendmsg execute\n
> call-command: break\n\n
>
> Do nothing with the call
>
> I receive only this in FS log
>
> [DEBUG] switch_core_session.c:1151 Send signal sofia/internal/
> 1001 at 192.168.211.69[BREAK]
>
> I tried with and without "event-lock: true"
>
> I need to do this such as: credit is over, I need to cancel the current
> bridge and play a sound to the user and hangup call
>
> or to simple hangup a call
>
> I receive this in FS console LOG after a-leg or bleg hangup a phone and
> call terminated
>
> [DEBUG] switch_ivr.c:614 sofia/internal/1001 at 192.168.211.69Command
> Execute hangup()
> [DEBUG] switch_core_session.c:2614 sofia/internal/1001 at 192.168.211.69Channel
> is hungup and application 'hangup' does not have the zombie_exec flag.
> [DEBUG] switch_ivr.c:657 sofia/internal/1001 at 192.168.211.69 skip receive
> message [AUDIO_SYNC] (channel is hungup already)
>
>
> This is for each "sendmsg" i send after bridge was answered.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140505/621779ff/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list