Sending Invite With TCP

DR
Dan Rabin
Tue, May 17, 2016 5:59 AM

Hello,

I saw on the docs that I should use

pj_str_t dst = pj_str("sip:alice@example.net;transport=tcp");

If I am using it the invite is sent but the server does not forward it.
If without transport=tcp PJSIP gives error.

I have X-LITE with TCP and by using wireshark I can see that he is sending
INVITE like this:

sip:alice@example.net

Please help.
Thank you,
Dan

Hello, I saw on the docs that I should use pj_str_t dst = pj_str("sip:alice@example.net;transport=tcp"); If I am using it the invite is sent but the server does not forward it. If without transport=tcp PJSIP gives error. I have X-LITE with TCP and by using wireshark I can see that he is sending INVITE like this: sip:alice@example.net Please help. Thank you, Dan
HR
Harald Radke
Tue, May 17, 2016 9:29 AM

hi, which API do you use? the low level libs or pjsua?

Regards,

Harry

Gesendet: Dienstag, 17. Mai 2016 um 07:59 Uhr Von: "Dan Rabin" <dan.rabin.1975@gmail.com>
An: "pjsip list" <pjsip@lists.pjsip.org>
Betreff: [pjsip] Sending Invite With TCP

Hello,

I saw on the docs that I should use ```

<pre style="border: 1.0px solid rgb(215,215,215);margin: 1.0em 1.75em;padding: 0.25em;overflow: auto;color: rgb(0,0,0);font-size: 13.0px;font-style: normal;font-variant: normal;font-weight: normal;letter-spacing: normal;line-height: normal;text-align: left;text-indent: 0.0px;text-transform: none;word-spacing: 0.0px;background: rgb(247,247,247) none repeat scroll 0.0% 0.0%;">pj_str_t dst = pj_str("<a>sip:alice@example.net</a>;transport=tcp"); ``` If I am using it the invite is sent but the server does not forward it. If without transport=tcp PJSIP gives error. I have X-LITE with TCP and by using wireshark I can see that he is sending INVITE like this: ``` <pre style="border: 1.0px solid rgb(215,215,215);margin: 1.0em 1.75em;padding: 0.25em;overflow: auto;color: rgb(0,0,0);font-size: 13.0px;font-style: normal;font-variant: normal;font-weight: normal;letter-spacing: normal;line-height: normal;text-align: left;text-indent: 0.0px;text-transform: none;word-spacing: 0.0px;background: rgb(247,247,247) none repeat scroll 0.0% 0.0%;"><a>sip:alice@example.net</a> ``` Please help. Thank you, Dan _______________________________________________ Visit our blog: <http://blog.pjsip.org> pjsip mailing list pjsip@lists.pjsip.org [http://lists.pjsip.org/mailman/listinfo/pjsip\_lists.pjsip.org](http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org)
DR
Dan Rabin
Wed, May 18, 2016 2:41 PM

Thanks Harry.
Strange, I know, but I had a problem with the sever config. Do not know
why, it came out only when using TCP.

On Tue, May 17, 2016 at 12:29 PM, Harald Radke harryrat@gmx.de wrote:

hi, which API do you use? the low level libs or pjsua?

Regards,

Harry

Gesendet: Dienstag, 17. Mai 2016 um 07:59 Uhr
Von: "Dan Rabin" dan.rabin.1975@gmail.com
An: "pjsip list" pjsip@lists.pjsip.org
Betreff: [pjsip] Sending Invite With TCP
Hello,

I saw on the docs that I should use

pj_str_t dst = pj_str("sip:alice@example.net;transport=tcp");

If I am using it the invite is sent but the server does not forward it.
If without transport=tcp PJSIP gives error.

I have X-LITE with TCP and by using wireshark I can see that he is sending
INVITE like this:

sip:alice@example.net

Please help.
Thank you,
Dan
_______________________________________________ Visit our blog:
http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Thanks Harry. Strange, I know, but I had a problem with the sever config. Do not know why, it came out only when using TCP. On Tue, May 17, 2016 at 12:29 PM, Harald Radke <harryrat@gmx.de> wrote: > hi, which API do you use? the low level libs or pjsua? > > Regards, > > Harry > > *Gesendet:* Dienstag, 17. Mai 2016 um 07:59 Uhr > *Von:* "Dan Rabin" <dan.rabin.1975@gmail.com> > *An:* "pjsip list" <pjsip@lists.pjsip.org> > *Betreff:* [pjsip] Sending Invite With TCP > Hello, > > I saw on the docs that I should use > > pj_str_t dst = pj_str("sip:alice@example.net;transport=tcp"); > > If I am using it the invite is sent but the server does not forward it. > If without transport=tcp PJSIP gives error. > > I have X-LITE with TCP and by using wireshark I can see that he is sending > INVITE like this: > > sip:alice@example.net > > Please help. > Thank you, > Dan > _______________________________________________ Visit our blog: > http://blog.pjsip.org pjsip mailing list pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >