[Osip] Can not generate 200 OK

ankur goel ankurgoel2003 at yahoo.co.in
Tue Feb 9 16:27:35 CET 2010


Thanks buddy
Its great. Thanks to mail me code.
Really it is very helpful to me.

With Regards
ANKUR GOEL
Email ID:- ankurgoel3484 at gmail.com


On Fri, Feb 5, 2010 at 7:24 AM, Aymeric Moizard <jack at atosc.org> wrote:

>
>
> On Fri, 5 Feb 2010, ankur goel wrote:
>
> > Thanks for your suggestion.
> > You are correct now I solved that problem.
> >
> > But another issue is rise that
> > I want to send 183(SIP_SEEEION_PROGRESS) on the place of 180(SIP_RINGING)
> > Please
> > suggest which API shold I use to build this.
> >
> > If you have example to build 183 please mail me.
>
> Here is the documentation for sending 200ok:
>
> Just use the same API but instead of 200, build a 183!
>
> http://www.antisip.com/doc/exosip2/group__howto1__initialize.html
>
> Here is the code:
>
>   osip_message_t *answer = NULL;
>
>   eXosip_lock ();
>   i = eXosip_call_build_answer (ca->tid, 183, &answer);
>   if (i != 0)
>   {
>      eXosip_call_send_answer (ca->tid, 400, NULL);
>   }
>   else
>   {
>      i = sdp_complete_200ok (ca->did, answer);
>      if (i != 0)
>      {
>         osip_message_free (answer);
>         eXosip_call_send_answer (ca->tid, 415, NULL);
>      }
>      else
>         eXosip_call_send_answer (ca->tid, 183, answer);
>   }
>   eXosip_unlock ();
>
> Regards,
> Aymeric MOIZARD / ANTISIP
> amsip - http://www.antisip.com
> osip2 - http://www.osip.org
> eXosip2 - http://savannah.nongnu.org/projects/exosip/
>
>
> > Thanks & Regards
> > ANKUR GOEL
> > Email ID:- ankurgoel3484 at gmail.com
> >
> >
> > On Wed, Feb 3, 2010 at 5:24 PM, Aymeric Moizard <jack at atosc.org> wrote:
> >
> >>
> >> -6 is OSIP_NOTFOUND. It usually means you used the wrong
> >> "tid" parameter.
> >>
> >> Tks,
> >> Aymeric MOIZARD / ANTISIP
> >> amsip - http://www.antisip.com
> >> osip2 - http://www.osip.org
> >> eXosip2 - http://savannah.nongnu.org/projects/exosip/
> >>
> >>
> >>
> >> On Tue, 2 Feb 2010, ankur goel wrote:
> >>
> >>  Hi,
> >>>
> >>> I used exosip library. Here in case of attended transfer when i am
> sending
> >>> refer to the first phone then it will send NOTIFY to the phone who
> sends
> >>> refer. But my proxy is unable to build answer for the same message.
> >>>
> >>> I used sip server.
> >>>
> >>> Phone1 sends invite to Phone2: this call is established.
> >>>
> >>> Phone1 sends reinvite to Phone2 for hold. and send Invite to Phone3.:
> this
> >>> call is established.
> >>>
> >>>
> >>> Now Phone1 sends refer to Phone2: here Phone accept the message and
> sends
> >>> Notify with sipfrag 100 Trying to the proxy.
> >>> the notify message is as follows which is send by Phone1.
> >>>
> >>> NOTIFY sip:30196 at 192.168.4.18:5060 SIP/2.0
> >>> Via: SIP/2.0/UDP 192.168.4.128:5060;branch=z9hG4bKf966473b7caf48b6
> >>> From: <sip:30199 at 192.168.4.18:5060>;tag=d0ff38c630a67e32
> >>> To: "@R08-C08:P04" <sip:30196 at 192.168.4.18 <sip%3A30196 at 192.168.4.18><
> sip%3A30196 at 192.168.4.18 <sip%253A30196 at 192.168.4.18>> <
> >>> sip%3A30196 at 192.168.4.18 <sip%253A30196 at 192.168.4.18> <
> sip%253A30196 at 192.168.4.18 <sip%25253A30196 at 192.168.4.18>>>
> >>>
> >>> ;tag=1568992455
> >>>>
> >>> Contact: <sip:30199 at 192.168.4.128:5060;transport=udp;user=phone>
> >>> Supported: path
> >>> X-Grandstream-PBX: true
> >>> Call-ID: 68250239
> >>> CSeq: 54524 NOTIFY
> >>> User-Agent: Grandstream GXP2010 1.2.2.26
> >>> Max-Forwards: 70
> >>> Allow:
> >>>
> >>>
> INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK,MESSAGE
> >>> Event: refer
> >>> Subscription-State: active
> >>> Content-Type: message/sipfrag;version=2.0
> >>> Content-Length: 18
> >>>
> >>> SIP/2.0 100 Trying
> >>>
> >>>
> >>>
> >>>
> >>> This will treat as EXOSIP_CALL_MESSAGE_NEW and proxy try to build
> answer
> >>> for
> >>> it.
> >>>
> >>> but exosip deny to build and returns error code -6.
> >>>
> >>> Please help will will i do. Your suggestion will be helpful for me.
> >>> Thanks in advance.
> >>>
> >>> With Regards
> >>> ANKUR GOEL
> >>> Email ID:- ankurgoel3484 at gmail.com
> >>> _______________________________________________
> >>> Osip mailing list
> >>> Osip at atosc.org
> >>> http://www.atosc.org/mailinglist/listinfo/osip
> >>>
> >>>
> >
> _______________________________________________
> Osip mailing list
> Osip at atosc.org
> http://www.atosc.org/mailinglist/listinfo/osip
>


More information about the Osip mailing list