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

[reSIProcate-users] a few questions about basic functionalities (Register and invite)


Hi all, i am new to resiprocate so please bear with me if questions are pretty dumb :)

i am experimenting with resiprocate basing on basicRegister.cxx and BasicClient.cxx

what i am wondering / experiencing is the following.

1) after successful registration if i let the application untouched for some minutes i get no more authentication when the stack tries to re-register
i.e. at application start i get correctly 
REGISTER  --->
<--- 401
REGISTER ---->
<--- 200

after a while the second register does not get acknowledged with a 200 Ok.

2) if an invite is sent to the wrong address i do get called on the OnFailure(InviteSessionHandle, SipMessage) but... how do i get the error code / reason?
i tried accessing SipMessage::reason() but it returns an empty pointer.

3) how do i distinguish between invites sent from the same userProfile?
i.e. if i want to create an sip phone with multiple "lines" when i send an invite on a "line" i'd like to store something that upon receiving responses i am able to decide for which "line" the response is.

4) is there a way to set the register retransmission before the actual register expire time? i.e. i my client request in the register an expire of 3600 and the UAS responds with an expire of 300 the stack correctly sends another register after 300 seconds pass. Is it possible to configure that time to be much less? i.e. half of what the UAS responded?

thanks a lot