Callerid for voicemail call back (option 5)

Status
Not open for further replies.

MTR

Member
Oct 25, 2017
181
9
18
45
HI, when returning a call from Voicemail by using the DTMF 5 the system will send for the outbound callerID the number that called into the Voicemail so if i call in from my cell phone to the VM system and then press 5 , the reciver will see my cell phone number, i really want him to see my office number i looke at the LUA script and this is what i see there


function return_call(destination)
if (session:ready()) then
--clear the dtmf
dtmf_digits = '';
--flush dtmf digits from the input buffer
session:flushDigits();
--transfer the call
session:transfer(destination, "XML", context);
end
end


can someone help me to guide me what context is doing so i can figure out how to fix the callerID
 

ad5ou

Active Member
Jun 12, 2018
884
195
43
Changing “default caller Id” in the dialplan to a static number instead of using he default variables should do the trick.
 

MTR

Member
Oct 25, 2017
181
9
18
45
This might now work, since some Ext do need a different callerID
 

ad5ou

Active Member
Jun 12, 2018
884
195
43
If you set ${default_outbound_caller_id_number} to a "main number" in the Variables dialplan, it should allow extensions with "outboud_caller_id_number" set to still pass the correct number.
 

MTR

Member
Oct 25, 2017
181
9
18
45
i edit it the Variable dial plan i put in the following

action > export > default_outbound_caller_id_number = 7185551212


its not working am i doing something wrong?
 

ad5ou

Active Member
Jun 12, 2018
884
195
43
Pretty sure it just needs action "set" but that should be all that is needed. Probably need to to look at the logs to see what is happening
 

agree

Member
Aug 26, 2018
135
24
18
i edit it the Variable dial plan i put in the following

action > export > default_outbound_caller_id_number = 7185551212


its not working am i doing something wrong?
You need to set inline to true
 
Status
Not open for further replies.