<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font size="-1"><font face="Arial">Hi all,<br>
<br>
I need to store a custom response header in CDR.<br>
Let me explain the scenario. I have a Kamailio (SIP Proxy) that
sends invite to</font></font><font size="-1"><font face="Arial">
Freeswitch (B2BUA)</font></font><font size="-1"><font
face="Arial"> for call processing (prepaid/CDR); the call is
then relayed back to kamailio for LCR (it choose the right
destination/carrier):<br>
<br>
user -> kamailio -> freeswitch -> kamailio ->
provider<br>
<br>
I can set a custom header in the reply route of kamailio
(X-Provider: 1.2.3.4) but I don't know how take this information
in freeswitch... Could </font></font>
<meta charset="utf-8">
<span style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; ">${sip_ph_X-Provider}/</span><span
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; ">${sip_rh_X-Provider}</span>/<span
style="color: rgb(0, 0, 0); font-family: Verdana, Geneva,
Helvetica, Arial, sans-serif; font-size: 13px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); display: inline !important; float: none; ">${sip_bye_X-Provider}</span>
CDR?<br>
<br>
user <- kamailio <- freeswitch <- kamailio (X-Provider)
<- provider (100 or 200 response code)<br>
<br>
<font size="-1"><font face="Arial">I want to store this information
in order to do statistics and profits tracking.<br>
<br>
<br>
Best Regards,<br>
<br>
</font></font>
</body>
</html>