PCMU ringback gets weird if you specify the file extension?
Hey; So with early media happy, I'm working on various media files that my company wants played back. Can anyone shed any light on why if I do this: <action application='set' data='ringback=sounds/early-media.PCMU'/> The audio is garbage. But if I do this: <action application='set' data='ringback=sounds/early-media'/> The audio is perfect, even though the console clearly shows it is playing _the same file_: mod_native_file.c:94 Opening File [/usr/local/freeswitch/sounds/early-media.PCMU] 8000hz I've got a workaround, so I'm not bothered, but... it seems awfully strange that specifying the extension confuses it when they are playing the same file. I'm currently running git.head as of Wednesday. Thanks; - Jock
If you're using native sound files you shouldn't ever specify the extension. /b On Sep 3, 2010, at 10:15 AM, Jock McKechnie wrote:
I've got a workaround, so I'm not bothered, but... it seems awfully strange that specifying the extension confuses it when they are playing the same file. I'm currently running git.head as of Wednesday.
Thanks;
- Jock
On Fri, Sep 3, 2010 at 10:20 AM, Brian West <brian@freeswitch.org> wrote:
If you're using native sound files you shouldn't ever specify the extension.
Agreed, it was an oversight on my part. But that doesn't explain the behaviour. - JP
On Sep 3, 2010, at 10:15 AM, Jock McKechnie wrote:
I've got a workaround, so I'm not bothered, but... it seems awfully strange that specifying the extension confuses it when they are playing the same file. I'm currently running git.head as of Wednesday.
Thanks;
- Jock
_______________________________________________ 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
if you specify the exten then the core does not know you are using it as a native file and all the math is wrong for the samples etc. if you want to play the file with mod_sndfile rename it to .ul or encode it as a wav with ulaw payload. On Fri, Sep 3, 2010 at 10:37 AM, Jock McKechnie <jock.mckechnie@gmail.com> wrote:
On Fri, Sep 3, 2010 at 10:20 AM, Brian West <brian@freeswitch.org> wrote:
If you're using native sound files you shouldn't ever specify the extension.
Agreed, it was an oversight on my part. But that doesn't explain the behaviour. - JP
On Sep 3, 2010, at 10:15 AM, Jock McKechnie wrote:
I've got a workaround, so I'm not bothered, but... it seems awfully strange that specifying the extension confuses it when they are playing the same file. I'm currently running git.head as of Wednesday.
Thanks;
- Jock
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On Fri, Sep 3, 2010 at 10:53 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
if you specify the exten then the core does not know you are using it as a native file and all the math is wrong for the samples etc.
Ah, I understand. Thanks! - Jock
if you want to play the file with mod_sndfile rename it to .ul or encode it as a wav with ulaw payload.
On Fri, Sep 3, 2010 at 10:37 AM, Jock McKechnie <jock.mckechnie@gmail.com> wrote:
On Fri, Sep 3, 2010 at 10:20 AM, Brian West <brian@freeswitch.org>
wrote:
If you're using native sound files you shouldn't ever specify the extension.
Agreed, it was an oversight on my part. But that doesn't explain the behaviour. - JP
On Sep 3, 2010, at 10:15 AM, Jock McKechnie wrote:
I've got a workaround, so I'm not bothered, but... it seems awfully strange that specifying the extension confuses it when they are
playing the
same file. I'm currently running git.head as of Wednesday.
Thanks;
- Jock
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
_______________________________________________ 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
participants (3)
-
Anthony Minessale
-
Brian West
-
Jock McKechnie