<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Verdana","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Verdana","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>I have 2 IVR scenarios, one is outbound and the other is
inbound. Those scenarios are the opposite from each other. The purpose of
having this setup is to test the IVR scenario. So, outbound IVR originate a
call to a DNIS. This DNIS is linked to the same T1 that my outbound call. When
received, the inbound call should link with my inbound IVR. But the events are
not the same from an outbound to inbound and a normal inbound. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Example of event from the outbound to inbound:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Content-Length:
1491<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Content-Type:
text/event-plain<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-State:
CS_EXECUTE<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-State-Number:
4<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Name:
OpenZAP/1%3A21/5143150566<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Unique-ID:
7d846604-0139-4b23-b538-7a71349a2416<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Call-Direction:
inbound<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Answer-State:
ringing<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Read-Codec-Name:
PCMU<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Read-Codec-Rate:
8000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Write-Codec-Name:
PCMU<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Write-Codec-Rate:
8000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Username:
OpenZAP<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Dialplan:
XML<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Caller-ID-Name:
openzap<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Caller-ID-Number:
1<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Destination-Number:
5143150566<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Unique-ID:
7d846604-0139-4b23-b538-7a71349a2416<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Source:
mod_openzap<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Context:
default<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Name:
OpenZAP/1%3A21/5143150566<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Profile-Index:
1<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Created-Time:
1213871785724672<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Answered-Time:
0<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Hangup-Time:
0<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Transfer-Time:
0<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Screen-Bit:
yes<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Privacy-Hide-Name:
no<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Privacy-Hide-Number:
no<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_read_codec:
PCMU<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_read_rate:
8000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_write_codec:
PCMU<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_write_rate:
8000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_channel_name:
OpenZAP/1%3A21/5143150566<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Application:
answer<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Application-Data:
_undef_<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Name:
CHANNEL_EXECUTE<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Core-UUID:
f240a0e0-1720-42c1-b775-c2596eabadb9<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>FreeSWITCH-Hostname:
tyan-test.ip5.local<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>FreeSWITCH-IPv4:
192.168.100.124<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>FreeSWITCH-IPv6:
127.0.0.1<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Date-Local:
2008-06-19%2006%3A36%3A25<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Date-GMT:
Thu,%2019%20Jun%202008%2010%3A36%3A25%20GMT<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Date-timestamp:
1213871785724672<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Calling-File:
switch_core_session.c<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Calling-Function:
switch_core_session_exec<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Calling-Line-Number:
1042<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal>Example of event from a normal inbound:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Content-Length:
1532<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Content-Type:
text/event-plain<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-State:
CS_EXECUTE<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-State-Number:
4<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Name:
OpenZAP/1%3A7/5143150566<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span lang=FR style='font-family:
"Courier New"'>Unique-ID: 3b4ce8bc-324a-4f5d-9460-877f79b541de<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Call-Direction:
inbound<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Answer-State:
ringing<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Read-Codec-Name:
PCMU<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Read-Codec-Rate:
8000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Write-Codec-Name:
PCMU<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Channel-Write-Codec-Rate:
8000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Username:
OpenZAP<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Dialplan:
XML<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Caller-ID-Name:
%205147884293<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Caller-ID-Number:
%205147884293<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span lang=FR style='font-family:
"Courier New"'>Caller-ANI: %205147884293<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span lang=FR style='font-family:
"Courier New"'>Caller-Destination-Number: 5143150566<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span lang=FR style='font-family:
"Courier New"'>Caller-Unique-ID: 3b4ce8bc-324a-4f5d-9460-877f79b541de<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Source:
mod_openzap<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Context:
default<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Name:
OpenZAP/1%3A7/5143150566<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Profile-Index:
1<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Created-Time:
1213871984059731<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Answered-Time:
0<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Hangup-Time:
0<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Channel-Transfer-Time:
0<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Screen-Bit:
yes<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Privacy-Hide-Name:
no<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Privacy-Hide-Number:
no<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_read_codec:
PCMU<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_read_rate:
8000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_write_codec:
PCMU<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_write_rate:
8000<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>variable_channel_name:
OpenZAP/1%3A7/5143150566<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Application:
answer<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Application-Data:
_undef_<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Name:
CHANNEL_EXECUTE<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Core-UUID:
f240a0e0-1720-42c1-b775-c2596eabadb9<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>FreeSWITCH-Hostname:
tyan-test.ip5.local<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>FreeSWITCH-IPv4:
192.168.100.124<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>FreeSWITCH-IPv6:
127.0.0.1<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Date-Local:
2008-06-19%2006%3A39%3A44<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Date-GMT:
Thu,%2019%20Jun%202008%2010%3A39%3A44%20GMT<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Date-timestamp:
1213871984059731<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Calling-File:
switch_core_session.c<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Calling-Function:
switch_core_session_exec<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Event-Calling-Line-Number:
1042<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal>This event is just an example, because it’s the same
for problem for the entire event related to connect of the inbound. <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>In the outbound to inbound call, we have this information:<o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Caller-ID-Name:
openzap<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Caller-ID-Number:
1<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span lang=FR style='font-family:
"Courier New"'>Caller-Destination-Number: 5143150566<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal>In the normal inbound call, we have this information:<o:p></o:p></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Caller-ID-Name:
%205147884293<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Caller-ID-Number:
%205147884293<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-ANI:
%205147884293<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-family:"Courier New"'>Caller-Destination-Number:
5143150566<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>
<p class=MsoNormal>Why don’t we get the same result in the outbound to
inbound call than the normal inbound call? In an outbound to inbound call,
freeswitch don’t use the information contain in the variables of the
originate command to set Caller_ID_Name, Caller_ID_Number and Caller_ANI.
Instead, freeswitch fill those variables with what is look like default value
and Caller_ANI is not even included in the event.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Thanks.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>SL<o:p></o:p></p>
</div>
</body>
</html>