Summary: | ASTERISK-03939: [patch] No hangup in exten h | ||
Reporter: | Clod Patry (junky) | Labels: | |
Date Opened: | 2005-04-14 12:00:28 | Date Closed: | 2008-01-15 15:31:42.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) hangup_exten_h.txt | |
Description: | This is a request of ManxPower. He wants a notice when a user hangup in extension h. That's the patch. This is a small example: in dialplan: exten => 5641,1,SayDigits(123); exten => 5642,1,SayDigits(456); exten => 5642,2,Hangup(); exten => h,1,SayNumber(99); exten => h,2,Hangup(); CLI's output: -- Executing SayDigits("SIP/154-6abe", "123") in new stack -- Playing 'digits/1' (language 'en') -- Playing 'digits/2' (language 'en') -- Playing 'digits/3' (language 'en') Apr 14 12:58:35 WARNING[23484]: pbx.c:2389 ast_pbx_run: Timeout, but no rule 't' in context 'test_sip' -- Executing SayNumber("SIP/154-6abe", "99") in new stack -- Playing 'digits/90' (language 'en') -- Playing 'digits/9' (language 'en') -- Executing Hangup("SIP/154-6abe", "") in new stack Apr 14 12:58:37 NOTICE[23484]: pbx.c:5328 pbx_builtin_hangup: DON'T HANGUP IN exten => h == Spawn extension (test_sip, h, 2) exited non-zero on 'SIP/154-6abe' ****** ADDITIONAL INFORMATION ****** Disclaimer on patch. More info can be found on: http://lists.digium.com/pipermail/asterisk-dev/2005-April/011166.html | ||
Comments: | By: Brian West (bkw918) 2005-04-14 12:03:54 This is pointless... While we are at it lets remove goto since you can do stupid stuff with it too... /b edited on: 04-14-05 12:15 By: Russell Bryant (russell) 2005-04-14 12:11:29 karma++ for constructive criticism! By: Mark Spencer (markster) 2005-04-15 01:07:05 Is there anything negative that happens if you run "Hangup" within the 'h' extension? By: Mark Spencer (markster) 2005-04-15 01:24:44 Added a warning to not use _. when you use it in extensions.conf By: Russell Bryant (russell) 2005-04-15 01:53:23 added to 1.0 as well By: Digium Subversion (svnbot) 2008-01-15 15:31:42.000-0600 Repository: asterisk Revision: 5471 U trunk/pbx/pbx_config.c ------------------------------------------------------------------------ r5471 | markster | 2008-01-15 15:31:41 -0600 (Tue, 15 Jan 2008) | 2 lines Add warning for _. match (bug ASTERISK-3939) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=5471 By: Digium Subversion (svnbot) 2008-01-15 15:31:42.000-0600 Repository: asterisk Revision: 5472 U branches/v1-0/pbx/pbx_config.c ------------------------------------------------------------------------ r5472 | russell | 2008-01-15 15:31:42 -0600 (Tue, 15 Jan 2008) | 2 lines add warning if you try to use the _. exten (bug ASTERISK-3939) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=5472 |