sipcapture / homer-app

HOMER 7.x Front-End and API Server
http://sipcapture.io
GNU Affero General Public License v3.0
204 stars 79 forks source link

Search field value modification #500

Closed kosza closed 1 year ago

kosza commented 1 year ago

Hi,

Is there any method to modify search field value? Mapping can use script to add 'b2b_1' sting to the correlation_id. Example: I want to search a call by ruri_user in e.164: 3699123456, where 36 is the cc, 99123456 is the subscriber number. The script should modifies 3699123456 to +3699123456, 003699123456.

Thanks for your help.

github-actions[bot] commented 1 year ago

Your report is appreciated. Please star this repository to motivate its developers! :star:

lmangani commented 1 year ago

Why not just searching for %3699123456 instead of manually mapping prefixes?

kosza commented 1 year ago

Because if the customer dials with national prefix (in Hungary it is 06) the ruri will be 0699123456. This is a fortunate case, %699123456 will work but if the cc not ends digit 6 it won't.

lmangani commented 1 year ago

There are no national formats in e.164

kosza commented 1 year ago

Yes. This is why I would like to use e.164 format in search. But the ruri_user can be several types.

kosza commented 1 year ago

For my problem the % is a good solution. So I close the issue.

Thanks for your advice.