osip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [osip-dev] Fwd: osip2 stack related input


From: Aymeric Moizard
Subject: Re: [osip-dev] Fwd: osip2 stack related input
Date: Mon, 5 Nov 2012 10:32:12 +0100

Hi,

Can you be more specific for your question? Do you have a return code?
which API is failing? Do you a specific log for the error?

Sidenote: I read your code quickly, and I have seen that the REGISTER you build
doesn't have any "branch" in the Via.

Regards
Aymeric

2012/11/2 Naushad Ahmed <address@hidden>
---------- Forwarded message ----------
From: Naushad Ahmed <address@hidden>
Date: Fri, Nov 2, 2012 at 12:03 PM
Subject: Fwd: osip2 stack related input
To: address@hidden


Hello,
I want to implement the provisional response of a request and after a
while a final response to be sent.
I have attached the file here with along with e-mail.
Observation:
Having received REGISTER from SIPClient,I sent the TRYING (Provisional
Response) and set the event for 200 OK but this event 200 OK is never
called.

Regards,
Naushad.


---------- Forwarded message ----------
From: Naushad Ahmed <address@hidden>
Date: Thu, Nov 1, 2012 at 4:33 PM
Subject: Re: osip2 stack related input
To: address@hidden


File can be found here along with this e-mail.

Please help me in sending provisional response and once it's sent then
final response to be sent.

Regards,
Naushad.

On 11/1/12, Naushad Ahmed <address@hidden> wrote:
> Hi,
> I happen to use osip2 stack for my SIP implementation and I am facing
> one issu which is as follows.
> 1.I want to send the provisional Response 1XX and then after
> 2.Final Response SIP/2.0 200 OK.
>
> and I found that only provisional response is sent and for final
> response event is not executed.
>
> piece of code is as below.
>
>
> I_Void  RespSipNistRegisterCallBackFn(I_S32 type,
>                                      osip_transaction_t *osip_tr,
>                                      osip_message_t *osip_msg)
> {
>   fprintf(stderr,"RespSipNistRegisterCallBackFn CALLED\n");
>   osip_message_t  *response   = NULL;
>   osip_message_t  *responseOk = NULL;
>   osip_event_t    *evt = NULL;
>   #if 0
>   /*! 100 TRYING RESPONSE */
>   buildSipResponse(osip_msg, &response);
>   osip_message_set_status_code(response, SIP_TRYING);
>   evt = osip_new_outgoing_sipmessage(response);
>   osip_message_set_reason_phrase(response, osip_strdup("Trying"));
>   fprintf(stderr,"TRYING=TransactionId=[%d]\n",evt->transactionid);
>   osip_transaction_add_event(osip_tr, evt);
>   fprintf(stderr,"TRYING--RespSipNistOptionCallBackFn
> EventType=[%d]\n",evt->type);
>   #endif
>   buildSipResponse(osip_msg, &responseOk);
>   osip_message_set_status_code(responseOk, SIP_OK);
>   osip_message_set_reason_phrase(responseOk, osip_strdup("OK"));
>   evt = osip_new_outgoing_sipmessage(responseOk);
>   fprintf(stderr,"RespSipNistRegisterCallBackFn
> SEND-MSG-EVT=[%d]\n",evt->type);
>   osip_transaction_add_event(osip_tr, evt);
>
> }
>
>
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
> osip_ict_execute((osip_t *)osip);
>      osip_ist_execute((osip_t *)osip);
>      osip_nict_execute((osip_t *)osip);
>      osip_nist_execute((osip_t *)osip);
>      osip_timers_ict_execute((osip_t *)osip);
>      osip_timers_ist_execute((osip_t *)osip);
>      osip_timers_nict_execute((osip_t *)osip);
>      osip_timers_nist_execute((osip_t *)osip);
>

_______________________________________________
osip-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/osip-dev




--
Antisip - http://www.antisip.com


reply via email to

[Prev in Thread] Current Thread [Next in Thread]