react-native-pjsip icon indicating copy to clipboard operation
react-native-pjsip copied to clipboard

How to get a custom header from FreeSWITCH Server

Open Soliy0u opened this issue 6 years ago • 0 comments

I wanna send a custom header from FreeSWITCH Server to mobile or web client. I can get it for web client but I can't get it from mobile client. Can I help me, how to get it? I wanna get "sip_number" or "uuid" custom from header info. Below this my log when I make an inbound call to mobile client:

11-22 09:07:38.060 25583-25654/com.pro.sip D/PjSipLogWriter: 09:07:38.059 pjsua_core.c .RX 1682 bytes Request msg INVITE/cseq=12640437 (rdata0x7f80dedb30) from TCP 125.212.248.52:5060: INVITE sip:[email protected]:33020;transport=TCP;im-type=sip;android_token=cw_1bPKX7Gg:APA91bE8HuUTviwjSRIZkcq3RhN3l7OjYReX0oaduDFu03OM0nDujvl3xTklTcZSrrGeU-lhFqKBxlAioqy2k0wpMyweF1Esa1uQ5qiadNGlXIPNm1j4EskUUDg3eykFQRu8ajsKyv0xv-;ob SIP/2.0 Via: SIP/2.0/TCP 125.202.148.52;rport;branch=z9hG4bKX7XZ9peyHc1QQ Max-Forwards: 68 From: "0765418062" sip:0765418062@dev;tag=yZ9ac0e5879QH To: sip:[email protected]:33020;transport=TCP;im-type=sip;android_token=cw_1bPKX7Gg:APA91bE8HuUTviwjSRIZkcq3RhN3l7OjYReX0oaduDFu03OM0nDujvl3xTklTcZSrrGeU-lhFqKBxlAioqy2k0wpMyweF1E1uQ5qiadNGlXIPNm1j4EskUUDg3eykFQRu8ajsKyv0xv-;ob Call-ID: b335c256-876f-1238-76b2-005056032d4c CSeq: 12640437 INVITE Contact: sip:[email protected]:5060;transport=tcp User-Agent: FreeSWITCH Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE Supported: timer, path, replaces Allow-Events: talk, hold, conference, presence, as-feature-event, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer Content-Type: application/sdp Content-Disposition: session Content-Length: 319 sip_number: 02490990353 uuid: f2a796f9-cb90-4d58-b37c-eb4aee601ee8 X-FS-Support: update_display,send_info Remote-Party-ID: "0765418062" sip:0765418062@dev;party=calling;screen=yes;privacy=off

Soliy0u avatar Nov 22 '19 02:11 Soliy0u