How to retrieve sip fields in IraTapProxy

1. Set the header in iratapproxy.json
Ex: Adding User-to-User sip header in iratapproxy.json
"sip_fields":[
       {
       "sip_field":"X-agent_id",
       "var_name":"agent_id"
       },
       {
       "sip_field":"X-queue_id",
       "var_name":"queue_id"
       },
       {
       "sip_field":"User-to-User",
       "var_name":"user_to_user"
       }
   ]

2. Restart iratapproxy service.

3. Make some test calls and check the iratap_api_events.log, you must get the sip header in the call headers of the answered event.

4. Also you can check the sip-internal-message.log, where you will find the sip-header in the Cust-Header which will be base64 encoded.