[Osip] Cannot perform reINVITE
samkol chea
sophysamkol at hotmail.com
Mon Jun 9 21:30:00 CEST 2008
Hi,
How would we create a new INVITE message with Replaces header?
Thanks,
Sam
> Date: Fri, 6 Jun 2008 18:05:27 +0200
> From: jack at atosc.org
> To: sophysamkol at hotmail.com
> CC: osip at atosc.org
> Subject: Re: [Osip] Cannot perform reINVITE
>
>
>
> On Fri, 6 Jun 2008, samkol chea wrote:
>
> >
> > Thanks for your reply,
> >
> > When I use the same INVITE message to send re-INVITE, I got 400 message: Mandatory header is missing.
> > When I look at the INVITE message again, it does not contain the contact header. I add the contact header manually.
> > This time I got 404 message: Not Found. So, it still does not work.
>
> eXosip2 should add te contact automatically.
>
> Aymeric MOIZARD / ANTISIP
> amsip - http://www.antisip.com
> osip2 - http://www.osip.org
> eXosip2 - http://savannah.nongnu.org/projects/exosip/
>
>
> > Thanks,
> > Sam
> >
> >> Date: Fri, 6 Jun 2008 10:42:54 +0200
> >> From: jack at atosc.org
> >> To: osip at atosc.org
> >> Subject: Re: [Osip] Cannot perform reINVITE
> >>
> >>
> >>
> >> On Thu, 5 Jun 2008, samkol chea wrote:
> >>
> >>>
> >>> Hi,
> >>>
> >>> sending the reINVITE does not work.
> >>> Here is my codes:
> >>>
> >>> int i;
> >>> eXosip_lock();
> >>> eXosip_call_build_request (ca->did, "INVITE", &reinvite);
> >>> eXosip_call_send_request(ca->did, reinvite);
> >>> eXosip_unlock();
> >>>
> >>> the ca is the eXosip_event_t type that I received from the 200 OK to the INVITE.
> >>> The problem is the ca->cid is equal to "1", which is not the same as that shown on the SIP header message.
> >>> Hence, I assume the ca->did is not the correct one as well.
> >>> At the server, I never received the new INVITE message.
> >>>
> >>> Questions:
> >>> 1). Call id = 1 and Dialog id = 2 are impossible, right? The
> >>> call id is equal to 2450 on the header message
> >>
> >> cid and did are NOT related to Call-ID header. Those values are CORRECT.
> >>
> >>> 2). I set the "reinvite" message the same as the "old invite" message,
> >>> but it still does not work. Am I doing something wrong?
> >>
> >> Your code above is correct.
> >> Aymeric
> >>
> >>> Thanks,
> >>> Sam
> >>>
> >>>> Date: Thu, 5 Jun 2008 12:31:30 +0200
> >>>> From: jack at atosc.org
> >>>> To: osip at atosc.org
> >>>> Subject: Re: [Osip] Cannot perform reINVITE
> >>>>
> >>>>
> >>>> There is a Route parameter when building initial invite.
> >>>> Don't forget the lr parameter in it.
> >>>>
> >>>> tks,
> >>>> Aymeric MOIZARD / ANTISIP
> >>>> amsip - http://www.antisip.com
> >>>> osip2 - http://www.osip.org
> >>>> eXosip2 - http://savannah.nongnu.org/projects/exosip/
> >>>>
> >>>>
> >>>> On Wed, 4 Jun 2008, samkol chea wrote:
> >>>>
> >>>>>
> >>>>> Hi again,
> >>>>>
> >>>>> I am sorry, I forgot to write the second problem.
> >>>>>
> >>>>> Does anyone know how to change "Route header for INVITE"?
> >>>>> You may ask me why I need to do so.
> >>>>>
> >>>>> My sip client has two IP addresses (two network interfaces) as below:
> >>>>>
> >>>>> first IP --------> proxy 1 -------> |
> >>>>> | SIP end point (peer)
> >>>>> second IP ------> proxy 2 ------->|
> >>>>>
> >>>>> I send the reINVITE message to the SIP end point when I switch between the two IP addresses (let's say from the first IP to the second). This reINVITE message is used to update the current IP of my sip client.
> >>>>> However, when I call eXosip_call_build_initial_invite() at the beginning, I have set the proxy 1 as the "Route header for INVITE." When I send the reINVITE, I am using the second IP address. Hence, the message may still be routed to the proxy 1, but there is no connection between the second IP address and the proxy 1. The message will be then lost. I would like to replace the proxy 1 with the proxy 2 address so that the message can reach the SIP end point.
> >>>>>
> >>>>> So, Is there a way for me to change the "route header"?
> >>>>>
> >>>>> Best regards,
> >>>>> Sam
> >>>>>
> >>>>>> From: sophysamkol at hotmail.com
> >>>>>> To: osip at atosc.org
> >>>>>> Date: Wed, 4 Jun 2008 17:15:49 -0400
> >>>>>> Subject: [Osip] Cannot perform reINVITE
> >>>>>>
> >>>>>>
> >>>>>> Hi there,
> >>>>>>
> >>>>>> I am facing some issues with reINVITE.
> >>>>>>
> >>>>>> I know that we can eXosip_call_build_request() and eXosip_call_send_request() to send the reINVITE message. I have two problems:
> >>>>>>
> >>>>>> 1). I need the dialog id as the parameter of the above function.
> >>>>>> People said that they can use the following codes to get the did. But I don't know how.
> >>>>>> eXosip_lock ();
> >>>>>> i = eXosip_call_send_initial_invite (invite);
> >>>>>> if (i > 0)
> >>>>>> {
> >>>>>> eXosip_call_set_reference (i, reference);
> >>>>>> }
> >>>>>> eXosip_unlock ();
> >>>>>> return i;
> >>>>>>
> >>>>>> How would you use "reference"? what is did that I am looking for?
> >>>>>>
> >>>>>> Thank you in advanced for any reply.
> >>>>>> Sam
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> _________________________________________________________________
> >>>>>> Try Chicktionary, a game that tests how many words you can form from the letters given. Find this and more puzzles at Live Search Games!
> >>>>>> http://g.msn.ca/ca55/207
> >>>>>> _______________________________________________
> >>>>>> Osip mailing list
> >>>>>> Osip at atosc.org
> >>>>>> http://www.atosc.org/mailinglist/listinfo/osip
> >>>>>
> >>>>> _________________________________________________________________
> >>>>> If you like crossword puzzles, then you'll love Flexicon, a game which combines four overlapping crossword puzzles into one!
> >>>>> http://g.msn.ca/ca55/208
> >>>>> _______________________________________________
> >>>>> 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
> >>>
> >>> _________________________________________________________________
> >>>
> >>> _______________________________________________
> >>> 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
> >
> > _________________________________________________________________
> >
> > _______________________________________________
> > Osip mailing list
> > Osip at atosc.org
> > http://www.atosc.org/mailinglist/listinfo/osip
> >
_________________________________________________________________
If you like crossword puzzles, then you'll love Flexicon, a game which combines four overlapping crossword puzzles into one!
http://g.msn.ca/ca55/208
More information about the Osip
mailing list