rambabugithub / doubango

Automatically exported from code.google.com/p/doubango
0 stars 0 forks source link

imsdroid sends Register request to ims servers then on receving service -route header in 200 OK it stores in(self)->service_routes nut the self is of type (tsip_dialog_register_t) then how should I add this value in the route header of the invite Request #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by ajithks...@gmail.com on 1 Feb 2012 at 1:56

GoogleCodeExporter commented 9 years ago
This is automatically handled by the stack: The Service-Route values will be 
added in the initial INVITE, SUBSCRIBE, ....
Also, the values of the service route are not stored in 
"tsip_dialog_register_t" but in "tsip_stack_t". We use 
"TSIP_DIALOG_GET_STACK(self)->service_routes" to store the routes. Because the 
stack is shared between all dialogs, we can add the Service-Routes to the 
INVITE: 
http://code.google.com/p/doubango/source/browse/branches/2.0/doubango/tinySIP/sr
c/dialogs/tsip_dialog.c#362

Original comment by boss...@yahoo.fr on 1 Feb 2012 at 11:09

GoogleCodeExporter commented 9 years ago
hi ,

Thanks for the quick resposne and for the explanation I will try and let you 
know 

Original comment by ajithks...@gmail.com on 2 Feb 2012 at 2:07

GoogleCodeExporter commented 9 years ago
hi,
as you said its working but it adds only till semicolon 

Service-Route: <sip:10.76.205.240:5080;lr;SCSCFMO-1>;X-ST-CID-1=20004
Route: <sip:10.76.205.240:5080;lr;SCSCFMO-1>

I mean if this is the 200 ok response for register

SIP/2.0 200 OK

Via: SIP/2.0/UDP 10.0.2.15:58062;branch=z9hG4bK1913735186;rport

From: <sip:johndoe@doubango.org>;tag=1922545539

To: <sip:johndoe@doubango.org>;tag=2222

Call-ID: 126328ef-deca-5766-4318-dfdf97fc6176

CSeq: 127908667 REGISTER

Contact: sip:user2@10.76.205.240:5060;transport=UDP

P-Associated-URI: <tel:+234567>

P-Associated-URI: <sip:userB6@192.158.13.11>

Path: <sip:192.158.3.10:20602;lr;PCSCFMT-1;X-ST-CID-1=20002>

Service-Route: <sip:10.76.205.240:5080;lr;SCSCFMO-1>;X-ST-CID-1=20004

The invite request has 

INVITE sip:888@doubango.org SIP/2.0

Via: SIP/2.0/UDP 10.0.2.15:58062;branch=z9hG4bK1208963129;rport

From: <sip:johndoe@doubango.org>;tag=369404908

To: <sip:888@doubango.org>

Contact: 
<sip:johndoe@10.0.2.15:58062;transport=udp>;+g.oma.sip-im;language="en,fr";+g.3g
pp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel"

Call-ID: cdbaeeae-f998-4daf-3414-465c6f217320

CSeq: 1032260334 INVITE

Content-Type: application/sdp

Content-Length: 223

Max-Forwards: 70

Route: <sip:10.76.205.240:5060;lr;transport=udp>

Route: <sip:10.76.205.240:5080;lr;SCSCFMO-1>

Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel"

P-Preferred-Service: urn:urn-7:3gpp-service.ims.icsi.mmtel

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 android-ngn-stack/v2.0.453 (doubango r653)

P-Preferred-Identity: <tel:+234567>

Supported: 100rel,from-change

Require: precondition

Supported: precondition

Original comment by ajithks...@gmail.com on 2 Feb 2012 at 7:02