SIP Phone unable to register

Hi
I have SIP server(192.168.0.1) which is connected to two different routers(LANS - 192.168.4.2-100, 192.168.5.2-100). SIP Phones are connected to the routers. Now i am unable to register the phones and make calls tthrough it.

my sip.conf users are as follows:

[1234]
username=1234
secret=abcdef
host=dynamic
allow=all
context=tutorial

[4321]
username=4321
secret=abcdef
host=dynamic
allow=all
context=tutorial

Hi

You need to look at what you have set as localnets, im guessing you have none or just 192.168.0.0 , you need to put all of them in.
also you will need to check the routes. as if you have 2 routers you need to send traffic for network1 to that router and network2 to that router

Ian

[quote=“ianplain”]Hi

You need to look at what you have set as localnets, im guessing you have none or just 192.168.0.0 , you need to put all of them in.
also you will need to check the routes. as if you have 2 routers you need to send traffic for network1 to that router and network2 to that router

Ian[/quote]

If i add the following line

#route add default gw 192.168.4.1
phone is getting registerd
i am needed to add
#route add default gw 192.168.5.1
for another gateway to get other phone registered, but sometimes one of the phone is getting unregistered, and not working, if i have 10 routers i have to add 10 default gateways and the traffic is not reliable and not working…

Hi

Almost, you can only have one default route and gateway, The rest would just be routes to different networks.

Ian

[quote=“ianplain”]Hi

Almost, you can only have one default route and gateway, The rest would just be routes to different networks.

Ian[/quote]

So How can i solve my problem? I am unable to phones get register…

The answer is in the phones. You need to set the SIP server info and the gateway on the phone.