Hello,

I think the patch below may save the address to origin.conn.

btw, I am not sure what you need the origin address for, if you just 
want to replace the media and stream connection address.

Stefan

Index: AmSdp.cpp
===================================================================
--- AmSdp.cpp   (revision 34031)
+++ AmSdp.cpp   (working copy)
@@ -933,8 +933,7 @@
             origin_st = UNICAST_ADDR;
             break;
           }
-         string user(origin_line, int(next-origin_line)-1);
-         origin.user = user;
+         origin.user.assign(origin_line, int(next-origin_line)-1);
           origin_line = next;
           origin_st = ID;
           break;
@@ -998,10 +997,10 @@
           next = parse_until(origin_line, ' ');
           //check if line contains more values than allowed
           if(next > line_end){
-           string unicast_addr(origin_line, int(line_end-origin_line)-1);
+           origin.conn.address.assign(origin_line,
int(line_end-origin_line)-1);
           }else{
             DBG("parse_sdp_origin: 'o=' contains more values than
allowed; these values will be ignored\n");
-           string unicast_addr(origin_line, int(next-origin_line)-1);
+           origin.conn.address.assign(origin_line,
int(next-origin_line)-1);
           }
           parsing = 0;
           break;


o Helmut Kuper [06/16/08 16:27]:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello,
> 
> I' m not able to find originator's address in
> 
> sdp->origin.conn.address
> 
> after sdp parsing.
> 
> My SDP contains:
> 
> o=bell 949943 949943 IN IP4 80.228.245.97
> 
> sdp->origin.user has "bell" after parsing
> 
> In debugmode there is no hint about a parsing error with originator line
> 
> 
> regards
> helmut
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkhWeG0ACgkQ4tZeNddg3dwnSQCglosFJceEMTa6oyOk2GdCzsvy
> RR4An3rX0hJKx6i6I+AsGo2TO3ViIgDf
> =PP1j
> -----END PGP SIGNATURE-----
> _______________________________________________
> Sems mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/sems

-- 
Stefan Sayer
VoIP Services

[EMAIL PROTECTED]
www.iptego.com

iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to