[asterisk-bugs] [JIRA] (ASTERISK-20639) Dynamic hints are not properly initialized when the extension contains an underscore.

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Nov 6 17:35:21 CST 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-20639:
------------------------------------

    Assignee: Steven T. Wheeler
      Status: Waiting for Feedback  (was: Triage)

I didn't even realize you could use '_' in an extension name...   Your dialplan pattern doesn't appear to account for the '_' character. Let us know how fixing that affects it.

Does it behave the same if you make an explicit extension rather than a pattern match for a hint with an underscore in the name (even if you still pull it from the database)?

Can you provide a VERBOSE and DEBUG log set to at least 5 captured during the time the hint is being pulled?

Can you also provide the READ_BLF_PHONE_LIST() function code so we can better understand what is going on inside there?
                
> Dynamic hints are not properly initialized when the extension contains an underscore.
> -------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20639
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20639
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Configuration, Functions/func_odbc
>    Affects Versions: 1.8.14.1
>            Reporter: Steven T. Wheeler
>            Assignee: Steven T. Wheeler
>
> We use dynamic hints with a func_odbc call to load the hints from a database.  However, when the extension contains an underscore the func_odbc call is not evaluated.
> Our hint context:
> {code}
> [blf]
> exten => _[+A-Za-z0-9*#].,hint,${READ_BLF_PHONE_LIST(${EXTEN})}
> {code}
> When we look up the hint for extension johnDoe we get something like:
> Hint: SIP/phoneA&SIP/phoneB
> But when we look up the hint for extension john_doe we get:
> Hint: ${READ_BLF_PHONE_LIST(${EXTEN})}
> As you can see the variables are not even being evaluated.  If there is any more information you need to debug this please let me know.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list