Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 327854 Details for
Bug 440278
net-misc/asterisk - incorrect error in AMI ShowDialPlan application
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
asterisk-showdialplan-incorrect-error.patch
asterisk-showdialplan-incorrect-error.patch (text/plain), 1.08 KB, created by
Jaco Kroon
on 2012-10-31 08:58:20 UTC
(
hide
)
Description:
asterisk-showdialplan-incorrect-error.patch
Filename:
MIME Type:
Creator:
Jaco Kroon
Created:
2012-10-31 08:58:20 UTC
Size:
1.08 KB
patch
obsolete
>--- asterisk-1.8.15.0.o/main/pbx.c 2012-07-10 15:33:53.000000000 +0200 >+++ asterisk-1.8.15.0/main/pbx.c 2012-10-30 17:21:11.793027046 +0200 >@@ -6878,23 +6878,26 @@ > > manager_show_dialplan_helper(s, m, idtext, context, exten, &counters, NULL); > >- if (context && !counters.context_existence) { >+ if (!ast_strlen_zero(context) && !counters.context_existence) { > char errorbuf[BUFSIZ]; > > snprintf(errorbuf, sizeof(errorbuf), "Did not find context %s", context); > astman_send_error(s, m, errorbuf); > return 0; > } >- if (exten && !counters.extension_existence) { >+ if (!ast_strlen_zero(exten) && !counters.extension_existence) { > char errorbuf[BUFSIZ]; > >- if (context) >+ if (!ast_strlen_zero(context)) > snprintf(errorbuf, sizeof(errorbuf), "Did not find extension %s@%s", exten, context); > else > snprintf(errorbuf, sizeof(errorbuf), "Did not find extension %s in any context", exten); > astman_send_error(s, m, errorbuf); > return 0; > } >+ if (counters.total_items == 0) { >+ manager_dpsendack(s, m); >+ } > > astman_append(s, "Event: ShowDialPlanComplete\r\n" > "EventList: Complete\r\n"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 440278
:
327780
| 327854