< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
hi,I modified basicRegister.cxx in the following way:NameAddr default_from("sip:9910000900@xxxxxxxxxxxxxx");clientDum.getMasterProfile()->setDefaultFrom(default_from);profile->setDigestCredential(default_from.uri().host(),default_from.uri().user(),"pasword");
SharedPtr<SipMessage> regMessage = clientDum.makeRegistration(default_from);NameAddr contact;regMessage->header(h_To).uri() = Uri("sip:9910000900@xxxxxxxxxxxxxx");clientDum.send( regMessage );I executed the test program and captured the pcap found 400 bad request:REGISTER sip:vz.mavenir.lab SIP/2.0Via: SIP/2.0/UDP 10.1.62.104:44746;branch=z9hG4bK-524287-1---16243f5a3d6aec7d;rportMax-Forwards: 70Contact: <sip:9910000900@10.1.62.104:44746;rinstance=1d69d0cbd64f4a87>To: <sip:9910000900@xxxxxxxxxxxxxx>From: <sip:9910000900@xxxxxxxxxxxxxx>;tag=af23ca04Call-ID: b4XCu4BGCM1ek7EZWW4wcA..CSeq: 1 REGISTERExpires: 70Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATEContent-Length: 0sigcomp id=DEBUG | 20140204-173025.052 | test | RESIP:TRANSPORT | 140575132805088 | Transport.cxx:382 | incoming from: [ V4 10.1.62.109:5060 UDP target domain=unspecified mFlowKey=10 ]STACK | 20140204-173025.052 | test | RESIP:TRANSPORT | 140575132805088 | Transport.cxx:383 |SIP/2.0 400 Bad RequestVia: SIP/2.0/UDP 10.1.62.104:44746;received=10.1.62.104;branch=z9hG4bK-524287-1---16243f5a3d6aec7d;rport=44746To: <sip:9910000900@xxxxxxxxxxxxxx>;tag=0050568E6FF9-e85-e1ffe700-236-52f17808-77ee6From: <sip:9910000900@xxxxxxxxxxxxxx>;tag=af23ca04Call-ID: b4XCu4BGCM1ek7EZWW4wcA..CSeq: 1 REGISTERContent-Length: 0Please help in finding what is the wrong with my registration?Thanks,Siva Kumar
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/