Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
Mark Michelson wrote: You can work around the bug, although it's not exactly optimal. What you can do is to modify your dialplan as follows: exten = 301,n,Set(DYNAMIC_FEATURES=monkey) Couldn't you just set _DYNAMIC_FEATURES here and have it get automatically inherited to the outbound channel? exten = 301,n,Dial(SIP/DavidR1,,M(dynamic_features)) [macro-dynamic_features] exten = s,1,Set(DYNAMIC_FEATURES=monkey) -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kpflem...@digium.com Check us out at www.digium.com www.asterisk.org ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
Kevin P. Fleming wrote: Mark Michelson wrote: You can work around the bug, although it's not exactly optimal. What you can do is to modify your dialplan as follows: exten = 301,n,Set(DYNAMIC_FEATURES=monkey) Couldn't you just set _DYNAMIC_FEATURES here and have it get automatically inherited to the outbound channel? Yes, that would be another suitable workaround. I sometimes forget that you can let variables inherit like that. Mark Michelson ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
David Ruggles wrote: The patch doesn't work for me. Here's what I did: Changed to my asterisk-1.4.23.1 directory Executed the wget / patch command from the link you provided make saw that res_features.so was recompiled Moved /usr/lib/asterisk/modules/res_features.so to res_features.so.old make install Confirmed that res_features.so was recreated in /usr/lib/asterisk/modules asterisk -r -- I never shut asterisk down module unload res_features.so module load res_features.so After this there was no change, it worked using the macro but using the Set(DYN... on the caller only. Thanks, All right. Let's continue this discussion on the bug report I opened. To start with, could you upload console output from an attempt at using the dynamic feature with my patch attached? For the console output, it would help if the verbose and debug levels were both set to at least 4. That way I can hopefully see what the problem is. Thanks. Mark Michelson ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
I'm sorry, but it looks like it's working correctly now. I will update the bug if I am able to verify any problems. Thanks, David Ruggles CCNA MCSE (NT) CNA A+ Network EngineerSafe Data, Inc. (910) 285-7200 da...@safedatausa.com -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mark Michelson Sent: Friday, March 13, 2009 10:08 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4) David Ruggles wrote: The patch doesn't work for me. Here's what I did: Changed to my asterisk-1.4.23.1 directory Executed the wget / patch command from the link you provided make saw that res_features.so was recompiled Moved /usr/lib/asterisk/modules/res_features.so to res_features.so.old make install Confirmed that res_features.so was recreated in /usr/lib/asterisk/modules asterisk -r -- I never shut asterisk down module unload res_features.so module load res_features.so After this there was no change, it worked using the macro but using the Set(DYN... on the caller only. Thanks, All right. Let's continue this discussion on the bug report I opened. To start with, could you upload console output from an attempt at using the dynamic feature with my patch attached? For the console output, it would help if the verbose and debug levels were both set to at least 4. That way I can hopefully see what the problem is. Thanks. Mark Michelson ___ -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.10/1996 - Release Date: 03/13/09 05:59:00 ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
David Ruggles wrote: I'm sorry, but it looks like it's working correctly now. I will update the bug if I am able to verify any problems. Thanks, Heh, no reason to be sorry for it working :) When you say it works now, was this with or without the patch applied? Mark Michelson ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
It was with the patch applied, but after I restarted asterisk. Thanks, David Ruggles CCNA MCSE (NT) CNA A+ Network EngineerSafe Data, Inc. (910) 285-7200 da...@safedatausa.com -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mark Michelson Sent: Friday, March 13, 2009 11:04 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4) David Ruggles wrote: I'm sorry, but it looks like it's working correctly now. I will update the bug if I am able to verify any problems. Thanks, Heh, no reason to be sorry for it working :) When you say it works now, was this with or without the patch applied? Mark Michelson ___ -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.10/1996 - Release Date: 03/13/09 05:59:00 ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
David Ruggles wrote: It was with the patch applied, but after I restarted asterisk. Thanks, Fix committed to Asterisk 1.4 in revision 181990. Mark Michelson ___ -- 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
[asterisk-users] Trying to get sample applicationmap to work (*1.4)
I'm trying to actually use the example application map in features.conf: testfeature = #9,peer,Playback,tt-monkeys ;Allow both the caller and callee to play ;tt-monkeys to the opposite channel I see the feature get registered at the CLI: == Registered Feature 'monkey' == Mapping Feature 'monkey' to app 'Playback(tt-monkeys)' with code '#9' But I'm unable to actually use it. This *doesn't* work: exten = 301,n,Set(DYNAMIC_FEATURES=monkey) exten = 301,n,Dial(SIP/DavidR1) Anyone done this before and/or able to give me any suggestions? Thanks, David Ruggles CCNA MCSE (NT) CNA A+ Network EngineerSafe Data, Inc. (910) 285-7200 da...@safedatausa.com ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
David Ruggles wrote: I'm trying to actually use the example application map in features.conf: testfeature = #9,peer,Playback,tt-monkeys ;Allow both the caller and callee to play ;tt-monkeys to the opposite channel I see the feature get registered at the CLI: == Registered Feature 'monkey' == Mapping Feature 'monkey' to app 'Playback(tt-monkeys)' with code '#9' But I'm unable to actually use it. This *doesn't* work: exten = 301,n,Set(DYNAMIC_FEATURES=monkey) exten = 301,n,Dial(SIP/DavidR1) Anyone done this before and/or able to give me any suggestions? Thanks, I strongly suspect that you have fallen prey to the featuredigittimeout. Check your features.conf file for the featuredigittimeout option. By default, this is set to 500 ms. You probably want to increase this to something like 2000 ms. This option specifies the amount of time Asterisk should wait between DTMF presses when you are dialing a feature code. So in your case, I'm guessing that you pressed # but could not press 9 in time for Asterisk to recognize this input as part of the same feature. Mark Michelson ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
I don't really think that's a problem, because I'm able to use the other built in options: *1 to record; ## transfer (I changed this from a single pound) and there have been a couple times that I wouldn't hit them quickly enough. Thanks, David Ruggles CCNA MCSE (NT) CNA A+ Network EngineerSafe Data, Inc. (910) 285-7200 da...@safedatausa.com -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mark Michelson Sent: Thursday, March 12, 2009 2:10 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4) David Ruggles wrote: I'm trying to actually use the example application map in features.conf: testfeature = #9,peer,Playback,tt-monkeys ;Allow both the caller and callee to play ;tt-monkeys to the opposite channel I see the feature get registered at the CLI: == Registered Feature 'monkey' == Mapping Feature 'monkey' to app 'Playback(tt-monkeys)' with code '#9' But I'm unable to actually use it. This *doesn't* work: exten = 301,n,Set(DYNAMIC_FEATURES=monkey) exten = 301,n,Dial(SIP/DavidR1) Anyone done this before and/or able to give me any suggestions? Thanks, I strongly suspect that you have fallen prey to the featuredigittimeout. Check your features.conf file for the featuredigittimeout option. By default, this is set to 500 ms. You probably want to increase this to something like 2000 ms. This option specifies the amount of time Asterisk should wait between DTMF presses when you are dialing a feature code. So in your case, I'm guessing that you pressed # but could not press 9 in time for Asterisk to recognize this input as part of the same feature. Mark Michelson ___ -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.10/1996 - Release Date: 03/11/09 20:42:00 ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
David Ruggles wrote: I don't really think that's a problem, because I'm able to use the other built in options: *1 to record; ## transfer (I changed this from a single pound) and there have been a couple times that I wouldn't hit them quickly enough. Thanks, Ah, sorry about that. The featuredigittimeout burns so many people that it's pretty much a knee-jerk reaction on my part now to suggest that as a potential fix. To test out, I set up the same feature and gave it a try with a current subversion checkout of Asterisk 1.4. I placed a call from SIP/2001 to SIP/2000 and here's what I found. When SIP/2001 pressed #9, tt-monkeys played on SIP/2000's channel When SIP/2000 pressed #9, nothing happened. I tried modifying the features.conf line to have peer/callee instead of just peer and that caused neither side to successfully use the dynamic feature. There appears to be a bug which does not allow for the callee to use dynamic features. The problem appears to be that when DTMF is pressed, we try to interpret the presses to determine if there is a corresponding feature. The DYNAMIC_FEATURES variable has been set on the caller's channel, but has not been set on the callee's channel. As a result, we don't properly read the value of the DYNAMIC_FEATURES variable if the callee is the one to press DTMF. You can work around the bug, although it's not exactly optimal. What you can do is to modify your dialplan as follows: exten = 301,n,Set(DYNAMIC_FEATURES=monkey) exten = 301,n,Dial(SIP/DavidR1,,M(dynamic_features)) [macro-dynamic_features] exten = s,1,Set(DYNAMIC_FEATURES=monkey) By doing this, the dynamic_features macro will be called on SIP/DavidR1 when he answers. This will allow for the DYNAMIC_FEATURES variable to be set on both channels so both sides can use the feature you have set. This is a bug, and so there needs to be action to fix it correctly. What I've suggested is just a workaround, but it should get you through your problem for now. Mark Michelson ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
Wow! Thanks! That's a very clear answer and completely understandable. Is this something I should open a bug report on? Thanks, David Ruggles CCNA MCSE (NT) CNA A+ Network EngineerSafe Data, Inc. (910) 285-7200 da...@safedatausa.com -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mark Michelson Sent: Thursday, March 12, 2009 7:55 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4) David Ruggles wrote: I don't really think that's a problem, because I'm able to use the other built in options: *1 to record; ## transfer (I changed this from a single pound) and there have been a couple times that I wouldn't hit them quickly enough. Thanks, Ah, sorry about that. The featuredigittimeout burns so many people that it's pretty much a knee-jerk reaction on my part now to suggest that as a potential fix. To test out, I set up the same feature and gave it a try with a current subversion checkout of Asterisk 1.4. I placed a call from SIP/2001 to SIP/2000 and here's what I found. When SIP/2001 pressed #9, tt-monkeys played on SIP/2000's channel When SIP/2000 pressed #9, nothing happened. I tried modifying the features.conf line to have peer/callee instead of just peer and that caused neither side to successfully use the dynamic feature. There appears to be a bug which does not allow for the callee to use dynamic features. The problem appears to be that when DTMF is pressed, we try to interpret the presses to determine if there is a corresponding feature. The DYNAMIC_FEATURES variable has been set on the caller's channel, but has not been set on the callee's channel. As a result, we don't properly read the value of the DYNAMIC_FEATURES variable if the callee is the one to press DTMF. You can work around the bug, although it's not exactly optimal. What you can do is to modify your dialplan as follows: exten = 301,n,Set(DYNAMIC_FEATURES=monkey) exten = 301,n,Dial(SIP/DavidR1,,M(dynamic_features)) [macro-dynamic_features] exten = s,1,Set(DYNAMIC_FEATURES=monkey) By doing this, the dynamic_features macro will be called on SIP/DavidR1 when he answers. This will allow for the DYNAMIC_FEATURES variable to be set on both channels so both sides can use the feature you have set. This is a bug, and so there needs to be action to fix it correctly. What I've suggested is just a workaround, but it should get you through your problem for now. Mark Michelson ___ -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.10/1996 - Release Date: 03/12/09 10:38:00 ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
David Ruggles wrote: Wow! Thanks! That's a very clear answer and completely understandable. Is this something I should open a bug report on? Thanks, Nope, I've already got that taken care of. http://bugs.digium.com/view.php?id=14657 There's a patch there that I have tested and it works for me (TM). See if it works out for you, too. Mark Michelson ___ -- 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
Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4)
The patch doesn't work for me. Here's what I did: Changed to my asterisk-1.4.23.1 directory Executed the wget / patch command from the link you provided make saw that res_features.so was recompiled Moved /usr/lib/asterisk/modules/res_features.so to res_features.so.old make install Confirmed that res_features.so was recreated in /usr/lib/asterisk/modules asterisk -r -- I never shut asterisk down module unload res_features.so module load res_features.so After this there was no change, it worked using the macro but using the Set(DYN... on the caller only. Thanks, David Ruggles CCNA MCSE (NT) CNA A+ Network EngineerSafe Data, Inc. (910) 285-7200 da...@safedatausa.com -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mark Michelson Sent: Thursday, March 12, 2009 8:25 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Trying to get sample applicationmap to work (*1.4) David Ruggles wrote: Wow! Thanks! That's a very clear answer and completely understandable. Is this something I should open a bug report on? Thanks, Nope, I've already got that taken care of. http://bugs.digium.com/view.php?id=14657 There's a patch there that I have tested and it works for me (TM). See if it works out for you, too. Mark Michelson ___ -- 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 No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.10/1996 - Release Date: 03/12/09 10:38:00 ___ -- 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