Hi I have a problem with Asterisk-1.6.0.3-rc1 and manager API. I want to dial out from manager's console and with Asterisk 1.4.X this settings were OK. Action: Originate Channel: SIP/384 Context: main Exten: 102 Priority: 1 Callerid: 384 I could dial out, but with asterisk 1.6 I get this error. Response: Error Message: Channel not specified I have originate and system privilege in managers.conf. Does anyone know the solution for this kind of error. Cheers Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081229/ad112ef6/attachment.htm
I had the same problem, I think with that version. You need to use a more current rc version. I think I am using rc2 but rc3 has been released as I recall. -- Jim Dickenson mailto:dickenson at cfmc.com CfMC http://www.cfmc.com/ From: Andrew Nowrot <andrew.nowrot at gmail.com> Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Date: Mon, 29 Dec 2008 16:10:23 +0100 To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: [asterisk-users] Manager API Hi I have a problem with Asterisk-1.6.0.3-rc1 and manager API. I want to dial out from manager's console and with Asterisk 1.4.X this settings were OK. Action: Originate Channel: SIP/384 Context: main Exten: 102 Priority: 1 Callerid: 384 I could dial out, but with asterisk 1.6 I get this error. Response: Error Message: Channel not specified I have originate and system privilege in managers.conf. Does anyone know the solution for this kind of error. Cheers Andrew _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081229/a99165c9/attachment.htm
hi that is a bug in manager.c where saysstatic int action_timeout(struct mansession *s, const struct message *m) { struct ast_channel *c; const char *name = astman_get_header(m, "Channel"); int timeout = atoi(astman_get_header(m, "Timeout")); if (!ast_strlen_zero(name)) { astman_send_error(s, m, "No channel specified"); return 0; } should say static int action_timeout(struct mansession *s, const struct message *m) { struct ast_channel *c; const char *name = astman_get_header(m, "Channel"); int timeout = atoi(astman_get_header(m, "Timeout")); if (ast_strlen_zero(name)) { astman_send_error(s, m, "No channel specified"); return 0; } 2008/12/29 Andrew Nowrot <andrew.nowrot at gmail.com>> Hi > > I have a problem with Asterisk-1.6.0.3-rc1 and manager API. I want to dial > out from manager's console and with Asterisk 1.4.X this settings were OK. > > Action: Originate > Channel: SIP/384 > Context: main > Exten: 102 > Priority: 1 > Callerid: 384 > > I could dial out, but with asterisk 1.6 I get this error. > > Response: Error > Message: Channel not specified > > I have originate and system privilege in managers.conf. > > Does anyone know the solution for this kind of error. > > Cheers > Andrew > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >hi that is a bug in manager.c where saysstatic int action_timeout(struct mansession *s, const struct message *m) { struct ast_channel *c; const char *name = astman_get_header(m, "Channel"); int timeout = atoi(astman_get_header(m, "Timeout")); if (!ast_strlen_zero(name)) { astman_send_error(s, m, "No channel specified"); return 0; } should say static int action_timeout(struct mansession *s, const struct message *m) { struct ast_channel *c; const char *name = astman_get_header(m, "Channel"); int timeout = atoi(astman_get_header(m, "Timeout")); if (ast_strlen_zero(name)) { astman_send_error(s, m, "No channel specified"); return 0; } PD; Double posting strikes again. -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081229/85038ac0/attachment.htm
Hi Thanks for so fast reply, but I already have this part like this: static int action_timeout(struct mansession *s, const struct message *m) { struct ast_channel *c; const char *name = astman_get_header(m, "Channel"); int timeout = atoi(astman_get_header(m, "Timeout")); if (ast_strlen_zero(name)) { astman_send_error(s, m, "No channel specified"); return 0; } no negation in 7th line. So I guest it is not the case. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081229/03ab450e/attachment.htm