DoubangoTelecom / imsdroid

High Quality Video SIP/IMS client for Google Android
https://doubango.org
Other
294 stars 168 forks source link

I want some Parameters! #629

Open Zvirtuey opened 4 years ago

Zvirtuey commented 4 years ago

I want to get these parameters through the code, where can I get them? like:Via,contact....

REGISTER sip:xxx@xxx.net SIP/2.0 Via: SIP/2.0/UDP 192.168.1.6:50922;branch=z9hG4bK765403782;rport From: sip:xxx@xxx.net;tag=1950918395 To: sip:xxx@xxx.net Contact: sip:xxx@xx.xx.xx.xx:50922;transport=udp;+g.oma.sip-im;language="en,fr" Call-ID: c78ebb1a-9279-32e0-3372-11222dd69eba CSeq: 2054049193 REGISTER Expires: 600000 Content-Length: 0 Max-Forwards: 70 Route: <sip:xxx.net:5080;lr;transport=udp> Event: reg Accept: application/reginfo+xml Allow-Events: refer, presence, presence.winfo, xcap-diff, conference Allow: INVITE, ACK, CANCEL, BYE, MESSAGE, OPTIONS, NOTIFY, PRACK, UPDATE, REFER Privacy: none P-Access-Network-Info: ADSL;utran-cell-id-3gpp=00000000 User-Agent: IM-client/OMA1.0 IMSDroid/v1.2.348 (doubango r538) P-Preferred-Identity: sip:xxx@xxx.net

SamarthaKV29 commented 4 years ago

check SipService, NativeService and other such services, Mainly the NgnStack should contain some helpers for you. If these are not inside the application, then you might be out of luck as you may need to download and compile the source of Doubango Library to access the code and enter log messages to get them,. .. If you are seeing them under the Log tag "DOUBANGO INFO: " then rest assured they are coming from the JNI library and if you don't find any helper methods. Then you have to look in the Doubango C/C++ sources of modules like tinyDAV, tinySIP etc.