[reSIProcate] Passing Status Code to main application

Byron Campen bcampen at estacado.net
Thu Sep 27 14:08:15 CDT 2007


	When you get a provisional, you should be getting the  
InviteSessionHandler::onProvisional(ClientInviteSessionHandle, const  
SipMessage&) callback, which will give you the 180 in the second  
argument. You can then make a copy of it (InviteSession won't hold on  
to it for you), and do whatever you want with the copy.

Best regards,
Byron Campen


> Hi everyone,
>
> I'm currently using resiprocate and DUM to develop a combination  
> UAS and UAC
> SIP stack.  I want the sip stack to be able to receive an invite  
> and alert
> the main application that an invite has arrived so that the  
> application can
> take the incoming invite and forward it on - hence creating 2 call  
> legs
> (incoming and outgoing).  Then, forward each response message from  
> the first
> call leg to the other (similar to a proxy).   The application is  
> able to
> keep track of the client and the server side sessions because it  
> receives
> both a client and a server object which contain the
> ClientInviteSessionHandle, the ServerInviteSessionHandle and an  
> application
> specific DialogSet object.
>
> My question is, what is the best way to pass the SIP message codes  
> up to the
> application main thread?  (i.e. how would I pass the 180 message I  
> receive
> from the second call leg up to the application so it could forward  
> it on to
> the first call leg?).    I was thinking of maybe sticking a Status  
> Code
> variable in the application's subclass of the AppDialogSet object and
> changing that in the SIP events that are received through DUM.  But  
> I think
> that might be error proned if 2 messages come in back to back.  Is  
> there any
> way to get the message status code through the invite session handle?
>
> Thanks,
>
> Teryl
>
> _______________________________________________
> resiprocate-devel mailing list
> resiprocate-devel at resiprocate.org
> https://list.resiprocate.org/mailman/listinfo/resiprocate-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2423 bytes
Desc: not available
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20070927/3b15d068/attachment.bin>


More information about the resiprocate-devel mailing list