[Serusers] Changing Sip Port

Juan juan at uwtcallback.com
Wed Dec 14 15:34:18 CET 2005


HI Jose.
Thanks for your answer.
My problem is that some clients are getting the port 5060 blocked.
I know at least one of my competitors is overcoming this problem by asking
the clients to change the port at their softphones to port 9002.
I would like to do the same but  tried changing the listeneng port at the
ser.cfg and/or the port at the Xten lite without success.
This is what I got as a debug:
 0(3007) SIP Request:
 0(3007)  method:  <REGISTER>
 0(3007)  uri:     <sip:10.0.1.99>
 0(3007)  version: <SIP/2.0>
 0(3007) parse_headers: flags=1
 0(3007) Found param type 235, <rport> = <n/a>; state=6
 0(3007) Found param type 232, <branch> =
<z9hG4bK68CCE1AF864347099F7DC5FAD9F41B76>; state=16
 0(3007) end of header reached, state=5
 0(3007) parse_headers: Via found, flags=1
 0(3007) parse_headers: this is the first via
 0(3007) After parse_msg...
 0(3007) preparing to run routing scripts...
 0(3007) parse_headers: flags=128
 0(3007) end of header reached, state=9
 0(3007) DEBUG: get_hdr_field: <To> [38];
uri=[sip:677403479814529 at 10.0.1.99]
 0(3007) DEBUG: to body [Juan <sip:677403479814529 at 10.0.1.99>]
 0(3007) get_hdr_field: cseq <CSeq>: <21096> <REGISTER>
 0(3007) DEBUG:maxfwd:is_maxfwd_present: value = 70
 0(3007) DBG:maxfwd:process_maxfwd_header: value 70 decreased to 16
 0(3007) parse_headers: flags=256
 0(3007) DEBUG: get_hdr_body : content_length=0
 0(3007) found end of header
 0(3007) find_first_route: No Route headers found
 0(3007) loose_route: There is no Route HF
 0(3007) grep_sock_info - checking if host==us: 9==9 &&  [10.0.1.99] ==
[10.0.1.99]
 0(3007) grep_sock_info - checking if port 8080 matches port 5060
 0(3007) grep_sock_info - checking if host==us: 9==9 &&  [10.0.1.99] ==
[10.0.1.99]
 0(3007) grep_sock_info - checking if port 8080 matches port 5060
 0(3007) check_self: host != me
 0(3007) parse_headers: flags=-1
 0(3007) DEBUG: t_newtran: msg id=22 , global msg id=21 , T on
entrance=0xffffffff
 0(3007) parse_headers: flags=-1
 0(3007) parse_headers: flags=60
 0(3007) t_lookup_request: start searching: hash=19052, isACK=0
 0(3007) DEBUG: RFC3261 transaction matched,
tid=68CCE1AF864347099F7DC5FAD9F41B76
 0(3007) DEBUG: t_lookup_request: transaction found (T=0xb615aee0)
 0(3007) DBG: t_retransmit_reply: nothing to retransmit
 0(3007) DEBUG:destroy_avp_list: destroying list (nil)
 0(3007) receive_msg: cleaning up
 1(3009) DEBUG: timer routine:5,tl=0xb615aff8 next=(nil)
 1(3009) DEBUG: retransmission_handler : request resending (t=0xb615aee0,
REGISTER  ... )
 1(3009) DEBUG: add_to_tail_of_timer[6]: 0xb615aff8
 1(3009) DEBUG: retransmission_handler : done
 0(3007) udp_rcv_loop: probing packet received from 10.0.1.105 50195
 0(3007) SIP Request:
 0(3007)  method:  <REGISTER>
 0(3007)  uri:     <sip:10.0.1.99>
 0(3007)  version: <SIP/2.0>
 0(3007) parse_headers: flags=1
 0(3007) Found param type 235, <rport> = <n/a>; state=6
 0(3007) Found param type 232, <branch> =
<z9hG4bK68CCE1AF864347099F7DC5FAD9F41B76>; state=16
 0(3007) end of header reached, state=5
 0(3007) parse_headers: Via found, flags=1
 0(3007) parse_headers: this is the first via
 0(3007) After parse_msg...
 0(3007) preparing to run routing scripts...
 0(3007) parse_headers: flags=128
 0(3007) end of header reached, state=9
 0(3007) DEBUG: get_hdr_field: <To> [38];
