"Can not record session. Media not enabled on channel."
Hello, I am using the same set of extensions for testing the system during development, they include XLite, Cisco sip phone and several extensions that just play some audio file. Sometimes, very rarely, this message "Can not record session. Media not enabled on channel." appears on FS console. Like I wrote before, I don't change any codec settings and always use the same set of devices/emulators. What can cause this message? Thanks, Maciej Aniserowicz -- View this message in context: http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3... Sent from the freeswitch-users mailing list archive at Nabble.com.
What's in the dialplan for this channel? Is bypass-media or proxy-media set to true? Do a debug trace and post it in pastebin. -MC On Tue, Oct 20, 2009 at 3:30 AM, Maciej Aniserowicz < maciej.aniserowicz@gmail.com> wrote:
Hello, I am using the same set of extensions for testing the system during development, they include XLite, Cisco sip phone and several extensions that just play some audio file. Sometimes, very rarely, this message "Can not record session. Media not enabled on channel." appears on FS console. Like I wrote before, I don't change any codec settings and always use the same set of devices/emulators. What can cause this message?
Thanks, Maciej Aniserowicz
The dialplan is very simple: <extension name="Recording test"> <condition field="destination_number" expression="^111111\d*$"> <action application="sleep" data="3000" /> <action application="answer"/> <action application="say" data="en name_spelled iterated ${destination_number}"/> <action application="sleep" data="1000" /> <action application="playback" data="local_stream://my_music"/> </condition> </extension> Before debugging I have another question: I start recording in event handler for ChannelAnswer event. Is it possible that it's too soon to start recording? Maybe I should start recording in some other event? MAniserowicz mercutioviz wrote:
What's in the dialplan for this channel? Is bypass-media or proxy-media set to true? Do a debug trace and post it in pastebin. -MC
On Tue, Oct 20, 2009 at 3:30 AM, Maciej Aniserowicz < maciej.aniserowicz@gmail.com> wrote:
Hello, I am using the same set of extensions for testing the system during development, they include XLite, Cisco sip phone and several extensions that just play some audio file. Sometimes, very rarely, this message "Can not record session. Media not enabled on channel." appears on FS console. Like I wrote before, I don't change any codec settings and always use the same set of devices/emulators. What can cause this message?
Thanks, Maciej Aniserowicz
_______________________________________________ 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
-- View this message in context: http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3... Sent from the freeswitch-users mailing list archive at Nabble.com.
On Fri, Oct 23, 2009 at 12:36 AM, Maciej Aniserowicz < maciej.aniserowicz@gmail.com> wrote:
The dialplan is very simple:
<extension name="Recording test"> <condition field="destination_number" expression="^111111\d*$"> <action application="sleep" data="3000" /> <action application="answer"/> <action application="say" data="en name_spelled iterated ${destination_number}"/> <action application="sleep" data="1000" /> <action application="playback" data="local_stream://my_music"/> </condition> </extension>
Before debugging I have another question: I start recording in event handler for ChannelAnswer event. Is it possible that it's too soon to start recording? Maybe I should start recording in some other event?
That would be an odd scenario but maybe. It would be best if you could catch it in the act so that we could see exactly what is happening. The other thing you could do is deliberately start recording on the channel prior to answering and see if you always get the error. In other words, try to make it fail under a certain set of circumstances to see if your theory is correct. -MC
Yes, I can confirm - this exact error occurs each time when I start recording before the call is answered (just after sending ORIGINATE command) - but I think that's completely understandable that media is not ready for an unanswered call. But... is there any other event that guarantees media to be ready? mercutioviz wrote:
On Fri, Oct 23, 2009 at 12:36 AM, Maciej Aniserowicz < maciej.aniserowicz@gmail.com> wrote:
The dialplan is very simple:
<extension name="Recording test"> <condition field="destination_number" expression="^111111\d*$"> <action application="sleep" data="3000" /> <action application="answer"/> <action application="say" data="en name_spelled iterated ${destination_number}"/> <action application="sleep" data="1000" /> <action application="playback" data="local_stream://my_music"/> </condition> </extension>
Before debugging I have another question: I start recording in event handler for ChannelAnswer event. Is it possible that it's too soon to start recording? Maybe I should start recording in some other event?
That would be an odd scenario but maybe. It would be best if you could catch it in the act so that we could see exactly what is happening. The other thing you could do is deliberately start recording on the channel prior to answering and see if you always get the error. In other words, try to make it fail under a certain set of circumstances to see if your theory is correct. -MC
_______________________________________________ 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
-- View this message in context: http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3... Sent from the freeswitch-users mailing list archive at Nabble.com.
On Mon, Oct 26, 2009 at 12:21 AM, Maciej Aniserowicz < maciej.aniserowicz@gmail.com> wrote:
Yes, I can confirm - this exact error occurs each time when I start recording before the call is answered (just after sending ORIGINATE command) - but I think that's completely understandable that media is not ready for an unanswered call. But... is there any other event that guarantees media to be ready?
Update to latest SVN and try again.
-MC
Sorry, trunk does not compile on win7, here are the details: rev.15247 --------------------------- Microsoft Visual C++ Debug Library --------------------------- Debug Assertion Failed! Program: ...ev\Projects\External\FreeSWITCH\Original\Debug\FreeSwitch.exe File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c Line: 1317 Expression: _CrtIsValidHeapPointer(pUserData) For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts. (Press Retry to debug the application) --------------------------- Abort Retry Ignore --------------------------- VS Call stack: ntdll.dll!77ccfadc() [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] ntdll.dll!77c9272c() ntdll.dll!77c5e1ef() msvcr90d.dll!_free_dbg_nolock(void * pUserData=0x00664b88, int nBlockUse=1) Line 1317 + 0x9 bytes C++ msvcr90d.dll!_free_dbg(void * pUserData=0x00664b88, int nBlockUse=1) Line 1258 + 0xd bytes C++ msvcr90d.dll!free(void * pUserData=0x00664b88) Line 49 + 0xb bytes C++
FreeSwitch.dll!switch_core_mime_add_type(const char * type=0x003bcd1c, const char * ext=0x003bcd37) Line 748 + 0xc bytes C FreeSwitch.dll!load_mime_types() Line 791 C FreeSwitch.dll!switch_core_init(unsigned int flags=65, switch_bool_t console=SWITCH_TRUE, const char * * err=0x003bf68c) Line 1244 C FreeSwitch.dll!switch_core_init_and_modload(unsigned int flags=65, switch_bool_t console=SWITCH_TRUE, const char * * err=0x003bf68c) Line 1454 + 0x11 bytes C FreeSwitch.exe!main(int argc=1, char * * argv=0x02144c40) Line 764 + 0x23 bytes C FreeSwitch.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C FreeSwitch.exe!mainCRTStartup() Line 403 C kernel32.dll!77713677() ntdll.dll!77c39d72() ntdll.dll!77c39d45()
Error occurs in : SWITCH_DECLARE(switch_status_t) switch_core_mime_add_type(const char *type, const char *ext) { const char *check; switch_status_t status = SWITCH_STATUS_FALSE; switch_assert(type); switch_assert(ext); check = (const char *) switch_core_hash_find(runtime.mime_types, ext); if (!check) { char *ptype = switch_core_permanent_strdup(type); char *ext_list = strdup(ext); int argc = 0; char *argv[20] = { 0 }; int x; switch_assert(ext_list); if ((argc = switch_separate_string(ext_list, ' ', argv, (sizeof(argv) / sizeof(argv[0]))))) { for (x = 0; x < argc; x++) { if (argv[x] && ptype) { switch_core_hash_insert(runtime.mime_types, argv[x], ptype); } } status = SWITCH_STATUS_SUCCESS; } free(ext_list); // <--- HERE } return status; } ----- Original Message ----- From: mercutioviz [via freeswitch-users] To: Maciej Aniserowicz Sent: Monday, October 26, 2009 10:32 PM Subject: Re: [Freeswitch-users] "Can not record session. Media not enabled on channel." On Mon, Oct 26, 2009 at 12:21 AM, Maciej Aniserowicz <[hidden email]> wrote: Yes, I can confirm - this exact error occurs each time when I start recording before the call is answered (just after sending ORIGINATE command) - but I think that's completely understandable that media is not ready for an unanswered call. But... is there any other event that guarantees media to be ready? Update to latest SVN and try again. -MC _______________________________________________ FreeSWITCH-users mailing list [hidden email] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org ------------------------------------------------------------------------------ View message @ http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3... To unsubscribe from Re: "Can not record session. Media not enabled on channel.", click here. -- View this message in context: http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3... Sent from the freeswitch-users mailing list archive at Nabble.com.
won't compile or won't run?
maybe you should try rebuilding it.
On Tue, Oct 27, 2009 at 9:55 AM, Maciej Aniserowicz <
maciej.aniserowicz@gmail.com> wrote:
> Sorry, trunk does not compile on win7, here are the details:
>
>
> rev.15247
>
> ---------------------------
> Microsoft Visual C++ Debug Library
> ---------------------------
> Debug Assertion Failed!
>
> Program: ...ev\Projects\External\FreeSWITCH\Original\Debug\FreeSwitch.exe
> File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
> Line: 1317
>
> Expression: _CrtIsValidHeapPointer(pUserData)
>
> For information on how your program can cause an assertion
> failure, see the Visual C++ documentation on asserts.
>
> (Press Retry to debug the application)
> ---------------------------
> Abort Retry Ignore
> ---------------------------
>
> VS Call stack:
>
> ntdll.dll!77ccfadc()
> [Frames below may be incorrect and/or missing, no symbols loaded for
> ntdll.dll]
> ntdll.dll!77c9272c()
> ntdll.dll!77c5e1ef()
> msvcr90d.dll!_free_dbg_nolock(void * pUserData=0x00664b88, int
> nBlockUse=1) Line 1317 + 0x9 bytes C++
> msvcr90d.dll!_free_dbg(void * pUserData=0x00664b88, int nBlockUse=1)
> Line 1258 + 0xd bytes C++
> msvcr90d.dll!free(void * pUserData=0x00664b88) Line 49 + 0xb bytes C++
> > FreeSwitch.dll!switch_core_mime_add_type(const char * type=0x003bcd1c,
> const char * ext=0x003bcd37) Line 748 + 0xc bytes C
> FreeSwitch.dll!load_mime_types() Line 791 C
> FreeSwitch.dll!switch_core_init(unsigned int flags=65, switch_bool_t
> console=SWITCH_TRUE, const char * * err=0x003bf68c) Line 1244 C
> FreeSwitch.dll!switch_core_init_and_modload(unsigned int flags=65,
> switch_bool_t console=SWITCH_TRUE, const char * * err=0x003bf68c) Line 1454
> + 0x11 bytes C
> FreeSwitch.exe!main(int argc=1, char * * argv=0x02144c40) Line 764 +
> 0x23 bytes C
> FreeSwitch.exe!__tmainCRTStartup() Line 586 + 0x19 bytes C
> FreeSwitch.exe!mainCRTStartup() Line 403 C
> kernel32.dll!77713677()
> ntdll.dll!77c39d72()
> ntdll.dll!77c39d45()
>
>
> Error occurs in :
>
> SWITCH_DECLARE(switch_status_t) switch_core_mime_add_type(const char *type,
> const char *ext)
> {
> const char *check;
> switch_status_t status = SWITCH_STATUS_FALSE;
>
> switch_assert(type);
> switch_assert(ext);
>
> check = (const char *) switch_core_hash_find(runtime.mime_types, ext);
>
> if (!check) {
> char *ptype = switch_core_permanent_strdup(type);
> char *ext_list = strdup(ext);
> int argc = 0;
> char *argv[20] = { 0 };
> int x;
>
> switch_assert(ext_list);
>
> if ((argc = switch_separate_string(ext_list, ' ', argv, (sizeof(argv) /
> sizeof(argv[0]))))) {
>
> for (x = 0; x < argc; x++) {
> if (argv[x] && ptype) {
> switch_core_hash_insert(runtime.mime_types, argv[x], ptype);
> }
> }
>
> status = SWITCH_STATUS_SUCCESS;
> }
>
> free(ext_list); // <--- HERE
> }
>
> return status;
> }
>
>
>
> ----- Original Message -----
> *From:* [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3899478&i=0>
> *To:* [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3899478&i=1>
> *Sent:* Monday, October 26, 2009 10:32 PM
> *Subject:* Re: [Freeswitch-users] "Can not record session. Media not
> enabled on channel."
>
>
>
> On Mon, Oct 26, 2009 at 12:21 AM, Maciej Aniserowicz <[hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3895104&i=0>
> > wrote:
>
>>
>> Yes, I can confirm - this exact error occurs each time when I start
>> recording
>> before the call is answered (just after sending ORIGINATE command) - but I
>> think that's completely understandable that media is not ready for an
>> unanswered call.
>> But... is there any other event that guarantees media to be ready?
>>
>> Update to latest SVN and try again.
> -MC
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3895104&i=1>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> ------------------------------
> View this message in context: Re: [Freeswitch-users] "Can not record
> session. Media not enabled on channel."<http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3857858p3899478.html>
>
> Sent from the freeswitch-users mailing list archive<http://n2.nabble.com/freeswitch-users-f2379917.html>at Nabble.com.
>
> _______________________________________________
> 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>
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org>
pstn:213-799-1400
Correct - compiled but did not run. Works fine now. I'll see if the error shows up again and let you know if it does. Thanks, MA Anthony Minessale wrote:
won't compile or won't run? maybe you should try rebuilding it.
On Tue, Oct 27, 2009 at 9:55 AM, Maciej Aniserowicz < maciej.aniserowicz@gmail.com> wrote:
Sorry, trunk does not compile on win7, here are the details:
rev.15247
--------------------------- Microsoft Visual C++ Debug Library --------------------------- Debug Assertion Failed!
----- Original Message ----- *From:* [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3899478&i=0> *To:* [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3899478&i=1> *Sent:* Monday, October 26, 2009 10:32 PM *Subject:* Re: [Freeswitch-users] "Can not record session. Media not enabled on channel."
On Mon, Oct 26, 2009 at 12:21 AM, Maciej Aniserowicz <[hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3895104&i=0>
wrote:
Yes, I can confirm - this exact error occurs each time when I start recording before the call is answered (just after sending ORIGINATE command) - but I think that's completely understandable that media is not ready for an unanswered call. But... is there any other event that guarantees media to be ready?
Update to latest SVN and try again.
-MC
_______________________________________________ FreeSWITCH-users mailing list [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3895104&i=1> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
------------------------------ View this message in context: Re: [Freeswitch-users] "Can not record session. Media not enabled on channel."<http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3857858p3899478.html>
Sent from the freeswitch-users mailing list archive<http://n2.nabble.com/freeswitch-users-f2379917.html>at Nabble.com.
_______________________________________________ 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> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
-- View this message in context: http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3... Sent from the freeswitch-users mailing list archive at Nabble.com.
Hi, Unfortunately getting the newest version did not solve the problem: "Can not record session. Media not enabled on channel." error still appears sometimes. MA Maciej Aniserowicz wrote:
Correct - compiled but did not run. Works fine now.
I'll see if the error shows up again and let you know if it does. Thanks, MA
Anthony Minessale wrote:
won't compile or won't run? maybe you should try rebuilding it.
On Tue, Oct 27, 2009 at 9:55 AM, Maciej Aniserowicz < maciej.aniserowicz@gmail.com> wrote:
Sorry, trunk does not compile on win7, here are the details:
rev.15247
--------------------------- Microsoft Visual C++ Debug Library --------------------------- Debug Assertion Failed!
----- Original Message ----- *From:* [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3899478&i=0> *To:* [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3899478&i=1> *Sent:* Monday, October 26, 2009 10:32 PM *Subject:* Re: [Freeswitch-users] "Can not record session. Media not enabled on channel."
On Mon, Oct 26, 2009 at 12:21 AM, Maciej Aniserowicz <[hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3895104&i=0>
wrote:
Yes, I can confirm - this exact error occurs each time when I start recording before the call is answered (just after sending ORIGINATE command) - but I think that's completely understandable that media is not ready for an unanswered call. But... is there any other event that guarantees media to be ready?
Update to latest SVN and try again.
-MC
_______________________________________________ FreeSWITCH-users mailing list [hidden email]<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3895104&i=1> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
------------------------------ View this message in context: Re: [Freeswitch-users] "Can not record session. Media not enabled on channel."<http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3857858p3899478.html>
Sent from the freeswitch-users mailing list archive<http://n2.nabble.com/freeswitch-users-f2379917.html>at Nabble.com.
_______________________________________________ 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> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
-- View this message in context: http://n2.nabble.com/Can-not-record-session-Media-not-enabled-on-channel-tp3... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (3)
-
Anthony Minessale
-
Maciej Aniserowicz
-
Michael Collins