[Freeswitch-users] Custom ringback tone

Brian :: bc at iptel.co
Tue Dec 8 14:19:13 MSK 2015


Its possible that twilio aren't letting you pass custom early media..


On Tue, Dec 8, 2015 at 10:49 AM, 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151208/20d0156f/attachment-0001.html 


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