sipcapture / homer-app

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

Search field value modification #500

Closed kosza closed 2 years ago

kosza commented 2 years 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 2 years ago

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

lmangani commented 2 years ago

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

kosza commented 2 years 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 2 years ago

There are no national formats in e.164

kosza commented 2 years 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 2 years ago

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

Thanks for your advice.