Vicibox from .iso | Vicidial 2.14-738a Build 200210-1628 | Asterisk 13.29.2-vici | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Dell R710 |
We are currently using 1 CID for all of our OB calls. Which is defined under Carrier Dial Plan Entry as below.
- Code: Select all
[default]
exten => _91X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91X.,n,Set(CALLERID(num)=1112223333)
exten => _91X.,n,Dial(SIP/${EXTEN:1}@carrier,60,o)
exten => _91X.,n,Hangup
Under campaign settings we have not defined any CID. "Campaign CallerID:" = 0000000000 & "Custom CallerID:" = None. "Dial Prefix" is 9 and "Manual Dial Prefix:" is Empty. Manual Outbound Dial from agent screen is working fine, Caller ID is also working.
Now, we want to set different Caller ID if number dialed with some prefix. So, I have setup a prefix under same carrier dialplan. New Dial Plan looks like below:
- Code: Select all
[default]
exten => _91X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91X.,n,Set(CALLERID(num)=1112223333)
exten => _91X.,n,Dial(SIP/${EXTEN:1}@carrier,60,o)
exten => _91X.,n,Hangup
exten => _9681X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9681X.,n,Set(CALLERID(num)=4445556666)
exten => _9681X.,n,Dial(SIP/${EXTEN:3}@carrier,60,o)
exten => _9681X.,n,Hangup
But OB call is not going through if dialed as 683109614257(68 prefix is used to set different CID for that outbound call while 3109614257 is the actually number to be dialed), giving error as below on agent screen:
https://prnt.sc/xgvvz3
DIAL ALERT:
Call Rejected: CHANUNAVAIL
Cause: 1 - Unallocated (unassigned) number.
SIP: 404 - Not Found)
CLI
- Code: Select all
[Jan 22 16:28:41] -- Called 8600058@default
[Jan 22 16:28:41] -- Executing [8600058@default:1] MeetMe("Local/8600058@default-00001eed;2", "8600058,F") in new stack
[Jan 22 16:28:41] -- Local/8600058@default-00001eed;1 answered
[Jan 22 16:28:41] -- Executing [91683109614257\@default:1] AGI("Local/8600058@default-00001eed;1", "agi://127.0.0.1:4577/call_log") in new stack
[Jan 22 16:28:41] -- AGI Script Executing Application: (EXEC) Options: (Set(_CAMPCUST=CAMP104))
[Jan 22 16:28:41] -- <Local/8600058@default-00001eed;1>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Jan 22 16:28:41] -- Executing [91683109614257@default:2] Set("Local/8600058@default-00001eed;1", "CALLERID(num)=1112223333") in new stack
[Jan 22 16:28:41] -- Executing [91683109614257@default:3] Dial("Local/8600058@default-00001eed;1", "SIP/1683109614257@carrier,60,o") in new stack
[Jan 22 16:28:41] == Using SIP RTP CoS mark 5
[Jan 22 16:28:41] -- Called SIP/1683109614257@carrier
[Jan 22 16:28:41] -- Called 58600058@default
[Jan 22 16:28:41] -- Executing [58600058@default:1] MeetMe("Local/58600058@default-00001eee;2", "8600058,Fmq") in new stack
[Jan 22 16:28:41] -- Local/58600058@default-00001eee;1 answered
[Jan 22 16:28:41] -- Executing [8309@default:1] Answer("Local/58600058@default-00001eee;1", "") in new stack
[Jan 22 16:28:41] -- Executing [8309@default:2] Monitor("Local/58600058@default-00001eee;1", "wav,20210122-162841_683109614257_8001_") in new stack
[Jan 22 16:28:41] -- Executing [8309@default:3] Wait("Local/58600058@default-00001eee;1", "3600") in new stack
[Jan 22 16:28:42] == Everyone is busy/congested at this time (1:0/0/1)
[Jan 22 16:28:42] -- Executing [91683109614257@default:4] Hangup("Local/8600058@default-00001eed;1", "") in new stack
[Jan 22 16:28:42] == Spawn extension (default, 91683109614257, 4) exited non-zero on 'Local/8600058@default-00001eed;1'
[Jan 22 16:28:42] -- Executing [h@default:1] AGI("Local/8600058@default-00001eed;1", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----1-----CHANUNAVAIL---------------SIP 404 Not Found)") in new stack
[Jan 22 16:28:42] -- <Local/8600058@default-00001eed;1>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----1-----CHANUNAVAIL---------------SIP 404 Not Found) completed, returning 0
[Jan 22 16:28:42] == Spawn extension (default, 8600058, 1) exited non-zero on 'Local/8600058@default-00001eed;2'
[Jan 22 16:28:42] WARNING[5493][C-000048bd]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
[Jan 22 16:28:42] -- Executing [h@default:1] AGI("Local/8600058@default-00001eed;2", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----1--------------------)") in new stack
[Jan 22 16:28:42] -- <Local/8600058@default-00001eed;2>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----1--------------------) completed, returning 0
From CLI I can see that [Jan 22 16:28:41] -- Called SIP/1683109614257@carrier prefix is also being called and that is the reason call is not going through. Can someone help me fix this dialplan as if the number is dialed with prefix it should set a different caller id (4445556666) and if a number is dialed without any prefix the other CID(1112223333) should be set using same carrier for that OB call or any other way we can do it.
Thanks in advance.