Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo in setting original_caller_id_number #320

Merged
merged 1 commit into from Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions freeswitch/scripts/astpp/scripts/astpp.xml.lua
Expand Up @@ -102,7 +102,7 @@ function freeswitch_xml_header(xml,destination_number,accountcode,maxlength,call
table.insert(xml, [[<action application="set" data="original_caller_id_name=]]..callerid_array['original_cid_name']..[["/>]]);
end
if (callerid_array['cid_number'] ~= '' and callerid_array['cid_number'] ~= '<null>') then
table.insert(xml, [[<action application="set" data="original_caller_id_number=]]..callerid_array['original_cid_name']..[["/>]]);
table.insert(xml, [[<action application="set" data="original_caller_id_number=]]..callerid_array['cid_number']..[["/>]]);
end

return xml
Expand Down Expand Up @@ -446,7 +446,7 @@ function error_xml_without_cdr(destination_number,error_code,calltype,playback_a
table.insert(xml, [[<action application="set" data="original_caller_id_name=]]..callerid_array['original_cid_name']..[["/>]]);
end
if (callerid_array['cid_number'] ~= '' and callerid_array['cid_number'] ~= '<null>') then
table.insert(xml, [[<action application="set" data="original_caller_id_number=]]..callerid_array['original_cid_name']..[["/>]]);
table.insert(xml, [[<action application="set" data="original_caller_id_number=]]..callerid_array['cid_number']..[["/>]]);
end

table.insert(xml, [[<action application="set" data="error_cdr=1"/>]]);
Expand Down