uri=[sip:677403479814529 at 10.0.1.99]
 0(3007) DEBUG: to body [Juan <sip:677403479814529 at 10.0.1.99>
]
 0(3007) get_hdr_field: cseq <CSeq>: <21096> <REGISTER>
 0(3007) DEBUG:maxfwd:is_maxfwd_present: value = 70
 0(3007) DBG:maxfwd:process_maxfwd_header: value 70 decreased to 16
 0(3007) parse_headers: flags=256
 0(3007) DEBUG: get_hdr_body : content_length=0
 0(3007) found end of header
 0(3007) find_first_route: No Route headers found
 0(3007) loose_route: There is no Route HF
 0(3007) grep_sock_info - checking if host==us: 9==9 &&  [10.0.1.99] ==
[10.0.1.99]
 0(3007) grep_sock_info - checking if port 8080 matches port 5060
 0(3007) grep_sock_info - checking if host==us: 9==9 &&  [10.0.1.99] ==
[10.0.1.99]
 0(3007) grep_sock_info - checking if port 8080 matches port 5060
 0(3007) check_self: host != me
 0(3007) parse_headers: flags=-1
 0(3007) DEBUG: t_newtran: msg id=23 , global msg id=22 , T on
entrance=0xffffffff
 0(3007) parse_headers: flags=-1
 0(3007) parse_headers: flags=60
 0(3007) t_lookup_request: start searching: hash=19052, isACK=0
 0(3007) DEBUG: RFC3261 transaction matched,
tid=68CCE1AF864347099F7DC5FAD9F41B76
 0(3007) DEBUG: t_lookup_request: transaction found (T=0xb615aee0)
 0(3007) DBG: t_retransmit_reply: nothing to retransmit
 0(3007) DEBUG:destroy_avp_list: destroying list (nil)
 0(3007) receive_msg: cleaning up
 1(3009) DEBUG: timer routine:6,tl=0xb615aff8 next=(nil)
 1(3009) DEBUG: retransmission_handler : request resending (t=0xb615aee0,
REGISTER  ... )
 1(3009) DEBUG: add_to_tail_of_timer[7]: 0xb615aff8
 1(3009) DEBUG: retransmission_handler : done
 1(3009) DEBUG: timer routine:7,tl=0xb615aff8 next=(nil)
 1(3009) DEBUG: retransmission_handler : request resending (t=0xb615aee0,
REGISTER  ... )
 1(3009) DEBUG: add_to_tail_of_timer[7]: 0xb615aff8
 1(3009) DEBUG: retransmission_handler : done
 0(3007) SIP Request:
 0(3007)  method:  <REGISTER>
 0(3007)  uri:     <sip:10.0.1.99>
 0(3007)  version: <SIP/2.0>
 0(3007) parse_headers: flags=1
 0(3007) Found param type 235, <rport> = <n/a>; state=6
 0(3007) Found param type 232, <branch> =
<z9hG4bK68CCE1AF864347099F7DC5FAD9F41B76>; state=16
 0(3007) end of header reached, state=5
 0(3007) parse_headers: Via found, flags=1
 0(3007) parse_headers: this is the first via
 0(3007) After parse_msg...
 0(3007) preparing to run routing scripts...
 0(3007) parse_headers: flags=128
 0(3007) end of header reached, state=9
 0(3007) DEBUG: get_hdr_field: <To> [38];
uri=[sip:677403479814529 at 10.0.1.99]
 0(3007) DEBUG: to body [Juan <sip:677403479814529 at 10.0.1.99>
]
 0(3007) get_hdr_field: cseq <CSeq>: <21096> <REGISTER>
 0(3007) DEBUG:maxfwd:is_maxfwd_present: value = 70
 0(3007) DBG:maxfwd:process_maxfwd_header: value 70 decreased to 16
 0(3007) parse_headers: flags=256
 0(3007) DEBUG: get_hdr_body : content_length=0
 0(3007) found end of header
 0(3007) find_first_route: No Route headers found
 0(3007) loose_route: There is no Route HF
 0(3007) grep_sock_info - checking if host==us: 9==9 &&  [10.0.1.99] ==
[10.0.1.99]
 0(3007) grep_sock_info - checking if port 8080 matches port 5060
 0(3007) grep_sock_info - checking if host==us: 9==9 &&  [10.0.1.99] ==
