[Freeswitch-users] Custom ringback tone
Brian West
brian at freeswitch.org
Tue Dec 8 22:36:09 MSK 2015
you put that inside the {} on the bridge line.
<*extension* name="wait">
<condition field="destination_number" expression="^wait$">
<action application="pre_answer"/>
<action application="sleep" data="20000"/>
<action application="answer"/>
<action application="sleep" data="1000"/>
<action application="playback" data="voicemail/vm-goodbye.wav"/>
<action application="hangup"/>
</condition>
</extension>
<*extension* name="ringback_183_music_ring">
<condition field="destination_number" expression="^9182$">
<action application="set" data="ringback=/t.mp3"/>
<action application="set" data="instant_ringback=true"/>
<action application="bridge" data=
"{ignore_early_media=true}loopback/wait"/>
</condition>
</extension>
And NO mp3 probably doesn't matter, as long as you have sufficient CPU,
which why can't you in this day and age?
On Tue, Dec 8, 2015 at 8:18 AM, Michael Nielsen <mic.niel84 at gmail.com>
wrote:
> I did try with
>
> <action application="set" data="ignore_early_media=true"/>
>
>
> Didn't change much. However, in some cases it was silence until hangup,
> and then music did start. Weird.
>
> On Tue, Dec 8, 2015 at 2:37 PM, Sergey Safarov <s.safarov at gmail.com>
> wrote:
>
>> Try send ringing before early media.
>>
>> On Tue, Dec 8, 2015, 16:22 Luis Daniel Lucio Quiroz <
>> luis.daniel.lucio at gmail.com> wrote:
>>
>>> Sounds nice a cussed problem.
>>>
>>> First, convert your sound to wav, mono, 8khz
>>> You will offload FreeSWITCH and retry
>>> Le 8 déc. 2015 7:46 AM, "Michael Nielsen" <mic.niel84 at gmail.com> a
>>> écrit :
>>>
>>>> Yes. For ringback music. When answering sound is there.
>>>>
>>>> On Tuesday, December 8, 2015, Sergey Safarov <s.safarov at gmail.com>
>>>> wrote:
>>>>
>>>>> Silence on leg connected via Twilio?
>>>>>
>>>>> On Tue, Dec 8, 2015 at 1:49 PM, Michael Nielsen <mic.niel84 at gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I found out that it's only when there's an external sip trunk in use
>>>>>> (Twilio in this case) that there's silence.
>>>>>> Between subscribers directly connected to FS it works.
>>>>>>
>>>>>> On Tue, Dec 8, 2015 at 11:25 AM, Michael Nielsen <
>>>>>> mic.niel84 at gmail.com> wrote:
>>>>>>
>>>>>>> I'm running FreeSWITCH
>>>>>>>
>>>>>>> In my log I get Action set(ringback=/etc/freeswitch/ringback.mp3)
>>>>>>> and also, later on:
>>>>>>>
>>>>>>> 2015-12-08 10:20:00.539190 [DEBUG] switch_ivr_originate.c:1274 Raw
>>>>>>> Codec Activation Success L16 at 8000hz 1 channel 20ms
>>>>>>>
>>>>>>> 2015-12-08 10:20:00.539190 [DEBUG] switch_core_codec.c:221
>>>>>>> sofia/external/+4454443356778 at my-domain.pstn.twilio.com Push codec
>>>>>>> L16:100
>>>>>>>
>>>>>>> 2015-12-08 10:20:00.539190 [DEBUG] switch_ivr_originate.c:1306 Play
>>>>>>> Ringback File [/etc/freeswitch/ringback.mp3]
>>>>>>>
>>>>>>> 2015-12-08 10:20:00.539190 [WARNING] switch_core_file.c:341 File has
>>>>>>> 2 channels, muxing to 1 channel will occur.
>>>>>>>
>>>>>>> 2015-12-08 10:20:00.699194 [DEBUG] switch_rtp.c:6640 Correct audio
>>>>>>> ip/port confirmed.
>>>>>>>
>>>>>>>
>>>>>>> However, there is no sound in my real GSM phone when waiting for
>>>>>>> answer. Just silence.
>>>>>>>
>>>>>>> On Mon, Dec 7, 2015 at 10:21 PM, Brian West <brian at freeswitch.org>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I can't replicate the behavior you're describing, can you give me a
>>>>>>>> few more details? What REV of FreeSWITCH are you running?
>>>>>>>>
>>>>>>>> On Mon, Dec 7, 2015 at 2:41 PM, Michael Nielsen <
>>>>>>>> mic.niel84 at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Yes.
>>>>>>>>> When I put instant_ringback on it seems
>>>>>>>>> to be silent when ringing - but when I hang up in one end the
>>>>>>>>> music actually starts in the other end. Kind of weird.
>>>>>>>>> Putting ignore_early_media makes the music play less than a
>>>>>>>>> seconds at first and then normal ringtone...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Monday, December 7, 2015, Denis Papes <shishko69 at gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Did you load mod_shout?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 12/07/2015 07:52 PM, Michael Nielsen wrote:
>>>>>>>>>>
>>>>>>>>>> If I remove my ringback-variable I do get a normal ringtone.
>>>>>>>>>> So I guess it's something with my file perhaps - or...?
>>>>>>>>>>
>>>>>>>>>> On Mon, Dec 7, 2015 at 7:49 PM, Anthony Minessale <
>>>>>>>>>> anthony.minessale at gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Make sure you add {ignore_early_media=true} to dial string and
>>>>>>>>>>> possibly also {instant_ringback=true} if your call does not get any ringing
>>>>>>>>>>> indication. (180 183 etc) or is not SIP.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On Mon, Dec 7, 2015 at 12:33 PM, Michael Nielsen <
>>>>>>>>>>> mic.niel84 at gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hi,
>>>>>>>>>>>>
>>>>>>>>>>>> I'm trying to add a custom ringback tone on my FreeSWITCH
>>>>>>>>>>>> server.
>>>>>>>>>>>>
>>>>>>>>>>>> I've created a .mp3 file and added:
>>>>>>>>>>>>
>>>>>>>>>>>> <action application="set"
>>>>>>>>>>>> data="ringback=/home/user/ringback.mp3"/>
>>>>>>>>>>>>
>>>>>>>>>>>> However, when trying to call, there's just silence...
>>>>>>>>>>>>
>>>>>>>>>>>> Should the format be different, and if so how do I convert this?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> _________________________________________________________________________
>>>>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>>>>> consulting at 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-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
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
>>>>>>>>>>>
>>>>>>>>>>> ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞
>>>>>>>>>>> http://twitter.com/FreeSWITCH
>>>>>>>>>>> ☞ irc.freenode.net #freeswitch ☞ *
>>>>>>>>>>> <http://freeswitch.org/g+>http://freeswitch.org/g+
>>>>>>>>>>> <http://freeswitch.org/g+>*
>>>>>>>>>>>
>>>>>>>>>>> ClueCon Weekly Development Call
>>>>>>>>>>> ☎ sip:888 at conference.freeswitch.org ☎ +19193869900
>>>>>>>>>>>
>>>>>>>>>>> https://www.youtube.com/watch?v=9XXgW34t40s
>>>>>>>>>>> https://www.youtube.com/watch?v=NLaDpGQuZDA
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> _________________________________________________________________________
>>>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>>>> consulting at 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-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
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _________________________________________________________________________
>>>>>>>>>> Professional FreeSWITCH Consulting Services: consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>>>>>>>>>
>>>>>>>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>>>>>>>>>>
>>>>>>>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>>>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _________________________________________________________________________
>>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>>> consulting at 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-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
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>>
>>>>>>>> *Brian West*
>>>>>>>> brian at freeswitch.org
>>>>>>>>
>>>>>>>>
>>>>>>>> *Twitter: @FreeSWITCH , @briankwest*
>>>>>>>> http://www.freeswitchbook.com
>>>>>>>> http://www.freeswitchcookbook.com
>>>>>>>>
>>>>>>>> Got Bugs? Report them here <https://freeswitch.org/jira>! |
>>>>>>>> Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>>>>>>>
>>>>>>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>>>>>>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>>>>>>
>>>>>>>>
>>>>>>>> _________________________________________________________________________
>>>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>>>> consulting at 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-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
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _________________________________________________________________________
>>>>>> Professional FreeSWITCH Consulting Services:
>>>>>> consulting at 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-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
>>>>>>
>>>>>
>>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at 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-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
>>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at 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-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
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at 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-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
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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-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
>
--
*Brian West*
brian at freeswitch.org
*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
/r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151208/f962ac8d/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list