[Freeswitch-users] xml_cdr problem using sip_from_user

Jason Holden jasonh at thinksimplicity.com
Wed Jun 29 16:00:21 UTC 2022


All,

Currently using fs 1.8.56 on a demo unit.

I’ve noticed that on some CDRS the sip_from_user shows the dialed number that the extension placed when it should show the extension number.

This is a speratic issue and I can’t narrow down why this may be happening.

I am using a php script to post my CDRS.

Does anyone have any suggestions?

I do have set to record a / b legs of the call and to prefix the a leg.

A snippit from the php script is below.

 
                $var = $cdr->variables;

                $sql = sprintf("INSERT INTO cdrClients (site_code,npa,call_direction,cac_call_type_id,call_uuid,direction,user,domain,from_user,from_host,to_user,to_host,req_user,req_host,bridge_channel,sip_term_status,sip_term_cause,sip_hangup_disposition,bridge_hangup_cause,hangup_cause,hangup_cause_q850,start_stamp,answer_stamp,end_stamp,duration,billsec)

                VALUES('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s');",

                $var->site,$var->NPA,$var->call_direction,$var->cac_call_type_id,$var->call_uuid,$var->direction,$var->user_name,$var->domain_name,$var->sip_from_user,$var->sip_from_host,$var->sip_to_user,$var->sip_to_host,$var->sip_req_user,$var->sip_req_host,rawurldecode($var->bridge_channel),$var->sip_term_status,$var->sip_term_cause,$var->sip_hangup_disposition,$var->bridge_hangup_cause,$var->hangup_cause,$var->hangup_cause_q850,rawurldecode($var->start_stamp),rawurldecode($var->answer_stamp),rawurldecode($var->end_stamp),$var->duration,$var->billsec);

 
 
Jason Holden

 
Phone: 1-866-836-9198 X405

Direct: 7868009949

www.thinksimplicity.com <http://www.thinksimplicity.com> 

 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220629/d563c662/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 1004 bytes
Desc: not available
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20220629/d563c662/attachment.jpg>


More information about the FreeSWITCH-users mailing list