[10.0.1.99]
 0(3007) grep_sock_info - checking if port 8080 matches port 5060
 0(3007) check_self: host != me
 0(3007) parse_headers: flags=-1
 0(3007) DEBUG: t_newtran: msg id=24 , global msg id=23 , T on
entrance=0xffffffff
 0(3007) parse_headers: flags=-1
 0(3007) parse_headers: flags=60
 0(3007) t_lookup_request: start searching: hash=19052, isACK=0
 0(3007) DEBUG: RFC3261 transaction matched,
tid=68CCE1AF864347099F7DC5FAD9F41B76
 0(3007) DEBUG: t_lookup_request: transaction found (T=0xb615aee0)
 0(3007) DBG: t_retransmit_reply: nothing to retransmit
 0(3007) DEBUG:destroy_avp_list: destroying list (nil)
 0(3007) receive_msg: cleaning up
 0(3007) udp_rcv_loop: probing packet received from 10.0.1.105 50195
 1(3009) DEBUG: timer routine:7,tl=0xb615aff8 next=(nil)
 1(3009) DEBUG: retransmission_handler : request resending (t=0xb615aee0,
REGISTER  ... )
 1(3009) DEBUG: add_to_tail_of_timer[7]: 0xb615aff8
 1(3009) DEBUG: retransmission_handler : done
 1(3009) DEBUG: timer routine:7,tl=0xb615aff8 next=(nil)
 1(3009) DEBUG: retransmission_handler : request resending (t=0xb615aee0,
REGISTER  ... )
 1(3009) DEBUG: add_to_tail_of_timer[7]: 0xb615aff8
 1(3009) DEBUG: retransmission_handler : done
 1(3009) DEBUG: timer routine:7,tl=0xb615aff8 next=(nil)
 1(3009) DEBUG: retransmission_handler : request resending (t=0xb615aee0,
REGISTER  ... )
 1(3009) DEBUG: add_to_tail_of_timer[7]: 0xb615aff8
 1(3009) DEBUG: retransmission_handler : done
 0(3007) udp_rcv_loop: probing packet received from 10.0.1.105 50195
 1(3009) DEBUG: timer routine:7,tl=0xb615aff8 next=(nil)
 1(3009) DEBUG: retransmission_handler : request resending (t=0xb615aee0,
REGISTER  ... )
 1(3009) DEBUG: add_to_tail_of_timer[7]: 0xb615aff8
 1(3009) DEBUG: retransmission_handler : done

 

Juan Ferrari
United World Telecom
 

  _____  

From: Voipers Portugal [mailto:voipers at gmail.com] 
Sent: Tuesday, December 13, 2005 7:46 PM
To: Juan
Cc: serusers at lists.iptel.org
Subject: Re: [Serusers] Changing Sip Port


There are 2 port setting that you can change. Either you change the
signalling port to contact SER:
 
when specifying the SIP Server just do: sip_server:port
 
In this case, if you change the port, make sure that your SER Server is
listening on that port as well.
 
Or you can change the listen port of your Softphone. In this case, you don't
need to alter anything else. Not sure about what you wanted. Can you provide
the SIP messages log?
 
Jose Simoes

 
On 12/13/05, Juan <juan at uwtcallback.com> wrote: 

 

Hi Jose.
I tried your way but I did not get it registred. I used many ports but
couldn't get it registred. 
I am not using any authentication and when using port 5060 the softphone
registres OK.

My SER and my softphone (X- lite) are on the same network.
Any ideas?
Thanks in advance,
 

Juan Ferrari
United World Telecom
 

  _____  

From: serusers-bounces at lists.iptel.org [mailto:
<mailto:serusers-bounces at iptel.org> serusers-bounces at lists.iptel.org] On Behalf Of
Voipers Portugal
Sent: Saturday, December 10, 2005 8:48 AM
Cc: serusers at lists.iptel.org
Subject: Re: [Serusers] Changing Sip Port

 

Most softphones allow that. When you are specifying a SIP server, for
default (normally) it uses 5060. If you want to alter this port just do the
following:
 
ser_IP_address:port_number
 
127.0.0.1:5090 <http://127.0.0.1:5090/> 
 
Jose Simoes
 
p.s. this works with X-Lite
 
On 12/5/05, Andrey Kouprianov <andrey.kouprianov at gmail.com
<mailto:andrey.kouprianov at gmail.com> > wrote: 

