I'm working on Switzerland for both outbound and inbound, everything works fine except for the inbound the lead shows as empty.
The leads are inserted without prefix (for a number like +41 79 xxx xx xx we insert it as 79xxxxxxx)
Now the provider sends the number as 4179xxxxxxx and when the incoming call enters it shows an empty lead (only the number is shown as 4179xxxxxxx), which means when the CRM searches for the lead by the number it gets nothing as it searches with the "41" so no match, then lead not found, and instead, creates a new empty lead in the list 999.
Now when I use "Clean CID Number" = R9 it strips the prefix and shows the number as it should be (79xxxxxxx), but still not finding the corresponding lead.
I tried to change the "phone code" in "vicidial_list" to 41, then empty then back to 1 (default) and still not working.
I tried with a dial plan:
- Code: Select all
exten => _41.,1,Ringing
exten => _41.,2,Wait(1)
exten => _41.,3,Answer
exten => _41.,4,AGI(agi://127.0.0.1:4577/call_log)
exten => _41.,5,AGI(agi-DID_route.agi)
exten => _41.,6,Dial(sip/41${EXTEN:2}@MYPROVIDER,,Tto)
exten => _41.,7,Hangup
Tried everything and still not finding the corresponding lead for the incoming call.
Maybe the only way to fix it is to append 41 to every phone number in vicidial_list but this will be a huge mess as we have to change our whole ecosystem.
Is there a way to let the leads as they are and do some workaround to match the incoming numbers with their leads?
Thanks in advance.