< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

Re: [reSIProcate-users] SIP UAC register response 400 bad request


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.0
Via: SIP/2.0/UDP 10.1.62.104:44746;branch=z9hG4bK-524287-1---16243f5a3d6aec7d;rport
Max-Forwards: 70
Contact: <sip:9910000900@10.1.62.104:44746;rinstance=1d69d0cbd64f4a87>
To: <sip:9910000900@xxxxxxxxxxxxxx>
From: <sip:9910000900@xxxxxxxxxxxxxx>;tag=af23ca04
Call-ID: b4XCu4BGCM1ek7EZWW4wcA..
CSeq: 1 REGISTER
Expires: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE
Content-Length: 0

sigcomp 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 Request
Via: SIP/2.0/UDP 10.1.62.104:44746;received=10.1.62.104;branch=z9hG4bK-524287-1---16243f5a3d6aec7d;rport=44746
To: <sip:9910000900@xxxxxxxxxxxxxx>;tag=0050568E6FF9-e85-e1ffe700-236-52f17808-77ee6
From: <sip:9910000900@xxxxxxxxxxxxxx>;tag=af23ca04
Call-ID: b4XCu4BGCM1ek7EZWW4wcA..
CSeq: 1 REGISTER
Content-Length: 0

Please help in finding what is the wrong with my registration?



Thanks,
Siva Kumar