I guess it depends on your softphone... if it chooses to communicate
from port 5060, there's nothing you can do about it, unless you can 
change it in the phone's settings...
Some softphones, for instance, get a random port...

On 12/5/05, sagar < vids_cs at yahoo.com <mailto:vids_cs at yahoo.com> > wrote:
>  Hi All,
>
>  I am using ser 0.8.14 +asterisk B2bua.
>
>  Currently  softphone is registering on standard sip port 5060  .
>  Is it possibe to use any other port  like 5090 or 8069 
>
>
>  I tried to do so by changing the listining port to 5090 in ser.cfg but in
> case the softphone is not getting register.
>
>
>  Here is the ser log
>
>
>  0(11348) SIP Request: 
>   0(11348)  method:  <REGISTER>
>   0(11348)  uri:     <sip: 192.168.1.100 <http://192.168.1.100/> >
>   0(11348)  version: <SIP/2.0> 
>   0(11348) parse_headers: flags=1
>   0(11348) end of header reached, state=5
>   0(11348) parse_headers: Via found, flags=1 
>   0(11348) parse_headers: this is the first via
>   0(11348) After parse_msg... 
>   0(11348) preparing to run routing scripts...
>   0(11348) DEBUG : is_maxfwd_present: searchi ng for max_forwards header 
>   0(11348) parse_headers: flags=128
>   0(11348) DEBUG: is_maxfwd_present: value = 70 
>   0(11348) parse_headers: flags=8
>   0(11348) DEBUG: add_param:
> tag=fa37b062306344d68023aed26289e820 
>   0(11348) DEBUG: add_param: epid=f657995ecc
>   0(11348) end of header reached, state=29 
>   0(11348) parse_headers: flags=256
>   0(11348) end of header reached, state=9
>   0(11348) DEBUG: get_hdr_field: <To> [37]; 
> uri=[sip:2851816416 at 192.168.1.100:5090]
>   0(11348) DEBUG: to body [< sip:2851816416 at 192.168.1.100:5090>
>  ]
>   0(11348) get_hdr_field: cseq <CSeq>: <1> <REGISTER>
>   0(11348) DEBUG: get_hdr_body : content_length=0 
>   0(11348) found end of header 
>   0(11348) find_first_route(): No Route headers found
>   0(11348) loose_route(): There is no Route HF
>   0(11348) parse_headers: flags=64
>   0(11348) parse_headers: flags=64 
>   0(11348) parse_headers: flags=33554432 
>   0(11348) check_self - checking if host==us: 13==13 &&  [192.168.1.100
<http://192.168.1.100/> ] ==
> [ 192.168.1.100  <http://192.168.1.100/> ]
>   0(11348) check_self - checking if port 5090 matches port 5060
>   0(11348) check_self: host != me
>   0(11348) DEBUG: t_addifnew: msg id=1 , global msg id=0 , T on
> entrance=0xffffffff 
>   0(11348) parse_headers: flags=-1
>   0(11348) parse_headers: flags=60
>   0(11348) t_lookup_request: start searching: hash=58712, isACK=0
>   0(11348) DEBUG: proceeding to pre-RFC3261 transaction matching 
>   0(11348) DEBUG: t_lookup_request: no transaction found
>   0(11348) DEBUG: mk_proxy: doing DNS lookup...
>   0(11348) check_via_address( 192.168.1.2 <http://192.168.1.2/> ,
192.168.1.2 <http://192.168.1.2/> , 0)
>   0(11348) DEBUG: add_to_tail_of_timer[4]: 0xb6165fe8
>   0(11348) DEBUG: add_to_tail_of_timer[0]: 0xb6165ffc 
>   0(11348) SER: new transacti on fwd'ed
>   0(11348) DEBUG:destroy_avp_list: destroing list (nil) 
>   0(11348) receive_msg: cleaning up
>
>  Please advise.
>
>  Thanks In Advance. 
>
>
>  ________________________________
>  Yahoo! Personals
>  Single? There's someone we'd like you to meet. 
>  Lots of someones, actually. Yahoo! Personals
>
>
> _______________________________________________ 
> Serusers mailing list
> serusers at lists.iptel.org 
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>

_______________________________________________
Serusers mailing list 
serusers at lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20051214/45865ff7/attachment.htm>


More information about the sr-users mailing list