Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username matching #39

Open
sinyb opened this issue Jul 30, 2019 · 0 comments
Open

Username matching #39

sinyb opened this issue Jul 30, 2019 · 0 comments

Comments

@sinyb
Copy link

sinyb commented Jul 30, 2019

Hello!

IMHO username should also match the last part of "src channel" and "dst channel". For example, I have an user/extension SIP/194, but its outside callerid is xxxX194, so its calls to the outside are not displayed. I cannot use _194 because there is other outside number xxxY194 which should not be matched.

I have fixed this by adding:
or dstchannel RLIKE '$cdr_user_name' or channel RLIKE '$cdr_user_name'
to the SQL query in index.php (in line 104)

Maybe we should have an option in config.php for this?

One other problem (I am not really a PHP nor WEB programmer) is that I dont understand how should I set '$cdr_user_name_mod' to 'asterisk-regexp', so I have just commented out 'if' line before and 'else' part after this ... Tried to set it in config.php, without success, but IMO that is the place to set it.

Thank you for a beautiful and very useful piece of software and best regards,
Sinisa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant