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

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


Dum will add those headers automatically for you once you receive a 407 or 401 response.  It will use the information in the Profile/UserProfile to get user authentication information.  BasicClient sample is all setup to do this.

Scott


On Wed, Feb 5, 2014 at 12:28 AM, Siva Kumar <siva.kumar663@xxxxxxxxx> wrote:
In Register Request Message I want to add autherization field:

Authorization: Digest username="9910000900@xxxxxxxxxxxxxx", realm="vz.mavenir.lab", nonce="", uri="sip:vz.mavenir.lab", response=""

Please help me how add this line in register request message.

Regards,
Siva Kumar


On Wed, Feb 5, 2014 at 3:59 AM, Scott Godin <sgodin@xxxxxxxxxxxxxxx> wrote:
After a quick look, I see nothing obviously wrong with the request.  Check the system logs on the system you are registering to and see if they provide any hints about why they are rejecting the request.

Perhaps try a higher expiration time - 70 seconds is very low.

Scott


On Tue, Feb 4, 2014 at 12:47 PM, Siva Kumar <siva.kumar663@xxxxxxxxx> wrote:
hi,

I modified basicRegister.cxx  in the following way:
 NameAddr default_from("sip:9910000900@vz.mavenir.lab");
   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@vz.mavenir.lab");

   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@vz.mavenir.lab>
From: <sip:9910000900@vz.mavenir.lab>;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@vz.mavenir.lab>;tag=0050568E6FF9-e85-e1ffe700-236-52f17808-77ee6
From: <sip:9910000900@vz.mavenir.lab>;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

_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/