Thank you all for your replies So if I understand well, for now, I have two solutions: 1/ check when the state is "answered" with events thrown by FS 2/ check the country code of the bleg and apply the correct ringtone So, as Michael said, if you have any ideas, I'll be glad to test them. Thanks a lot Michael and all of you for your efficiency :-) Best regards 2011/7/11 Michael Collins <msc@freeswitch.org>
On Mon, Jul 11, 2011 at 2:01 PM, Steven Ayre <steveayre@gmail.com> wrote:
The issue isn't that you can't do that, you can.
The issue is that you can't do that at the same time as passing back the ringback from a bleg to an aleg, unless you generate the ringback yourself (you can't both handle the 18x and ignore it at the same time).
Agreed, which is where we're currently stuck. The question is exactly *how* to generate ringback to the A leg when his B leg could be call anywhere in the world. The OP said he wanted the appropriate ringback. I suggested that he look at the target phone number, parse out the country code, and then supply the appropriate ringback value for that country.
If there are alternate solutions to this then by all means present them so that Mathieu can test drive them. -MC
_______________________________________________ Join us at ClueCon 2011, Aug 9-11, Chicago http://www.cluecon.com 877-7-4ACLUE
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Mathieu LAUTRAM Application developer BJT Partners - FRANCE +33 1 79 75 99 60 +33 6 61 59 07 25