Discussion:
How to use SIP PORT other than 5060?
mylen
2009-09-24 12:51:49 UTC
Permalink
Hi all:
In my project,the SIP SERVER listened at port 5088,I can use SIP method with domain.com:5088 for most cases,but when I send PUBLISH,UDP packet is sended to server's port 5060 however,and the PUBLISH is failed after several times try. How can I setup SIP SERVER's port for my client? Thanks in Advance.

2009-09-24



mylen
Rachel Baskaran
2009-09-24 14:03:41 UTC
Permalink
I think SIP uses 5060 port by default. Maybe you could try changing the
bind or listen port for the PBX your using. If your using asterisk you can
set bindport in sip.conf.

Rachel
Post by mylen
In my project,the SIP SERVER listened at port 5088,I can use SIP method
with domain.com:5088 for most cases,but when I send PUBLISH,UDP packet is
sended to server's port 5060 however,and the PUBLISH is failed after several
times try. How can I setup SIP SERVER's port for my client?
Thanks in Advance.
2009-09-24
------------------------------
mylen
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
mylen
2009-09-24 18:05:35 UTC
Permalink
Thanks for reply,the default SIP port is 5060,but in my project,SIP server was developered by other team,so i must use port 5088. Just now ,I modified sip_transport.c,replaced
PJSIP_TRANSPORT_UDP,
5060,
{"UDP", 3},
wihs
PJSIP_TRANSPORT_UDP,
5088,
{"UDP", 3},
it seems PUBLISH is ok,is this way correct?

Regards
2009-09-25



mylen

I think SIP uses 5060 port by default. Maybe you could try changing the
bind or listen port for the PBX your using. If your using asterisk you can
set bindport in sip.conf.
Rachel
Rachel Baskaran
2009-09-24 20:20:35 UTC
Permalink
Oh okay, if PUBLISH is ok. Hope it WOULD be right.
Post by mylen
Thanks for reply,the default SIP port is 5060,but in my project,SIP
server was developered by other team,so i must use port 5088. Just now ,I
modified sip_transport.c,replaced PJSIP_TRANSPORT_UDP,
5060,
{"UDP", 3},
wihs
PJSIP_TRANSPORT_UDP,
5088,
{"UDP", 3},
it seems PUBLISH is ok,is this way correct?
Regards
2009-09-25
------------------------------
mylen
I think SIP uses 5060 port by default. Maybe you could try changing the
bind or listen port for the PBX your using. If your using asterisk you can
set bindport in sip.conf.
Rachel
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
nir elkayam
2009-09-25 06:51:51 UTC
Permalink
I have used presence with diffrent port.
I used it with URL "sip:domain.com:port" and it work.
however, there is still: http://trac.pjsip.org/repos/ticket/411
Post by mylen
Thanks for reply,the default SIP port is 5060,but in my project,SIP
server was developered by other team,so i must use port 5088. Just now ,I
modified sip_transport.c,replaced PJSIP_TRANSPORT_UDP,
5060,
{"UDP", 3},
wihs
PJSIP_TRANSPORT_UDP,
5088,
{"UDP", 3},
it seems PUBLISH is ok,is this way correct?
Regards
2009-09-25
------------------------------
mylen
I think SIP uses 5060 port by default. Maybe you could try changing the
bind or listen port for the PBX your using. If your using asterisk you can
set bindport in sip.conf.
Rachel
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
ני׹ אלקיים
טל: 050-3930056
***@gmail.com
Rachel Baskaran
2009-09-25 13:51:14 UTC
Permalink
Yes, your right. It works fine with URL. I guess the question was meant how
to make 5088 as default rather than 5060 ( If I'm not wrong )
Post by nir elkayam
I have used presence with diffrent port.
I used it with URL "sip:domain.com:port" and it work.
however, there is still: http://trac.pjsip.org/repos/ticket/411
Post by mylen
Thanks for reply,the default SIP port is 5060,but in my project,SIP
server was developered by other team,so i must use port 5088. Just now ,I
modified sip_transport.c,replaced
PJSIP_TRANSPORT_UDP,
5060,
{"UDP", 3},
wihs
PJSIP_TRANSPORT_UDP,
5088,
{"UDP", 3},
it seems PUBLISH is ok,is this way correct?
Regards
2009-09-25
------------------------------
mylen
I think SIP uses 5060 port by default. Maybe you could try changing the
bind or listen port for the PBX your using. If your using asterisk you can
set bindport in sip.conf.
Rachel
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
ני׹ אלקיים
טל: 050-3930056
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Continue reading on narkive:
Loading...