[Top][All Lists]

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

Re: [osip-dev] Why is reply 180 not sent?

From: Aymeric Moizard
Subject: Re: [osip-dev] Why is reply 180 not sent?
Date: Fri, 3 Oct 2014 09:33:00 +0200

Hi Roger,

A 180 is pretty much the same as a 100. 

As you did the "to-tag" should be added. Additionnaly, you
may need to copy the record-route and add a Contact header.
-but that shouldn't impact sending the 180-

Beside your own debugging (as you stated in the state machine),
you can also check logs and see if there is an error somewhere.


2014-10-02 22:43 GMT+02:00 Roger Schreiter <address@hidden>:

I'm still learning how to use osip, and therefore I'm implementing
a simple gateway: One SIP call is coming in and is forwarded
to another host.

No I'm facing a behaviour of libosip, which I do not understand.

So far ok is:

SIP call is coming in and is detected.
Transition is created.
100 Trying is sent back using:
  evt = osip_new_outgoing_sipmessage(response);
  osip_transaction_add_event(tr, evt);

New INVITE to other host is created and sent to other host.

100 Trying from other host is received.
180 Ringing from other host is received.

Then I create a response 180 Ringing to the first host, exactly
as the first 100 Trying. Just the To-tag is also added.

Then I try to send as before:

  evt = osip_new_outgoing_sipmessage(response);
  osip_transaction_add_event(tr, evt);

where tr is the transaction from the incoming INVITE.

None of those calls is returning an error.
However, my cb_snd_message is not called by libosip.

Now, I wonder, why the 100 Trying was sent, but not the
180 Ringing. Besides of the cause code and the To-tag, I cannot
see any difference between my ways to send those responses.

Has anyone an idea, how I could figure out, what is going wrong?
Are there any further debugging means inside the transistion state


osip-dev mailing list

Antisip - http://www.antisip.com

reply via email to

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