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: Thu, 8 Nov 2012 15:36:06 +0530

Hi Aymeric,
I took the log as mentioned below and same is attached here along with this e-mail.
 
Regards,
Naushad.

On Thu, Nov 8, 2012 at 2:21 PM, Aymeric Moizard <address@hidden> wrote:
Hi,

To enable log, call this method:

osip_trace_initialize(7, NULL);

and make sure the product is compiled using -DENABLE_TRACE

Regards
Aymeric

2012/11/8 Naushad Ahmed <address@hidden>
Hi Aymeric,

1. I have checked the returncode of API that are getting invoked during REGISTER REQUET and all are returning OSIP_SUCCESS.
2. All the API are returning OSIP_SUCCESS.
3. please help me setting log level and enabling it.
 
LOGs of the executed code is attached below along with this e-mail.
 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
REGISTER REquest is received from X-Lite Client.
 
REGISTER sip:192.168.16.1 SIP/2.0^M
Via: SIP/2.0/UDP 10.100.208.132:3528;branch=z9hG4bK-d87543-686eb536d455277d-1--d87543-;rport^M
Max-Forwards: 70^M
Contact: <sip:address@hidden:3528;rinstance=18f13afe5917e193>^M
To: "Naushad"<sip:address@hidden>^M
From: "Naushad"<sip:address@hidden>;tag=5407e157^M
Call-ID: MjFhMjllOGQ1YTRjY2Y5ZDMyNDY0NDgzNGYyMmZhNjk.^M
CSeq: 1 REGISTER^M
Expires: 3600^M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO^M
User-Agent: X-Lite release 1011s stamp 41150^M
Content-Length: 0^M
^M
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A provisional Response SIP_TRYING is sent by my Program.
 
SIP/2.0 100 Trying^M
Via: SIP/2.0/UDP 10.100.208.132:3528;branch=z9hG4bK-d87543-686eb536d455277d-1--d87543-;rport=3528^M
From: "Naushad" <sip:address@hidden>;tag=5407e157^M
To: "Naushad" <sip:address@hidden>^M
Call-ID: MjFhMjllOGQ1YTRjY2Y5ZDMyNDY0NDgzNGYyMmZhNjk.^M
CSeq: 1 REGISTER^M
Contact: <sip:address@hidden>^M
Content-Length: 0^M
^M
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Now my prgram has to sent final response to X-Lite Client, which is not being sent eventhough Event is set for SIP_OK.
 
 
Regards,
Naushad.

 
On Wed, Nov 7, 2012 at 10:53 PM, Aymeric Moizard <address@hidden> wrote:
Hi Naushad,

I asked you several questions in my previous email!
1/ do you have a specific API that returns an error?
2/ what is the return code of that API?
3/ can you provide a LOG of the scenario you made.
    (configure logs with level 6 at least)

Regards
Aymeric


2012/11/7 Naushad Ahmed <address@hidden>
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:
>         <CALM7LKNfL6uEKmk=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
> ***************************************

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



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





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


Attachment: log-8-Nov-2012
Description: Binary data


reply via email to

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