Hi Luis,
I did not have the boundary mark at the end of the XML body. Thanks for
that!. It still doesn't seem to do the trick though. Can I please ask you
to have a look to my scenario here and let me know if you see anything
wrong/missing?
******************************************
<send>
<![CDATA[
INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: sipp <sip:bio-client@
[local_ip]:[local_port]>;tag=[pid]SIPBIOtag00[call_number]
To: [service] <sip:[service]@[remote_ip]:[remote_port]>
Call-ID: [call_id]
CSeq: 1 INVITE
Contact: sip:bio-client@[local_ip]:[local_port]
Max-Forwards: 70
Subject: Biometric operation
Require: bioanalysis
Supported: multipayload, multibiotype
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO, UPDATE
Content-Type: multipart/alternative; boundary=biometricPayload
Content-Length: [len]
--biometricPayload
Content-type: application/sdp
v=0
o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
s=-
c=IN IP[media_ip_type] [media_ip]
t=0 0
m=audio [media_port] RTP/AVP 0
a=rtpmap:0 PCMU/8000
--biometricPayload
Content-type: application/sipbio+xml
Content-Disposition: properties-list
<?xml version="1.0" encoding="UTF-8" ?>
<sipbio xmlns="urn:ietf:params:xml:ns:sipbio">
<biometricTypes>
<entry biometricType="active" />
</biometricTypes>
<payloadTypes>
<entry payloadType="voice" />
</payloadTypes>
<payloadSources>
<entry payloadSource="uri" />
</payloadSources>
</sipbio>
</xml>
--biometricPayload-
]]>
</send>
********************************
Muchas gracias!
Wilmar
2017-11-06 7:41 GMT-05:00 Luis Rojas G. <luis.ro...@sixbell.com>:
> On 11/05/2017 08:06 PM, Wilmar Pérez via Sipp-users wrote:
>
> Hello,
>
> My comments in [BLUE]
>
> Hello all,
>
> I am trying to create a scenario with multipart body content. I keep
> noticing two things:
>
> 1. Extra "\r\n"
>
> [image: Images intégrées 1]
>
> I edited the scenario with vi on a Linux server, I can't see where those
> extra escape characters are coming from. I used dos2Unix on the file just
> in case. Is that expected?. This is part of my source:
>
> ************************************************************
> ******************
> Content-Type: multipart/mixed; boundary=biometricPayload
> Content-Length: [len]
>
> --biometricPayload
> Content-type: application/sdp
>
> Here you have the extra \r\n, with the line between "Content-type:
> application/sdp" and "v=0". it is not a problem at all though.
>
> v=0
> o=user1 53655765 2353687637 IN IP[local_ip_type] [local_ip]
> s=-
> c=IN IP[media_ip_type] [media_ip]
> t=0 0
> m=audio [media_port] RTP/AVP 0
> a=rtpmap:0 PCMU/8000
>
> --biometricPayload
> Content-type: application/sipbio+xml
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <sipbio xmlns="urn:ietf:params:xml:ns:sipbio">
> <biometricTypes>
> <entry biometricType="active" />
> </biometricTypes>
> <payloadTypes>
> <entry payloadType="voice" />
> </payloadTypes>
> <payloadSources>
> <entry payloadSource="uri" />
> </payloadSources>
> </sipbio>
> </xml>
>
> ************************************************************
> *****************
>
> 2. If I only use one of the types, it shows (although with the extra
> \r\n). However if I use both (XML and SDP) XML does not show at all.
>
>
> Didn't you add the boundary mark "--biometricPayload" at the end of the
> xml body? There should be one at the beginning of multipart body, in
> between parts, and at the end of multipart body.
>
>
> I am not sure what I am doing wrong, I basically edited the default sample
> UAC and UAS scenarios and followed this example for the multipart
> definition: https://github.com/chakrit/pjsip/blob/master/
> tests/pjsua/scripts-sipp/uas-subscribe-multipart-notify.xml
>
> Any advice is greatly appreciated.
>
> Thanks very much.
>
> Best regards,
>
> Luis
>
>
>
> Best regards,
>
>
> Wilmar
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Sipp-users mailing
> listSipp-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/sipp-users
>
>
> --
> Luis Rojas
> Software Architect
> Sixbell Nekotec Solutions
> Los Leones 1200
> Providencia
> Santiago, Chile
> Phone: (+56-2) 22001288 <+56%202%202200%201288>mailto:luis.ro...@sixbell.com
> <luis.ro...@sixbell.com>http://www.sixbell.com
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users