Summary: | ASTERISK-17361: SoftHangup not effective on 1.8.2.3 | ||
Reporter: | Jeremy Kister (jkister) | Labels: | |
Date Opened: | 2011-02-07 09:45:11.000-0600 | Date Closed: | 2011-06-07 14:00:56 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Applications/app_softhangup |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I am trying to use SoftHangup in my dialplan, but it's either not working or I'm not using it correctly. when i'm on the console, i see: pbx1*CLI> core show channels Channel Location State Application(Data) SIP/vgw1-000000a2 2156181505@inbound:1 Up AppDial((Outgoing Line)) SIP/143-0000009f s@macro-SaferSIPDial Up Dial(SIP/99302156181505@vgw1,, 2 active channels 1 active call 194 calls processed pbx1*CLI> in my dialplan, i have: exten => s,1,Set(CHAN=${SHELL(asterisk -rx "core show channels" | awk '/^SIP\/vgw1-/ { print $1 }' | head -1)}) exten => s,n,SoftHangup(${CHAN}) exten => s,n,Wait(2) When I dial the extension to invoke the above dialplan code, the console shows: -- Executing [s@nineoneone:10] SoftHangup("SIP/111-000000a3", "SIP/vgw1-000000a2") in new stack but the SIP/vgw1-000000a2 is still active. If I use 'channel request hangup SIP/vgw1-000000a2', the call is dropped instantly. ****** ADDITIONAL INFORMATION ****** no one on asterisk-users confirmed or denied my inquiry about this issue on 2011.02.04. | ||
Comments: | By: Leif Madsen (lmadsen) 2011-02-07 10:59:46.000-0600 Could you provide a console output of this happening with debug level logging enabled? (core set verbose 10, core set debug 10). Perhaps it'll show us some extra information about why that is not working. Thanks! By: Jeremy Kister (jkister) 2011-02-07 11:27:30.000-0600 ends up a newline character was getting inside my ${CHAN}. appending " | tr -d '\n'" to my shell command fixed the problem. sorry for the noise, please close. By: Leif Madsen (lmadsen) 2011-02-10 13:15:39.000-0600 Closed per the reporter. Thanks for the follow up! |