lyx2014 / imsdroid

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

I want to send INVITE message with some payload.How to implement it? #180

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I want to send INVITE message with some payload.
2.However,callMsrp(string remoteUri,ActionConfig actionconfig) method cannot 
take payload.
3.How to implement it?

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

What version of the product are you using? On what operating system?
IMSDroid 1.2.366   Android 2.2

Please provide any additional information below.
This is an example.

INVITE sip:list-service@ims.chinamobile.com SIP/2.0
Via: SIP/2.0/UDP 172.30.97.12;branch=z9hG4bK1653873684
From: <sip:491721092719@ims.chinamobile.com>;tag=11248218
To: <sip:list-service@ims.chinamobile.com>
Call-ID: 3203668353@172.30.97.12
CSeq: 1 INVITE
Contact: <sip:172.30.97.12>;+g.oma.sip-im
Route: <sip:172.30.40.70:5060;transport=udp;lr>
Max-Forwards: 70
P-Access-Network-Info: 3GPP-GERAN;cgi-3gpp=11201003f000a
Content-Length: 959
P-Preferred-Identity: sip:491721092719@ims.chinamobile.com
Allow: INVITE,OPTIONS,BYE,CANCEL,ACK,SUBSCRIBE,NOTIFY,PUBLISH,MESSAGE,REFER
Accept-Contact: *;+g.oma.sip-im
User-Agent: SEMC_IMS_R3
Session-Expires: 3600;refresher=uac
Supported: timer
Subject: hello
Require: recipient-list-invite;pref
Content-Type: multipart/mixed;boundary=12341234

--12341234
Content-Type: application/resource-lists+xml
Content-Disposition: recipient-list
Content-Length: 318

<?xml version="1.0" encoding="UTF-8"?>
<resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists">
<list><entry 
uri="tel:+491721092912;method=INVITE?Replaces:2980923849@172.30.97.12;to-tag=fya
fj8nusdf;from-tag=12272340943"/>
<entry uri="tel:+491721092913/>
</list></resource-lists>
--12341234
Content-Type: application/sdp
Content-Length: 439
v=0
o=- 1250089505 1250089505 IN IP4 172.30.97.12
s=none
c=IN IP4 172.30.97.12
t=0 0
m=message 4329 TCP/MSRP *
a=accept-types:message/cpim;text/plain;charset=UTF-8;application/im-iscomposing+
xml;image/png;image/x-png;image/jpeg;image/gif;audio/mpeg;audio/x-mpeg;x-music/x
-midi;audio/wav;audio/x-wav;video/3gpp;video/mp4
a=path:msrp://172.30.97.12:4329/3904829551;tcp
a=sendrecv
a=max-size:51400
a=setup:active
a=connection:new
--12341234---

Original issue reported on code.google.com by Splash.P...@gmail.com on 14 Feb 2011 at 3:43

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 20 Feb 2011 at 3:04

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 20 Feb 2011 at 3:05

GoogleCodeExporter commented 9 years ago
Even I am looking for a way to do this. It would be really helpful to just send 
a message with some payload without any of the fancy UI stuff.

Original comment by kow...@gmail.com on 25 Feb 2011 at 7:07

GoogleCodeExporter commented 9 years ago
Dear all,

I am working with Imsdroid. 
I fogot same problem with issue 281 
(https://code.google.com/p/imsdroid/issues/detail?id=281), after receive 200 
OK, sender not send msrp message. You fixed it? I using Imsdroid v2.0 last and 
doubango 2.0 last.
Please help me.

Original comment by mr.kun...@gmail.com on 5 Sep 2014 at 9:47