-1

My system contain: - Freeswitch server - Sip Client: Web using sipjs , mobile react-native using https://github.com/datso/react-native-pjsip to receive call.

My problem is when call done i need to know the uuid of CDR recently add to Postgres DB of that call to attach some info to that call

I try many way but can not success ex: write http request to select into postgres DB, but can not find exactly which uuid because one extension can make many call one time.

Can anyone help me solve this case?

QViet
  • 297
  • 5
  • 25

1 Answers1

0

Mark each call with custom variable like callid

Send that to your app via any method, as sipheader, as sip message, using http post etc.

But you also can just search cdr by start date.

arheops
  • 15,544
  • 1
  • 21
  • 27
  • how to send info to client as sipheader or sip message, i try many way but not success, thanks – QViet Aug 31 '19 at 00:03
  • https://freeswitch.org/confluence/display/FREESWITCH/Sofia+SIP+Stack#SofiaSIPStack-AddingRequestHeaders – arheops Aug 31 '19 at 11:19