I am facing a problem that I configured the following commands on the ports of 3750 switch for Voice and data vlan
switchport mode access
switchport access vlan 5
switchport voice vlan 10
The problem is that we are using siemens IP phone for ip telephony. The phones are getting power from the switch and able to ping other phones within the same subnet but however they neither communicating with their default gateway on the switch nor the other vlans created on the switch.
However the other vlans excepts voice vlan are communicating with other.
Kindly help me in this scenario why the IP phones are not able to communicate with other vlans and their default gateway.
You are making a misstake here. The Siemens ip phone will NOT automatically join the voice vlan.
Without configuration, they will use the native vlan (5) instead.
This would explain your issue.
You can verify this by checking to which vlan the phone's mac addresses belong.