Hi,
We develop a recording server in our company. We have CUCM as the base for our VoIP infrastructure and another server where we will make the recording.
We have configured Call Recording profile on the CUCM to redirect calls to the recording server. We made some test and collected SIP messages . We try to get information from SIP messages but can’t find correct Caller party Number and Called party number.
Here are two scenarios :
- 1.CallerPartyNumber is 2920, CalledPartyNumber is 9075521956
SIP->Message Header->From: "Antonie Zafirov" <sip:2920@10.0.0.8;x-nearend;x-refci=53701918;x-nearenddevice=CSFANTONIEZ;x-farendrefci=53701919;x-farenddevice=10.11.11.6;x-farendaddr=9075521956>;tag=1956042~b427bb50-23c0-4412-a63b-b141ffc498d3-53701923
- CallerPartyNumber is 9075521956, CalledPartyNumber is 2920
SIP->Message Header->From: "Antonie Zafirov" <sip:2920@10.0.0.9;x-farend;x-refci=20169130;x-nearenddevice=CSFANTONIEZ;x-farendrefci=20169127;x-farenddevice=10.11.11.253;x-farendaddr=9075521956>;tag=1229629~b427bb50-23c0-4412-a63b-b141ffc498d3-20169138
This traces are taken form the recording server
In both cases field To is:
SIP->Message Header->To: sip:2776@10.0.10.253
Where 10.0.10.253 is address of recording server and 2776 is Route Pattern to the recording server
Problem is that we don’t have information how to get who initiate the call and who receives the call.
We need a suggestion how to get that information?
Which protocol/interface/api to use about that?
Maybe some example who will help us?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi Boshko,
The two INVITE messages for the two separate voice streams contain the same near-end (agent) and far-end (customer) call information. The only difference in the two From headers is the first x- parameter, which indicates whether the call stream is for the near-end voice stream or for the far-end voice stream. x-nearend indicates the near-end voice stream. x-farend indicates the far-end voice stream.
Based on the two messages you can see that the agent 2920 forks the 2 streams (the agent stream and the customer stream) to the recorder:
SIP->Message Header->From: "Antonie Zafirov" <sip:2920@10.0.0.8;x-nearend;x-refci=53701918;x-nearenddevice=CSFANTONIEZ;x-farendrefci=53701919;x-farenddevice=10.11.11.6;x-farendaddr=9075521956>;tag=1956042~b427bb50-23c0-4412-a63b-b141ffc498d3-53701923
SIP->Message Header->From: "Antonie Zafirov" <sip:2920@10.0.0.9;x-farend;x-refci=20169130;x-nearenddevice=CSFANTONIEZ;x-farendrefci=20169127;x-farenddevice=10.11.11.253;x-farendaddr=9075521956>;tag=1229629~b427bb50-23c0-4412-a63b-b141ffc498d3-20169138
However, this message will not tell you who initiated the call. I believe you have to use CTI (JTAPI or TAPI) to monitor one of the devices to see who initiated the call.
Thanks,
Adrienne
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.