Discussion:
[Freeswitch-users] Difficult extension case
Dmitry Mordovin
2015-05-23 20:22:58 UTC
Permalink
Hello All!

I wish to implement one extension scenario, could help me?


- Play prompt (its easy)
- Play ringback music
- Bridge to one or multiple numbers
- On answer:
- Play BEEP to incoming leg (stop music, play BEEP means call
success, starting talks)
- Play "IMPORTANT CALL!!!" to new outgoing leg
- Connect incoming and outgoing legs together
- On fail (timeout):
- Play "Please recall later"



I don't understand how can play on answer separately each leg

Thank you

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Stanislav Sinyagin
2015-05-23 23:31:23 UTC
Permalink
it's easy if you use an external program talking to FreeSWITCH via its API.

I actually implemented two prototypes which do approximately the same
as you described:

https://github.com/xlab1/freeswitch_secretary_bug
this one uses mod_perl and is executed within FreeSWITCH process, so
you need to watch out about CPU and memory usage and overall
stability. See the Jira ticket for details.


https://github.com/xlab1/go-fs-secretary-prototype
This is a prototype which implements exactly the same scenario, but is
controlled by an external process, so it's more stable and scalable.
It talks to FreeSWITCH via the Event Socket interface.
Post by Dmitry Mordovin
Hello All!
I wish to implement one extension scenario, could help me?
- Play prompt (its easy)
- Play ringback music
- Bridge to one or multiple numbers
- Play BEEP to incoming leg (stop music, play BEEP means call
success, starting talks)
- Play "IMPORTANT CALL!!!" to new outgoing leg
- Connect incoming and outgoing legs together
- Play "Please recall later"
I don't understand how can play on answer separately each leg
Thank you
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Dmitry Mordovin
2015-05-24 14:33:31 UTC
Permalink
Hello

Problem with "play on answer" solved

<action application="bridge" data="{api_on_answer_1=''sleep
1000'',api_on_answer_2=''uuid_broadcast ${uuid} ivr/ivr-call_from.wav
aleg''}sofia/gateway/sipnet/***@sipnet"/>

Thanks all!
Post by Stanislav Sinyagin
it's easy if you use an external program talking to FreeSWITCH via its API.
I actually implemented two prototypes which do approximately the same
https://github.com/xlab1/freeswitch_secretary_bug
this one uses mod_perl and is executed within FreeSWITCH process, so
you need to watch out about CPU and memory usage and overall
stability. See the Jira ticket for details.
https://github.com/xlab1/go-fs-secretary-prototype
This is a prototype which implements exactly the same scenario, but is
controlled by an external process, so it's more stable and scalable.
It talks to FreeSWITCH via the Event Socket interface.
Post by Dmitry Mordovin
Hello All!
I wish to implement one extension scenario, could help me?
- Play prompt (its easy)
- Play ringback music
- Bridge to one or multiple numbers
- Play BEEP to incoming leg (stop music, play BEEP means call
success, starting talks)
- Play "IMPORTANT CALL!!!" to new outgoing leg
- Connect incoming and outgoing legs together
- Play "Please recall later"
I don't understand how can play on answer separately each leg
Thank you
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
***@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-***@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Loading...