mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
handle missing callerId property for anonymous calls
This commit is contained in:
@@ -470,7 +470,7 @@ class TaskDial extends Task {
|
||||
* check if number matches any existing numbers
|
||||
* */
|
||||
if (t.type === 'phone' && !t.trunk) {
|
||||
const str = this.callerId || req.callingNumber;
|
||||
const str = this.callerId || req.callingNumber || '';
|
||||
const callingNumber = str.startsWith('+') ? str.substring(1) : str;
|
||||
const voip_carrier_sid = await lookupCarrierByPhoneNumber(req.body.account_sid, callingNumber);
|
||||
this.logger.info(
|
||||
|
||||
Reference in New Issue
Block a user