osip-dev
[Top][All Lists]
Advanced

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

Re: [osip-dev] osip-dev Digest, Vol 39, Issue 2


From: Naushad Ahmed
Subject: Re: [osip-dev] osip-dev Digest, Vol 39, Issue 2
Date: Wed, 7 Nov 2012 09:17:23 +0530

Hi,
This application of mine is receiving REGISTER request from SIP Client(X-Lite).
Now what I want to do is that once I received REGISTER from X-Lite
client,I building SIP_TRYING and then SIP_OK as response.
Now what is happening, only SIP_TRYING is sent to client and SIP_OK is
not being sent to X-Lite client,which causes timeout at X-Lite Client.

I want to send one provisional response before final response SIP_OK.

Regards,
Naushad.

On Mon, Nov 5, 2012 at 10:30 PM,  <address@hidden> wrote:
> Send osip-dev mailing list submissions to
>         address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.gnu.org/mailman/listinfo/osip-dev
> or, via email, send a message with subject or body 'help' to
>         address@hidden
>
> You can reach the person managing the list at
>         address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of osip-dev digest..."
>
>
> Today's Topics:
>
>    1. Re: Fwd: osip2 stack related input (Aymeric Moizard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 5 Nov 2012 10:32:12 +0100
> From: Aymeric Moizard <address@hidden>
> To: Naushad Ahmed <address@hidden>
> Cc: address@hidden
> Subject: Re: [osip-dev] Fwd: osip2 stack related input
> Message-ID:
>         <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> 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
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://lists.gnu.org/archive/html/osip-dev/attachments/20121105/42657af5/attachment.html>
>
> ------------------------------
>
> _______________________________________________
> osip-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/osip-dev
>
>
> End of osip-dev Digest, Vol 39, Issue 2
> ***************************************



reply via email to

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