I need vlan 1 ip address: 192.168.1.13 255.255.255.0
and vlan 2 (voip) 192.168.2.50 255.255.255.0
as Bamsi already gave
# interface range GigabitEthernet 2/2 - 48
switchport mode access
switchport voice vlan 2
switchport access vlan 1 <-- although technically this one is not needed in your case (this is what need to be done if you need some VLAN other than VLAN1 to be present on the same port as voice VLAN)
This should forward traffic for phones and PCs in VLAN 1, but Cisco switch by default don't trust device's priority markings. And you should set portfast on those ports (sometimes phones can't get IP from DHCP server if STP is turned on port).
So you should configure switch to trust devices.
That can be achieved with adding commands under interfaces
# spanning-tree portfast bpduguard
# auto qos voip {cisco-phone | trust}
# interface range GigabitEthernet 2/2 - 48
switchport mode access
switchport voice vlan 2
switchport access vlan 1 <-- although technically this one is not needed in your case (this is what need to be done if you need some VLAN other than VLAN1 to be present on the same port as voice VLAN)
This should forward traffic for phones and PCs in VLAN 1, but Cisco switch by default don't trust device's priority markings. And you should set portfast on those ports (sometimes phones can't get IP from DHCP server if STP is turned on port).
So you should configure switch to trust devices.
That can be achieved with adding commands under interfaces
# spanning-tree portfast bpduguard
# auto qos voip {cisco-phone | trust}