If you did the config in this order when the PC and Phone were attached then when typing switchport port-security it enabled the feature with defaults(max=1) and when it saw second mac it considered a violation and errdisabled the port.
Disable port-security, configure all commands and then as last command enable the feature with switchport port-security.
Let us know if it worked this way.
Just to complement (its good to know)
I just found out today that there are some restrictions with port-security and voice vlans
check bullet 7:
Look for the software configuration guide for your switch/IOS combination
Thank you very much for the links Mario: now I understand a little bit more about the restriction around port-security on an access port connected to a 7950:
- no port-security per vlan
- no port-security static or even sticky mac
- max allowed mac should be (in above case) 3
so yesterday, I modified the port configuration to
switchport mode access
switchport voice vlan dot1p
switchport port-security max 5 =====> just to be sure
mls cos trust
switchport port-security =====> order of commands as per Cadetalain's suggestions
thanks you all!